/* ==========================================================================
   Aurora English - Minimal Premium Frosted Glass Theme
   Palette: Cream-Off-White Canvas + Deep Blue Typography + Ice-Blue Frosted Glass
   ========================================================================== */

:root {
  /* Cream-off-white canvas */
  --bg-canvas: #FAF8F5;
  --bg-canvas-subtle: #F4F1EB;
  
  /* Text Blues */
  --text-primary: #0F172A;       /* Deepest Slate Navy */
  --text-navy: #1E3A8A;          /* Royal Navy */
  --text-body: #1E293B;          /* Slate Dark Blue */
  --text-muted: #475569;         /* Slate Mid Tone */
  --text-secondary: #475569;     /* Semantic Alias for Secondary / Muted Text */
  --text-subtle: #64748B;        /* Muted Blue Gray */
  
  /* Accent Blues */
  --accent-azure: #2563EB;       /* Vibrant Azure */
  --accent-blue: #2563EB;        /* Semantic Alias for Accent Blue */
  --accent-sky: #0284C7;         /* Deep Sky Blue */
  --accent-ice: #E0F2FE;         /* Soft Ice Blue */
  --accent-glow: rgba(37, 99, 235, 0.12);
  
  /* Frosted Glass Blue Tokens */
  --glass-bg: rgba(240, 248, 255, 0.68);
  --glass-bg-hover: rgba(230, 243, 255, 0.85);
  --glass-card-hover: rgba(230, 243, 255, 0.85);
  --glass-bg-solid: rgba(248, 252, 255, 0.92);
  --glass-border: rgba(191, 219, 254, 0.55);
  --glass-border-hover: rgba(147, 197, 253, 0.75);
  --glass-inner-specular: inset 0 1px 1px rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 20px 45px -15px rgba(30, 58, 138, 0.08);
  --glass-shadow-lg: 0 25px 60px -15px rgba(30, 58, 138, 0.12);
  --glass-blur: blur(24px) saturate(180%);
  
  /* Success & Review Colors */
  --success-color: #059669;
  --success-bg: rgba(209, 250, 229, 0.7);
  --success-border: rgba(110, 231, 183, 0.6);
  --amber-color: #d97706;
  --amber-bg: rgba(254, 243, 199, 0.7);
  --amber-border: rgba(252, 211, 77, 0.6);

  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  
  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html, body {
  min-height: 100%;
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Premium Text Selection Highlight */
::selection {
  background: rgba(147, 197, 253, 0.45);
  color: #0F172A;
}

::-moz-selection {
  background: rgba(147, 197, 253, 0.45);
  color: #0F172A;
}

/* Ambient Atmospheric Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.7;
}

.glow-top-left {
  top: -10vw;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.8) 0%, rgba(191, 219, 254, 0.3) 60%, transparent 80%);
}

.glow-top-right {
  top: -5vw;
  right: -5vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.7) 0%, rgba(186, 230, 253, 0.25) 60%, transparent 80%);
}

.glow-bottom-center {
  bottom: -15vw;
  left: 25vw;
  width: 50vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.5) 0%, rgba(240, 248, 255, 0.2) 60%, transparent 80%);
}

/* App Layout */
.app-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(250, 248, 245, 0.75);
  border-bottom: 1px solid rgba(191, 219, 254, 0.35);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-mark {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.55);
  border: 1px solid rgba(186, 230, 253, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-navy);
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Frosted Glass Buttons & Common Elements
   ========================================================================== */

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-specular), 0 4px 12px rgba(30, 58, 138, 0.04);
  color: var(--text-navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  user-select: none;
}

.glass-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-inner-specular), 0 8px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.glass-btn:active {
  transform: translateY(0);
}

.glass-btn.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.glass-btn.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow);
  transition: all var(--transition-normal);
}

/* Views Container */
.app-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.view-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIEW 1: ANA SAYFA (HOMEPAGE) - İki Seçenek Kartı
   ========================================================================== */

.hero-header {
  text-align: center;
  max-width: 700px;
  margin: 1.5rem auto 3.5rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-azure);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* The Hero Choice Cards (Home Grid) */
.home-two-cards-grid,
.home-three-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-four-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1360px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .home-four-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .home-two-cards-grid,
  .home-three-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .home-two-cards-grid,
  .home-three-cards-grid,
  .home-four-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.hero-choice-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow);
  padding: 2.75rem 2.25rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  outline: none;
  display: flex;
  flex-direction: column;
}

.hero-choice-card:hover, .hero-choice-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(147, 197, 253, 0.9);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow-lg), 0 0 35px rgba(37, 99, 235, 0.12);
}

.card-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.5) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition-normal);
  opacity: 0.5;
}

.hero-choice-card:hover .card-glow {
  opacity: 0.9;
}

.card-top-icon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(224, 242, 254, 0.7);
  border: 1px solid rgba(186, 230, 253, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
  transition: transform var(--transition-fast);
}

.hero-choice-card:hover .icon-bubble {
  transform: scale(1.08) rotate(3deg);
}

.choice-pill {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 219, 254, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.choice-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.choice-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex: 1;
}

.choice-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(224, 242, 254, 0.45);
  border: 1px solid rgba(186, 230, 253, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-navy);
}

.choice-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(191, 219, 254, 0.4);
}

.action-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-azure);
}

.action-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-azure);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.hero-choice-card:hover .action-arrow {
  transform: translateX(4px);
}

/* Home Progress Ribbon */
.home-progress-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 800px;
  margin: 3.5rem auto 0;
  padding: 1.25rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(191, 219, 254, 0.45);
}

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

.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.ribbon-divider {
  width: 1px;
  height: 30px;
  background: rgba(191, 219, 254, 0.5);
}

/* ==========================================================================
   VIEW 2: KELİME KATEGORİLERİ (CATEGORIES GRID)
   ========================================================================== */

.section-top-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Search Card */
.search-filter-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 2.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--accent-azure);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}

.search-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.4);
  border: 1px solid rgba(186, 230, 253, 0.6);
  color: var(--text-navy);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background: rgba(224, 242, 254, 0.7);
}

.filter-chip.active {
  background: var(--text-navy);
  color: #FFFFFF;
  border-color: var(--text-navy);
}

/* Search Results Grid */
.search-results-container {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg-solid);
  border: 1px solid var(--glass-border);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 1rem;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--accent-azure);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.result-card-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(191, 219, 254, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.result-card-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-azure);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

.res-word {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.res-meaning {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 197, 253, 0.8);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow-lg);
}

.cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cat-bubble {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(224, 242, 254, 0.65);
  border: 1px solid rgba(186, 230, 253, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.05);
}

.cat-count-badge {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 219, 254, 0.5);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-navy);
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.cat-eng-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-sky);
  margin-bottom: 0.75rem;
}

.cat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.cat-progress-bar {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(219, 234, 254, 0.5);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.cat-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #2563EB, #0284C7);
  transition: width var(--transition-normal);
}

.cat-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
}

/* ==========================================================================
   VIEW 3: ÇİFT YÖNLÜ BAĞLAMSAL KART (FLASHCARD STUDY)
   Ön Yüz: Kelime & Anlam
   Sağa Kayınca: Cümle & Çeviri
   ========================================================================== */

.study-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.study-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.65);
  border: 1px solid rgba(186, 230, 253, 0.8);
  font-weight: 700;
  color: var(--text-navy);
  font-size: 0.9rem;
}

.study-tool-actions {
  display: flex;
  gap: 0.5rem;
}

/* Progress bar */
.card-progress-wrapper {
  max-width: 860px;
  margin: 0 auto 1.5rem;
}

.card-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-status-badge {
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(219, 234, 254, 0.5);
  font-size: 0.75rem;
  color: var(--text-navy);
}

.progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(219, 234, 254, 0.6);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #2563EB, #0284C7);
  transition: width var(--transition-fast);
}

/* Flashcard Stage - Generous & Airy */
.flashcard-stage {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

/* Big Study Card */
.big-study-card {
  position: relative;
  border-radius: var(--radius-xl);
  min-height: 440px;
  background: var(--glass-bg-solid);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(191, 219, 254, 0.75);
  box-shadow: var(--glass-inner-specular), 0 25px 60px -15px rgba(30, 58, 138, 0.1);
  overflow: hidden;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.card-mode-tabs {
  display: flex;
  border-bottom: 1px solid rgba(191, 219, 254, 0.4);
  background: rgba(240, 248, 255, 0.5);
}

.mode-tab {
  flex: 1;
  padding: 0.85rem 1rem;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.tab-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(191, 219, 254, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-tab.active {
  color: var(--text-navy);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 -2px 0 var(--accent-azure);
}

.mode-tab.active .tab-indicator {
  background: var(--accent-azure);
  color: #FFFFFF;
}

/* Slider Track - 2 Panels Side by Side */
.card-slider-track {
  display: flex;
  width: 200%;
  min-height: 380px;
  transition: transform var(--transition-normal);
  will-change: transform;
}

.big-study-card.slide-to-context .card-slider-track {
  transform: translateX(-50%);
}

.card-panel {
  width: 50%;
  flex-shrink: 0;
  padding: 2.75rem 2.6rem 2.25rem;
  display: flex;
  flex-direction: column;
}

.panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.panel-header-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.level-chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-azure);
}

.type-chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-navy);
}

.context-badge {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.75);
  border: 1px solid rgba(186, 230, 253, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-navy);
}

.audio-listen-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.55);
  border: 1px solid rgba(186, 230, 253, 0.7);
  color: var(--accent-sky);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-listen-btn:hover {
  background: rgba(186, 230, 253, 0.8);
  color: var(--text-navy);
  transform: scale(1.02);
}

/* Word Display */
.word-display-area {
  margin-bottom: 1.75rem;
}

.target-word {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.8vw, 3.8rem);
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.phonetic-transcription {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.meaning-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(191, 219, 254, 0.7) 0%, transparent 100%);
  margin-bottom: 1.5rem;
}

/* Meaning Display - Distinct Frosted Container */
.meaning-display-area {
  margin-bottom: auto;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}

.meaning-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.45rem;
}

.target-meaning {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  font-weight: 550;
  color: var(--text-body);
  line-height: 1.45;
}

/* Context / Sentence Panel - Distinct Frosted Containers */
.sentence-en-area {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 4px 18px rgba(30, 58, 138, 0.04);
}

.sentence-english {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.75;
}

.sentence-tr-area {
  margin-bottom: auto;
  padding: 1.3rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.85);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.02);
}

.sentence-turkish {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 450;
}

/* Swipe Prompt Footer */
.swipe-prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(191, 219, 254, 0.35);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prompt-badge {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.7);
  font-weight: 700;
  color: var(--accent-azure);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-badge:hover {
  background: var(--accent-azure);
  color: #FFFFFF;
}

/* Floating Slide Toggle */
.floating-slide-toggle {
  display: none; /* Accessible via tabs and card click */
}

/* Card Controls Below Card */
.study-card-controls {
  max-width: 860px;
  margin: 1.75rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 600px) {
  .study-card-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

.nav-btn-group, .status-btn-group {
  display: flex;
  gap: 0.75rem;
}

.btn-nav {
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
}

.btn-status.btn-learned {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-color);
}

.btn-status.btn-learned:hover {
  background: rgba(167, 243, 208, 0.85);
}

.btn-status.btn-review {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-color);
}

.btn-status.btn-review:hover {
  background: rgba(253, 230, 138, 0.85);
}

/* Keyboard Hints */
.keyboard-hints {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 1.5rem;
}

.hint-item kbd {
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 219, 254, 0.6);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-navy);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   VIEW 4: GRAMER (DİLBİLGİSİ REHBERİ) - MODERN & PREMIUM TASARIM
   ========================================================================== */

.grammar-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .grammar-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mobile Module Selector Bar */
.grammar-mobile-nav {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
}

.grammar-mobile-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-icon {
  font-size: 1.35rem;
}

.mobile-nav-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-navy);
  white-space: nowrap;
}

.grammar-mobile-select {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

@media (max-width: 900px) {
  .grammar-sidebar {
    display: none !important;
  }
  .grammar-mobile-nav {
    display: block;
  }
}

/* Sidebar */
.grammar-sidebar {
  padding: 1.25rem;
  position: sticky;
  top: 5rem;
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.sidebar-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.4);
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.8);
  color: var(--accent-azure);
}

.grammar-sidebar-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.grammar-sidebar-search:focus {
  border-color: var(--accent-azure);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.grammar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  max-height: 100%;
}

.grammar-nav-list::-webkit-scrollbar {
  width: 5px;
}
.grammar-nav-list::-webkit-scrollbar-thumb {
  background: rgba(147, 197, 253, 0.5);
  border-radius: 4px;
}

.grammar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: none;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.grammar-nav-item:hover {
  background: rgba(224, 242, 254, 0.6);
  color: var(--text-navy);
}

.grammar-nav-item.active {
  background: rgba(224, 242, 254, 0.9);
  color: var(--accent-azure);
  font-weight: 700;
  border-color: rgba(186, 230, 253, 0.9);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* Grammar Topic Content Area */
.grammar-content-area {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.grammar-card {
  padding: 2.25rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 640px) {
  .grammar-card {
    padding: 1.25rem;
  }
}

/* Topic Header Bar with Navigation */
.topic-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.5);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.topic-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 260px;
}

.topic-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.topic-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.topic-module-index {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-azure);
  background: rgba(224, 242, 254, 0.85);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.8);
}

.topic-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.topic-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.topic-nav-quick-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

/* Subtopic Navigation Wrap (Tabs & Quick Switcher) */
.grammar-subtopic-nav-wrap {
  background: rgba(240, 249, 255, 0.7);
  border: 1px solid rgba(186, 230, 253, 0.75);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
}

.subtopic-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.subtopic-nav-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subtopic-view-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 219, 254, 0.7);
  gap: 0.25rem;
}

.subtopic-toggle-btn {
  border: none;
  background: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.subtopic-toggle-btn.active {
  background: var(--accent-azure);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.subtopic-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subtopic-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.subtopic-pill-btn:hover {
  background: #FFFFFF;
  border-color: var(--accent-azure);
  color: var(--text-navy);
  transform: translateY(-1px);
}

.subtopic-pill-btn.active {
  background: var(--accent-azure);
  border-color: var(--accent-azure);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.subtopic-pill-btn .subtopic-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
}

.subtopic-pill-btn.active .subtopic-num {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Subtopics Cards */
.subtopic-card {
  margin-bottom: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 219, 254, 0.6);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-normal);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.subtopic-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.35);
}

.subtopic-card.collapsed .subtopic-card-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.subtopic-card.collapsed .subtopic-body {
  display: none;
}

.subtopic-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subtopic-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.subtopic-accordion-icon {
  font-size: 0.95rem;
  color: var(--accent-azure);
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.subtopic-card.collapsed .subtopic-accordion-icon {
  transform: rotate(-90deg);
}

/* Formula Box */
.formula-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(224, 242, 254, 0.6);
  border: 1px solid rgba(186, 230, 253, 0.85);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: auto;
  word-break: break-word;
  box-sizing: border-box;
}

.subtopic-summary {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Tips list */
.tips-container {
  margin-bottom: 1.5rem;
}

.tips-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-azure);
  margin-bottom: 0.5rem;
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tips-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tips-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--accent-azure);
  font-weight: bold;
}

/* Grammar Example rows */
.grammar-examples {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.g-example-item {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(191, 219, 254, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.g-ex-en {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.g-ex-tr {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 450;
}

/* Subtopic Card Footer (Pager within module) */
.subtopic-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(191, 219, 254, 0.4);
}

.subtopic-pager-info {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Module Footer Navigation */
.grammar-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(191, 219, 254, 0.6);
  flex-wrap: wrap;
}

.btn-nav-topic {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  padding: 0.75rem 1.25rem;
}

.btn-nav-topic .nav-dir {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-azure);
  font-weight: 700;
}

.btn-nav-topic .nav-topic-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-scroll-top {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

/* Floating Back to Top Button */
.floating-scroll-top-btn {
  position: fixed;
  bottom: 2.25rem;
  right: 2.25rem;
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition-normal);
}

.floating-scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-scroll-top-btn:hover {
  background: var(--accent-azure);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

.scroll-top-icon {
  font-size: 1.1rem;
  font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.app-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(191, 219, 254, 0.3);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

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

/* ==========================================================================
   Panel Action Buttons (Copy & Listen)
   ========================================================================== */

.panel-actions-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.55);
  border: 1px solid rgba(186, 230, 253, 0.7);
  color: var(--text-navy);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.action-pill-btn:hover {
  background: rgba(186, 230, 253, 0.85);
  color: var(--accent-azure);
  transform: translateY(-1px);
}

.action-pill-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   Progress Row & Quick Navigation Controls
   ========================================================================== */

.progress-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-fihrist {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  font-weight: 700;
  color: var(--accent-azure);
  background: rgba(224, 242, 254, 0.65);
  border-color: rgba(186, 230, 253, 0.85);
}

.btn-fihrist:hover {
  background: var(--accent-azure);
  color: #FFFFFF;
}

.btn-xs {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.quick-jump-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 700px) {
  .quick-jump-panel {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.jump-nav-buttons {
  display: flex;
  gap: 0.35rem;
}

.scrubber-wrap {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
}

.word-scrubber-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(191, 219, 254, 0.7);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.word-scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-azure);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.word-scrubber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.jump-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-navy);
}

.jump-number-input {
  width: 54px;
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  outline: none;
}

.jump-number-input:focus {
  border-color: var(--accent-azure);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-jump-go {
  background: var(--accent-azure);
  color: #FFFFFF;
  border-color: var(--accent-azure);
}

.btn-jump-go:hover {
  background: #1D4ED8;
}

/* ==========================================================================
   Word List Drawer / Modal (Fihrist Modu)
   ========================================================================== */

.word-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.word-drawer {
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--glass-bg-solid);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 65px -15px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.drawer-header {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.5);
  background: rgba(240, 248, 255, 0.65);
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.drawer-icon {
  font-size: 1.6rem;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-subtitle {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawer-search-input {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  width: 180px;
}

.drawer-search-input:focus {
  border-color: var(--accent-azure);
  width: 220px;
  transition: width var(--transition-fast);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(191, 219, 254, 0.45);
  transition: all var(--transition-fast);
  user-select: text;
  -webkit-user-select: text;
}

.drawer-row:hover {
  background: #FFFFFF;
  border-color: var(--accent-azure);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateX(2px);
}

.drawer-row.active-word {
  border-color: var(--accent-azure);
  background: rgba(224, 242, 254, 0.7);
}

.drawer-row-left {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.drawer-word-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
  width: 28px;
}

.drawer-word-en {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.drawer-word-phon {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-sky);
}

.drawer-word-tr {
  font-size: 0.9rem;
  color: var(--text-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.drawer-btn-speak, .drawer-btn-copy, .drawer-btn-jump {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
}

.drawer-btn-speak {
  color: var(--accent-azure);
  border-color: rgba(37, 99, 235, 0.3);
}

.drawer-btn-speak:hover {
  background: var(--accent-azure);
  color: #FFFFFF;
}

/* ==========================================================================
   Mobile Responsive Enhancements (Phones & Small Tablets)
   ========================================================================== */

@media (max-width: 640px) {
  .home-progress-ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .ribbon-divider {
    display: none;
  }

  .card-panel {
    padding: 1.5rem 1.15rem 1.5rem;
  }

  .target-word {
    font-size: clamp(1.9rem, 7.5vw, 2.6rem);
  }

  .target-meaning {
    font-size: 1.15rem;
  }

  .sentence-english {
    font-size: 1.1rem;
  }

  .sentence-turkish {
    font-size: 0.98rem;
  }

  .big-study-card {
    min-height: 480px;
  }

  .quick-jump-panel {
    padding: 0.75rem 0.65rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .jump-nav-buttons .btn-xs {
    padding: 0.35rem 0.5rem;
    font-size: 0.72rem;
  }

  .scrubber-wrap {
    min-width: 100%;
    order: 3;
    margin-top: 0.35rem;
  }

  .progress-actions-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }

  .word-drawer {
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .drawer-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }

  .drawer-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .drawer-search-input {
    flex: 1;
    width: auto;
  }

  .drawer-body {
    padding: 0.75rem;
  }

  .drawer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .drawer-row-left {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .drawer-row-actions {
    align-self: flex-end;
  }

  .app-main {
    padding: 1rem 0.85rem 3rem;
  }

  .app-header {
    padding: 0.75rem 1rem;
  }

  .hero-header {
    margin: 1rem auto 2rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .study-top-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .study-card-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-btn-group, .status-btn-group {
    width: 100%;
  }

  .nav-btn-group .btn-nav, .status-btn-group .btn-status {
    flex: 1;
  }
}

/* ==========================================================================
   VIEW 5: METİN (READING TEXTS & STORIES) - LUXURY FROSTED GLASS
   ========================================================================== */

.reading-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reading-series-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.reading-series-bar::-webkit-scrollbar {
  height: 4px;
}

.reading-series-bar::-webkit-scrollbar-thumb {
  background: rgba(186, 230, 253, 0.6);
  border-radius: var(--radius-full);
}

.series-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.series-chip:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(147, 197, 253, 0.9);
  color: var(--accent-azure);
  transform: translateY(-2px);
}

.series-chip.active {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

.reading-card-container {
  max-width: 1040px;
  margin: 0 auto 2.25rem;
}

.reading-card {
  border-radius: var(--radius-xl);
  padding: 2.75rem 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow-lg);
  user-select: text;
  -webkit-user-select: text;
}

.reading-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.45);
  margin-bottom: 2rem;
}

.reading-header-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.reading-series-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.8);
  border: 1px solid rgba(186, 230, 253, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-navy);
}

.reading-level-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(252, 211, 77, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
  color: #B45309;
}

.reading-stats-pill {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* 3 Segmented Face Tabs */
.reading-tabs {
  display: inline-flex;
  background: rgba(224, 242, 254, 0.5);
  border: 1px solid rgba(191, 219, 254, 0.7);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  gap: 0.3rem;
}

.reading-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reading-tab-btn .tab-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.35);
  color: var(--text-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.reading-tab-btn:hover {
  color: var(--text-primary);
}

.reading-tab-btn.active {
  background: #FFFFFF;
  color: var(--text-navy);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.reading-tab-btn.active .tab-num {
  background: var(--accent-azure);
  color: #FFFFFF;
}

/* Slides Container */
.reading-slider-wrapper {
  position: relative;
  min-height: 320px;
}

.reading-slide {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.reading-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.reading-title-wrap {
  margin-bottom: 1.5rem;
}

.reading-title-en {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.35rem;
  user-select: text;
  -webkit-user-select: text;
}

.reading-title-tr {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  user-select: text;
  -webkit-user-select: text;
}

.reading-translation-badge, .reading-vocab-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-azure);
  margin-bottom: 0.5rem;
}

.reading-title-tr-main {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  user-select: text;
  -webkit-user-select: text;
}

.reading-paragraph-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(191, 219, 254, 0.7);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.6rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  user-select: text;
  -webkit-user-select: text;
}

.reading-paragraph-en {
  font-family: var(--font-body);
  font-size: clamp(1.22rem, 2.3vw, 1.4rem);
  line-height: 2.05;
  color: var(--text-primary);
  letter-spacing: 0.012em;
  font-weight: 450;
  user-select: text;
  -webkit-user-select: text;
}

.reading-paragraph-tr {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.1vw, 1.32rem);
  line-height: 2.0;
  color: var(--text-muted);
  letter-spacing: 0.012em;
  font-weight: 450;
  user-select: text;
  -webkit-user-select: text;
}

/* Reading Slide Footer Toolbar */
.slide-footer-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.75rem;
}

.btn-reading-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn-reading-action.playing {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1E3A8A;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-next-stage {
  margin-left: auto;
  background: rgba(224, 242, 254, 0.75);
  border-color: rgba(147, 197, 253, 0.9);
  color: var(--text-navy);
  font-weight: 700;
}

.btn-next-stage:hover {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  border-color: #2563EB;
}

/* Slide 3: Vocab Grid */
.reading-vocab-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.reading-vocab-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.reading-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.reading-vocab-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  user-select: text;
  -webkit-user-select: text;
}

.reading-vocab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.06);
}

.reading-vocab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reading-vocab-word-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reading-vocab-word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.reading-vocab-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.9);
  color: var(--text-navy);
}

.reading-vocab-phonetic {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.reading-vocab-meaning {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(224, 242, 254, 0.7);
}

.reading-vocab-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-vocab-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(240, 248, 255, 0.9);
  border: 1px solid rgba(191, 219, 254, 0.6);
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-vocab-icon:hover {
  background: var(--accent-azure);
  color: #FFFFFF;
  border-color: var(--accent-azure);
}

/* Free Navigation & Scrubber Bar */
.reading-nav-bar {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inner-specular), var(--glass-shadow);
}

.reading-nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reading-scrubber-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 480px;
}

.reading-slider-scrubber {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(191, 219, 254, 0.6);
  outline: none;
  cursor: pointer;
}

.reading-slider-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-azure);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.reading-slider-scrubber::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.reading-jump-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
}

.reading-jump-input {
  width: 60px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(191, 219, 254, 0.8);
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.reading-jump-input:focus {
  border-color: var(--accent-azure);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-jump-go {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

/* 300 Metin Fihrist Drawer Item */
.text-drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.text-drawer-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(191, 219, 254, 0.55);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.text-drawer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.95);
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.07);
}

.text-drawer-card.active {
  border-color: var(--accent-azure);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 0 0 2px var(--accent-azure);
}

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

.text-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-azure);
}

.text-card-title-en {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.text-card-title-tr {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.text-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .reading-card {
    padding: 1.5rem 1.15rem;
  }
  
  .reading-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reading-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .reading-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
  }

  .reading-nav-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .reading-scrubber-center {
    width: 100%;
  }

  .reading-nav-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  .slide-footer-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-next-stage {
    margin-left: 0;
  }
}

/* ==========================================================================
   Multi-Language Selection UI (Header Dropdown & Home Banner)
   ========================================================================== */

/* Header Language Selector */
.lang-selector-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.lang-current-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(240, 248, 255, 0.7);
  border: 1px solid rgba(186, 230, 253, 0.75);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.lang-current-btn:hover {
  background: rgba(224, 242, 254, 0.85);
  border-color: rgba(147, 197, 253, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.lang-flag-current {
  font-size: 1.1rem;
  line-height: 1;
}

.dropdown-caret {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.lang-selector-dropdown-wrap.open .dropdown-caret {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(37, 99, 235, 0.08);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 100;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector-dropdown-wrap.open .lang-dropdown-menu {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.lang-option-btn:hover {
  background: rgba(239, 246, 255, 0.85);
  border-color: rgba(191, 219, 254, 0.5);
}

.lang-option-btn.active {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(219, 234, 254, 0.6) 100%);
  border-color: rgba(147, 197, 253, 0.8);
}

.lang-flag {
  font-size: 1.4rem;
  line-height: 1;
}

.lang-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lang-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lang-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lang-check {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lang-option-btn.active .lang-check {
  opacity: 1;
}

/* Home Language Selector Panel */
.home-lang-selector-panel {
  max-width: 820px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.home-lang-panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.home-lang-panel-header .panel-icon {
  font-size: 0.95rem;
}

.home-lang-panel-header .panel-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-sky);
}

.home-lang-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.home-lang-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-medium);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  font-family: inherit;
}

.home-lang-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.8);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09);
}

.home-lang-card.active {
  border-color: var(--accent-blue);
  background: linear-gradient(145deg, #FFFFFF 0%, rgba(239, 246, 255, 0.9) 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.14), 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lang-card-flag-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.card-flag {
  font-size: 2rem;
  line-height: 1;
}

.card-status-badge {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(226, 232, 240, 0.6);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.home-lang-card.active .card-status-badge {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.lang-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.lang-card-native {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-navy);
  margin-bottom: 0.55rem;
  display: block;
}

.lang-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  flex: 1;
}

.lang-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lang-card-meta .meta-tag {
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(240, 248, 255, 0.8);
  border: 1px solid rgba(191, 219, 254, 0.6);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-navy);
}

.home-lang-card.active .lang-card-meta .meta-tag {
  background: rgba(224, 242, 254, 0.85);
  border-color: rgba(147, 197, 253, 0.85);
}

@media (max-width: 768px) {
  .home-lang-cards-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-lang-selector-panel {
    padding: 1rem;
    margin-top: 1.25rem;
  }
}

/* ==========================================================================
   ARABIC LANGUAGE & PHONETICS ENHANCEMENTS
   High-legibility RTL Arabic typography without flipping surrounding UI
   ========================================================================== */

:root {
  --font-arabic: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
}

.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-feature-settings: "liga" 1, "calt" 1;
}

/* Word study card adaptations - Significantly Enlarged for Harakat Clarity */
.card-english-word.arabic-text {
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: clamp(3.2rem, 6.8vw, 4.4rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-navy);
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
}

.card-example-en.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  line-height: 2.35;
  font-weight: 550;
  color: var(--text-primary);
  padding: 0.5rem 0;
}

/* Reading texts adaptations - Rich & Spacious Arabic Typography */
.reading-paragraph-en.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: clamp(1.68rem, 3.2vw, 2.15rem);
  line-height: 2.5;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.4rem 0;
}

.reading-title-en.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: clamp(2.1rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.65;
}

.reading-vocab-word.arabic-text {
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.6;
}

.g-ex-en.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  line-height: 2.2;
  font-weight: 600;
  padding: 0.35rem 0;
}

/* ==========================================================================
   GRAMMAR RESPONSIVE FROSTED TABLES (ALPHABET & PHONETICS)
   ========================================================================== */

.grammar-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(186, 230, 253, 0.7);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}

.grammar-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.96rem;
  text-align: left;
}

.grammar-table th {
  background: rgba(224, 242, 254, 0.75);
  color: var(--text-navy);
  font-weight: 700;
  padding: 0.95rem 1.15rem;
  border-bottom: 1.5px solid rgba(147, 197, 253, 0.7);
  white-space: nowrap;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.grammar-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  color: var(--text-body);
  vertical-align: middle;
}

.grammar-table tr:last-child td {
  border-bottom: none;
}

.grammar-table tr:hover td {
  background: rgba(240, 249, 255, 0.5);
}

/* Arabic Grammar Table Specifics - High Legibility */
.grammar-table.arabic-grammar-table td:first-child {
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--text-navy);
  text-align: center;
  width: 70px;
  line-height: 1.5;
}

.grammar-table.arabic-grammar-table td:nth-child(3),
.grammar-table.arabic-grammar-table td:nth-child(5) {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  direction: rtl;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .card-english-word.arabic-text {
    font-size: 2.6rem;
  }
  .card-example-en.arabic-text {
    font-size: 1.55rem;
    line-height: 2.1;
  }
  .reading-paragraph-en.arabic-text {
    font-size: 1.45rem;
    line-height: 2.25;
  }
}

.text-card-title-en.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  line-height: 1.6;
}

.drawer-word-en.arabic-text {
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 1.45rem;
  line-height: 1.5;
}

.res-word.arabic-text {
  direction: rtl;
  font-family: var(--font-arabic);
  font-size: 1.35rem;
}

/* ========================================================
   VIEW: DİYALOG (KARŞILIKLI KONUŞMALAR & KELİME TAHLİLİ)
   Minimal, Ferah, Yüksek Kontrastlı & Premium UI/UX
   ======================================================== */
#viewDialogues {
  width: 100%;
}

.dialogue-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Horizontal Thematic Filter Pills */
.dialogue-pills-bar {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.6rem 0.25rem 1.4rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}

.dialogue-pills-bar::-webkit-scrollbar {
  height: 6px;
}

.dialogue-pills-bar::-webkit-scrollbar-thumb {
  background: rgba(191, 219, 254, 0.6);
  border-radius: 4px;
}

.dialogue-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(191, 219, 254, 0.65);
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.dialogue-pill-btn:hover {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: rgba(147, 197, 253, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.dialogue-pill-btn.active {
  background: #1E3A8A;
  border-color: #1E3A8A;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.25);
}

.dialogue-pill-badge {
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
}

.dialogue-pill-btn.active .dialogue-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Active Dialogue Stage Container - Spacious & Wide */
.dialogue-container {
  max-width: 1040px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Header & Scenario Card */
.dialogue-hero-card {
  padding: 2.75rem 3rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(191, 219, 254, 0.65);
  box-shadow: var(--glass-inner-specular), 0 20px 45px -15px rgba(30, 58, 138, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.dialogue-header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dialogue-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-navy);
  background: rgba(224, 242, 254, 0.75);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(186, 230, 253, 0.9);
}

.dialogue-level-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #B45309;
  background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(252, 211, 77, 0.85);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
}

.dialogue-main-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.dialogue-sub-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -0.45rem;
  line-height: 1.5;
}

.dialogue-scenario-card {
  padding: 1.35rem 1.65rem;
  border-radius: var(--radius-md);
  background: rgba(240, 248, 255, 0.65);
  border: 1px solid rgba(191, 219, 254, 0.6);
  border-left: 4px solid var(--accent-azure);
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
}

.dialogue-scenario-card strong {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: 0.35rem;
}

.dialogue-speakers-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(191, 219, 254, 0.45);
}

.speaker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.speaker-pill-a {
  border: 1px solid rgba(186, 230, 253, 0.9);
  background: rgba(224, 242, 254, 0.7);
  color: var(--text-navy);
}

.speaker-pill-b {
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(241, 245, 249, 0.85);
  color: var(--text-body);
}

.speaker-pill .sp-avatar {
  font-size: 1.2rem;
  line-height: 1;
}

.speaker-pill .sp-name {
  font-weight: 700;
  color: var(--text-primary);
}

.speaker-pill .sp-role {
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-weight: 500;
}

/* Chat Conversation Arena */
.dialogue-chat-arena {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chat-bubble-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(191, 219, 254, 0.6);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.chat-bubble-card:hover {
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 8px 26px rgba(30, 58, 138, 0.08);
  transform: translateY(-1px);
}

.chat-bubble-speaker-a {
  border-left: 4px solid var(--accent-azure);
  background: rgba(255, 255, 255, 0.95);
}

.chat-bubble-speaker-b {
  border-left: 4px solid #64748B;
  background: rgba(248, 250, 252, 0.95);
}

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

.chat-speaker-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-speaker-avatar {
  font-size: 1.35rem;
  line-height: 1;
}

.chat-speaker-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.chat-bubble-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-bubble-action {
  background: rgba(240, 248, 255, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.65);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-bubble-action:hover {
  background: var(--accent-azure);
  color: #FFFFFF;
  border-color: var(--accent-azure);
  transform: scale(1.02);
}

/* Foreign Language Target Sentence - THE HERO */
.chat-sentence-target {
  font-size: 1.32rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* Turkish Translation - SUPPORTING & CALM */
.chat-sentence-tr {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 450;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  transition: opacity 0.25s ease, filter 0.25s ease;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.chat-sentence-tr::before {
  content: "Çeviri:";
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  flex-shrink: 0;
}

.hide-translations .chat-sentence-tr {
  opacity: 0.15;
  filter: blur(4px);
  user-select: none;
  cursor: pointer;
}

.hide-translations .chat-sentence-tr:hover {
  opacity: 0.95;
  filter: blur(0px);
}

/* Dedicated Vocabulary & Meaning Breakdown Panel */
.dialogue-vocab-panel {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid rgba(191, 219, 254, 0.65);
  box-shadow: var(--glass-inner-specular), 0 20px 45px -15px rgba(30, 58, 138, 0.07);
  padding: 2.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.vocab-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(191, 219, 254, 0.5);
  padding-bottom: 1.25rem;
}

.vocab-panel-title-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 750;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.vocab-panel-title-wrap p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.dialogue-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .dialogue-hero-card {
    padding: 1.75rem 1.5rem;
  }
  .dialogue-vocab-panel {
    padding: 1.75rem 1.5rem;
  }
  .chat-bubble-card {
    padding: 1.35rem 1.5rem;
  }
  .dialogue-vocab-grid {
    grid-template-columns: 1fr;
  }
}

.vocab-card-item {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  padding: 1.4rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vocab-card-item:hover {
  background: #FFFFFF;
  border-color: rgba(147, 197, 253, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
}

.vocab-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Target Word in Vocabulary - HERO */
.vocab-item-word {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.vocab-item-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.vocab-type-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(224, 242, 254, 0.85);
  color: var(--text-navy);
  border: 1px solid rgba(186, 230, 253, 0.9);
}

.vocab-item-phonetic {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Turkish Meaning - SUBORDINATE & READABLE */
.vocab-item-meaning {
  font-size: 1.02rem;
  font-weight: 550;
  color: var(--text-body);
  line-height: 1.5;
}

.vocab-item-note {
  font-size: 0.84rem;
  color: var(--text-subtle);
  line-height: 1.5;
  border-left: 2px solid rgba(147, 197, 253, 0.8);
  padding-left: 0.65rem;
  margin-top: 0.25rem;
}

/* Situational / Cultural Tips Card */
.dialogue-tips-card {
  border-radius: var(--radius-lg);
  background: rgba(254, 243, 199, 0.45);
  border: 1.5px solid rgba(252, 211, 77, 0.65);
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.04);
}

.dialogue-tips-title {
  font-size: 1.05rem;
  font-weight: 750;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dialogue-tips-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: #451A03;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Dialogue Navigation Footer */
.dialogue-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0.5rem;
  gap: 1rem;
}

.dialogue-counter-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ========================================================
   ARABIC TYPOGRAPHY ENHANCEMENTS FOR DIALOGUES
   ======================================================== */
.arabic-dialogue-text {
  font-family: var(--font-arabic) !important;
  font-size: 1.75rem !important;
  line-height: 2.3 !important;
  direction: rtl;
  text-align: right;
  letter-spacing: 0;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.vocab-item-word.arabic-dialogue-text {
  font-size: 1.75rem !important;
  line-height: 1.6 !important;
  color: var(--text-primary) !important;
}

.arabic-dialogue-speaker {
  font-family: var(--font-arabic) !important;
  font-size: 1.3rem !important;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.arabic-dialogue-title {
  font-family: var(--font-arabic) !important;
  font-size: 2.5rem !important;
  direction: rtl;
  text-align: right;
  line-height: 1.6 !important;
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* ========================================================
   NATURAL MASTERCLASS LESSONS SYSTEM (DOĞAL DİL DERSLERİ)
   ======================================================== */

/* Grammar Top Actions & Masterclass Banner */
.grammar-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-natural-lessons {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(99, 102, 241, 0.18) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-azure);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-natural-lessons:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.32);
  transform: translateY(-2px);
}

.btn-natural-lessons .btn-badge {
  background: rgba(37, 99, 235, 0.15);
  color: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.btn-natural-lessons:hover .btn-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Masterclass Banner inside Grammar View */
.grammar-masterclass-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 249, 255, 0.9) 100%);
  border: 1px solid rgba(147, 197, 253, 0.6);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.06);
}

.gmb-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gmb-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(99, 102, 241, 0.22) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.gmb-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-azure);
  margin-bottom: 0.25rem;
}

.gmb-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.gmb-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* View Lessons Top Bar & Meta */
.lessons-back-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lessons-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.lessons-lang-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-azure);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.lessons-format-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.lessons-progress-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* 4 Sets Bar */
.lessons-sets-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.lesson-set-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.lesson-set-tab:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(147, 197, 253, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
}

.lesson-set-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.95) 100%);
  border-color: var(--accent-azure);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
  position: relative;
}

.lesson-set-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  background: linear-gradient(90deg, #2563EB, #6366F1);
  border-radius: 3px 3px 0 0;
}

.lesson-set-tab .set-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.lesson-set-tab .set-meta {
  flex: 1;
  min-width: 0;
}

.lesson-set-tab .set-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-azure);
  margin-bottom: 0.15rem;
}

.lesson-set-tab .set-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-set-tab .set-count-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.lesson-set-tab.set-completed .set-count-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
}

/* Modules Bar (Pills under active set) */
.lessons-modules-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.lesson-mod-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.lesson-mod-pill:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(147, 197, 253, 0.9);
  transform: translateY(-2px);
}

.lesson-mod-pill.active {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.24);
}

.lesson-mod-pill.active .mod-num {
  color: #93C5FD;
}

.lesson-mod-pill.active .mod-title {
  color: #FFFFFF;
}

.lesson-mod-pill .mod-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-azure);
  margin-bottom: 0.2rem;
}

.lesson-mod-pill .mod-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.lesson-mod-pill .mod-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lesson-mod-pill.active .mod-check {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Master Lesson Card Container */
.lesson-stage-container {
  max-width: 1040px;
  margin: 0 auto 3rem;
}

.lesson-card {
  padding: 3.5rem 3.5rem;
  border-radius: var(--radius-2xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

/* 1. Header Hero */
.lesson-card-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.lch-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.lch-set-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-azure);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.lch-mod-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: #4F46E5;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.lch-level-pill {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.lch-time-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.lesson-card-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.lesson-card-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.lch-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lch-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-azure);
  background: rgba(239, 246, 255, 0.8);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(191, 219, 254, 0.6);
}

/* General Lesson Section Box */
.lesson-section {
  margin-bottom: 2.5rem;
}

.ls-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.ls-icon {
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(241, 245, 249, 0.9);
  flex-shrink: 0;
}

.ls-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.ls-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-azure);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.ls-body {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
}

.ls-paragraph {
  margin-bottom: 1rem;
}

.ls-paragraph:last-child {
  margin-bottom: 0;
}

.ls-bullet-item {
  padding: 0.5rem 0.85rem;
  background: rgba(248, 250, 252, 0.8);
  border-left: 3px solid var(--accent-azure);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Distinct Section Aesthetics */
.lesson-section-intro {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.28) 0%, rgba(255, 251, 235, 0.45) 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}

/* Pedagogical Bridge & Roadmap (Sıfırdan 100'e İlerleme Zinciri) */
.lesson-section-bridge {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.7) 0%, rgba(245, 243, 255, 0.85) 100%);
  border: 1px solid rgba(199, 210, 254, 0.75);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 18px -4px rgba(99, 102, 241, 0.06);
}

.ls-bridge-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.ls-bridge-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(224, 231, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(30, 41, 59, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ls-bridge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.06);
}

.ls-bridge-from {
  border-top: 4px solid #6366F1;
}

.ls-bridge-core {
  border-top: 4px solid #0EA5E9;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.ls-bridge-next {
  border-top: 4px solid #10B981;
}

.ls-bridge-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
}

.ls-bridge-from .ls-bridge-tag {
  color: #4F46E5;
}

.ls-bridge-core .ls-bridge-tag {
  color: #0284C7;
}

.ls-bridge-next .ls-bridge-tag {
  color: #059669;
}

.ls-bridge-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-body);
}

.ls-bridge-text p {
  margin: 0 0 0.5rem 0;
}

.ls-bridge-text p:last-child {
  margin-bottom: 0;
}

.lesson-section-mindset {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.4) 0%, rgba(240, 249, 255, 0.65) 100%);
  border: 1px solid rgba(191, 219, 254, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}

.lesson-section-technique {
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.35) 0%, rgba(250, 245, 255, 0.6) 100%);
  border: 1px solid rgba(216, 180, 254, 0.45);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}

/* Step-by-Step Construction Cards */
.ls-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ls-step-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.ls-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ls-step-content {
  flex: 1;
}

.ls-step-name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.ls-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Curated Examples & Nuance Breakdowns */
.ls-examples-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ls-example-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.ls-example-card:hover {
  border-color: rgba(147, 197, 253, 0.8);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.lse-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
}

.lse-target-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lse-target {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lse-phonetic {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-azure);
}

.lse-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lse-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lse-btn:hover {
  background: #FFFFFF;
  border-color: var(--accent-azure);
  color: var(--accent-azure);
  transform: translateY(-1px);
}

.lse-tr-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.lse-tr-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.lse-tr-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.5;
}

.lse-nuance-box {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.8) 0%, rgba(238, 242, 255, 0.9) 100%);
  border-left: 3px solid #6366F1;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 0.85rem 1.25rem;
}

.lse-nuance-tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #4F46E5;
  margin-bottom: 0.25rem;
}

.lse-nuance-text {
  font-size: 0.92rem;
  color: #1E1B4B;
  line-height: 1.6;
  margin: 0;
}

/* Golden Rule Card */
.lesson-golden-rule-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.6) 0%, rgba(254, 252, 232, 0.9) 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
  margin-bottom: 3rem;
}

.lgr-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}

.lgr-content {
  flex: 1;
}

.lgr-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 0.35rem;
}

.lgr-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #78350F;
  line-height: 1.6;
  margin: 0;
}

/* Lesson Card Footer Navigation */
.lesson-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-toggle-complete {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: var(--text-body);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.btn-toggle-complete:hover {
  border-color: #059669;
  color: #059669;
  background: rgba(16, 185, 129, 0.06);
}

.btn-toggle-complete.completed {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28);
}

.btn-prev-lesson, .btn-next-lesson {
  padding: 0.75rem 1.35rem;
  font-weight: 700;
}

/* Arabic Specific Typography in Lessons */
.arabic-target-text {
  font-family: var(--font-arabic) !important;
  font-size: 1.9rem !important;
  line-height: 2.2 !important;
  direction: rtl;
  text-align: right;
  color: var(--text-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .lessons-sets-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .lesson-card {
    padding: 2rem 1.75rem;
  }
  .lesson-card-title {
    font-size: 1.65rem;
  }
  .grammar-masterclass-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  .lesson-card-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  .lesson-card-footer button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .lessons-sets-bar {
    grid-template-columns: 1fr;
  }
  .lessons-modules-bar {
    flex-direction: column;
  }
  .lse-top-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .lse-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .lesson-golden-rule-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Turkish Phonetic Hero Cards & Global Controls (Tüm Diller & Alanlar)
   ========================================================================== */

/* Global Pronounce Toggle in Header */
.btn-global-pronounce {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(238, 242, 255, 0.7);
  border: 1px solid rgba(199, 210, 254, 0.6);
  color: #4338CA;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-global-pronounce:hover {
  background: rgba(224, 231, 255, 0.9);
  border-color: rgba(165, 180, 252, 0.9);
  color: #3730A3;
}

.btn-global-pronounce.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(99, 102, 241, 0.22));
  border-color: rgba(99, 102, 241, 0.6);
  color: #312E81;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
}

/* Voice Profile / Male Voice Test Button in Header */
.btn-voice-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(240, 253, 244, 0.85);
  border: 1px solid rgba(167, 243, 208, 0.7);
  color: #065F46;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-voice-profile:hover {
  background: rgba(209, 250, 229, 0.95);
  border-color: #059669;
  color: #047857;
  transform: translateY(-1px);
}

/* Study Toolbar Pronounce Toggle */
.btn-pronounce-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.7);
  color: #475569;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-pronounce-toggle:hover {
  background: rgba(238, 242, 255, 0.9);
  border-color: rgba(199, 210, 254, 0.8);
  color: #4338CA;
}

.btn-pronounce-toggle.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.18));
  border-color: rgba(99, 102, 241, 0.5);
  color: #3730A3;
}

/* Prominent Turkish Pronounce Hero Wrap on Study Card (Word) */
.word-pronounce-hero-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.75rem 0 0.95rem 0;
  animation: fadeInDown 0.22s ease-out;
}

.word-pronounce-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(245, 243, 255, 0.92));
  border: 1px solid rgba(199, 210, 254, 0.85);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.12);
}

.word-pronounce-hero-pill:hover {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.98), rgba(237, 233, 254, 0.96));
  border-color: rgba(165, 180, 252, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(99, 102, 241, 0.2);
}

.wph-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.wph-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366F1;
}

.wph-pronounce {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  color: #1E1B4B;
  letter-spacing: 0.01em;
}

.btn-pronounce-action {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.8);
  color: #4338CA;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pronounce-action:hover {
  background: #EEF2FF;
  border-color: #818CF8;
  color: #312E81;
  transform: translateY(-1px);
}

/* Prominent Sentence Turkish Pronunciation Hero Card */
.sentence-pronounce-hero-card {
  margin-top: 0.95rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(238, 242, 255, 0.9));
  border: 1px solid rgba(199, 210, 254, 0.75);
  box-shadow: 0 6px 20px -4px rgba(30, 58, 138, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: fadeInDown 0.22s ease-out;
}

.sph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sph-icon {
  font-size: 0.95rem;
  margin-right: 0.35rem;
}

.sph-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366F1;
  flex: 1;
}

.sph-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1E1B4B;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(199, 210, 254, 0.8);
}

/* Drawer Row & Search Result Turkish Pronounce Badges */
.drawer-word-tr-pron {
  display: inline-flex;
  align-items: center;
  background: rgba(238, 242, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.7);
  border-radius: var(--radius-full);
  padding: 0.12rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4338CA;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.res-top-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.res-cat-tag {
  font-size: 0.75rem;
  color: var(--accent-sky);
  font-weight: normal;
}

.res-pron-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(238, 242, 255, 0.9);
  border: 1px solid rgba(199, 210, 254, 0.8);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4338CA;
}

/* Legacy & Drawer Helpers */
.pronounce-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.65rem 0 0.85rem 0;
  width: 100%;
}

.pronounce-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(238, 242, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.7);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: #3730A3;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08);
}

.pronounce-drawer {
  margin-top: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(199, 210, 254, 0.6);
  box-shadow: 0 8px 24px -6px rgba(30, 58, 138, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeInDown 0.22s ease-out;
  max-width: 90%;
}

/* Reading Pronunciation Container & Drawer */
.reading-pronounce-container {
  margin: 1.25rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.reading-pronounce-drawer {
  margin-top: 0.75rem;
  width: 100%;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(245, 247, 255, 0.94);
  border: 1px solid rgba(199, 210, 254, 0.7);
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: fadeInDown 0.25s ease-out;
}

.rpd-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rpd-copy-pill {
  background: rgba(238, 242, 255, 0.9);
  border: 1px solid rgba(199, 210, 254, 0.8);
  color: #4338CA;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rpd-copy-pill:hover {
  background: #E0E7FF;
  border-color: #818CF8;
  transform: translateY(-1px);
}

.rpd-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #1E1B4B;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(199, 210, 254, 0.6);
}

/* Dialogue Lines Pronunciation Wrap & Drawer */
.dialogue-line-pronounce-wrap {
  margin-top: 0.45rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.line-pronounce-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.75);
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.line-pronounce-toggle-btn:hover {
  background: rgba(238, 242, 255, 0.95);
  border-color: rgba(165, 180, 252, 0.8);
  color: #4338CA;
  transform: translateY(-1px);
}

.lpb-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.lpb-arrow {
  font-size: 0.75rem;
  color: #64748B;
  margin-left: 0.15rem;
}

.line-pronounce-box {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(199, 210, 254, 0.65);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px -3px rgba(30, 58, 138, 0.06);
  animation: fadeInDown 0.18s ease-out;
  width: 100%;
  max-width: 540px;
}

.line-pronounce-box.open {
  display: flex;
}

.lpb-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6366F1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.lpb-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #1E1B4B;
  flex: 1;
  word-break: break-word;
}

.lpb-copy-btn {
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: #64748B;
}

.lpb-copy-btn:hover {
  background: rgba(224, 231, 255, 0.6);
  color: #4338CA;
}

.lpb-speak-btn {
  font-size: 0.85rem;
  padding: 0.2rem 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: #64748B;
}

.lpb-speak-btn:hover {
  background: rgba(224, 231, 255, 0.6);
  color: #4338CA;
}

.btn-speak-lesson-voice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.28);
  color: var(--accent-azure);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-speak-lesson-voice:hover {
  background: var(--accent-azure);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Dialogue & Reading Vocabulary TR Pronunciation Pill */
.vocab-tr-pronounce-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(238, 242, 255, 0.85);
  border: 1px solid rgba(199, 210, 254, 0.7);
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  color: #4338CA;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.2rem;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.06);
}

.vocab-tr-pronounce-pill:hover {
  background: rgba(224, 231, 255, 0.95);
  border-color: #818CF8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(99, 102, 241, 0.12);
}

.vocab-item-pronounce-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.45rem 0;
  flex-wrap: wrap;
}

/* Masterclass Lesson Example Pronounce Wrap */
.lesson-example-pronounce-wrap {
  margin: 0.4rem 0 0.35rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Masterclass Deep Details & Nuances (Detay Atlamıyoruz: Eğitmenden Kritik İncelikler & İstisnalar) */
.lesson-section-details {
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.65) 0%, rgba(253, 244, 255, 0.8) 100%);
  border: 1px solid rgba(221, 214, 254, 0.8);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 18px -4px rgba(168, 85, 247, 0.06);
}

.ls-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ls-detail-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(233, 213, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ls-detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.08);
}

.lsd-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lsd-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(147, 51, 234, 0.12);
  color: #7E22CE;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.lsd-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.lsd-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

.lsd-body p {
  margin: 0 0 0.65rem 0;
}

.lsd-body p:last-child {
  margin-bottom: 0;
}

/* Masterclass Common Mistakes & Pitfalls (Türkçe Düşünme Tuzakları) */
.lesson-section-pitfalls {
  background: rgba(254, 242, 242, 0.55);
  border: 1px solid rgba(254, 202, 202, 0.7);
}

.ls-pitfalls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.ls-pitfall-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(254, 202, 202, 0.8);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 4px 14px -3px rgba(220, 38, 38, 0.05);
}

.lsp-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.lsp-wrong-row {
  color: #991B1B;
}

.lsp-correct-row {
  color: #065F46;
  flex-wrap: wrap;
  align-items: center;
}

.lsp-speak-correct-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  margin-left: auto;
  background: rgba(236, 253, 245, 0.9);
  border-color: rgba(5, 150, 105, 0.4);
  color: #065F46;
}

.lsp-speak-correct-btn:hover {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

.lsv-speak-btn {
  padding: 0.22rem 0.55rem;
  font-size: 0.75rem;
  background: rgba(240, 253, 244, 0.9);
  border-color: rgba(16, 185, 129, 0.4);
  color: #065F46;
}

.lsv-speak-btn:hover {
  background: #059669;
  color: #FFFFFF;
  border-color: #059669;
}

.lsp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.lsp-wrong-badge {
  color: #DC2626;
}

.lsp-correct-badge {
  color: #059669;
}

.lsp-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.lsp-wrong-row .lsp-text {
  text-decoration: line-through;
  opacity: 0.85;
}

.lsp-why-box {
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: rgba(254, 242, 242, 0.7);
  border-radius: var(--radius-sm);
  border-left: 3px solid #EF4444;
}

.lsp-why-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #B91C1C;
  display: block;
  margin-bottom: 0.2rem;
}

.lsp-why-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #450A0A;
}

/* Masterclass Vocabulary Highlights (Modülün Kilit Tabirleri) */
.lesson-section-vocab {
  background: rgba(240, 253, 244, 0.55);
  border: 1px solid rgba(187, 247, 208, 0.7);
}

.ls-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}

.ls-vocab-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(187, 247, 208, 0.8);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 14px -3px rgba(16, 185, 129, 0.06);
}

.lsv-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lsv-term {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #064E3B;
}

.lsv-phonetic {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #059669;
  background: rgba(209, 250, 229, 0.6);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.lsv-meaning {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
}

.lsv-usage-box {
  margin-top: 0.25rem;
  padding: 0.55rem 0.75rem;
  background: rgba(240, 253, 244, 0.85);
  border-radius: var(--radius-sm);
  border-left: 3px solid #10B981;
}

.lsv-usage-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  display: block;
  margin-bottom: 0.15rem;
}

.lsv-usage-text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #064E3B;
}


