/* ============================================
   ENGLISH M3AYA — Page-Specific Styles
   ============================================ */

/* --- Home Page --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.recent-activity {
  margin-top: var(--space-6);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-info {
  flex: 1;
}
.activity-info .activity-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
}
.activity-info .activity-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* --- Courses Page --- */
/* --- Branded Hero Header --- */
.bhh-container {
  background-color: #0C1B3A;
  border-radius: 24px;
  padding: 40px 40px 70px 40px;
  margin-bottom: 120px;
  position: relative;
  color: white;
  display: flex;
  flex-direction: column;
}

.bhh-pattern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(197, 151, 58, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.bhh-pattern::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.bhh-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
  border-radius: 24px;
  overflow: hidden;
}

.bhh-badge, .bhh-title, .bhh-subtitle, .bhh-stats-grid {
  position: relative;
  z-index: 2;
}

.bhh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #C5973A;
  margin-bottom: 24px;
  width: fit-content;
}

.bhh-title {
  font-size: 42px;
  font-weight: 800;
  font-family: var(--font-family-cairo);
  margin-bottom: 16px;
  line-height: 1.2;
  color: #FFFFFF !important;
}

.bhh-title span {
  color: #C5973A;
}

.bhh-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.bhh-stats-grid {
  display: flex;
  gap: 16px;
  margin-bottom: -100px;
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
}

.bhh-stat-card {
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.bhh-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.bhh-stat-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bhh-stat-value {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-family-cairo);
  line-height: 1;
  margin-bottom: 4px;
  color: #0C1B3A;
}

.bhh-stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .bhh-container {
    padding: 24px 24px 24px 24px;
    margin-bottom: 160px;
    border-radius: 20px;
  }
  .bhh-title {
    font-size: 32px;
  }
  .bhh-subtitle {
    font-size: 14px;
  }
  .bhh-stats-grid {
    flex-wrap: wrap;
    margin-bottom: -130px;
    gap: 12px;
  }
  .bhh-stat-card {
    min-width: calc(50% - 6px);
    padding: 12px;
    gap: 12px;
  }
  .bhh-stat-value {
    font-size: 20px;
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-6);
  gap: var(--space-4);
  text-align: center;
}

.page-header h1 {
  font-size: var(--font-size-2xl);
}

/* --- Course Cards Grid --- */
.courses-page-wrapper {
  background: transparent;
  min-height: 100vh;
  padding-bottom: 90px;
}
@media (min-width: 768px) {
  .courses-page-wrapper {
    margin: 0;
    padding-bottom: 0;
    background: transparent;
  }
}

/* Featured Course Card */
.featured-course-card {
  position: relative;
  width: 100%;
  margin: 0 0 16px 0;
  height: 190px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12,27,58,0.1);
  transition: transform 0.2s;
}
@media (min-width: 768px) {
  .featured-course-card {
    width: 100%;
    margin: 0 0 32px 0;
    height: 300px;
  }
}
.featured-course-card:active {
  transform: scale(0.98);
}
.featured-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.3s;
}
.featured-course-card:hover .featured-bg {
  transform: scale(1.04);
}
.featured-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.featured-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 16px;
}
@media (min-width: 768px) {
  .featured-content { padding: 32px; }
}
.featured-top-row {
  display: flex;
  gap: 8px;
}
.featured-level-badge {
  background: rgba(197,151,58,0.25);
  color: #c5973a;
  border: 1px solid rgba(197,151,58,0.4);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
}
.featured-status-badge {
  background: rgba(26,158,117,0.2);
  color: #1a9e75;
  border: 1px solid rgba(26,158,117,0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
}
.featured-status-badge.status-completed {
  background: rgba(197,151,58,0.25);
  color: #c5973a;
  border: 1px solid rgba(197,151,58,0.4);
}
.featured-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
@media (min-width: 768px) {
  .featured-title { font-size: 40px; margin-bottom: 8px; }
}
.featured-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .featured-subtitle { font-size: 16px; margin-bottom: 24px; }
}
.featured-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.featured-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .featured-progress-bar { max-width: 400px; }
}
.featured-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0c1b3a, #c5973a);
  border-radius: 5px;
}
.featured-percentage {
  color: #c5973a;
  font-weight: 700;
  font-size: 14px;
}
.featured-btn {
  background: #c5973a;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
}

/* Header */
.courses-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .courses-section-header { padding: 0; }
}
.cs-title {
  font-size: 22px;
  font-weight: 800;
}
.cs-btn-all {
  background: rgba(197,151,58,0.12);
  border: 1px solid rgba(197,151,58,0.3);
  color: #c5973a;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
}

/* Level Tabs */
.level-tabs-scroll {
  padding: 4px 4px 16px 4px;
  margin: -4px -4px 0 -4px;
  overflow-x: auto;
  scrollbar-width: none;
}
@media (min-width: 768px) {
  .level-tabs-scroll { padding: 4px; margin: -4px; margin-bottom: 20px; }
}
.level-tabs-scroll::-webkit-scrollbar { display: none; }
.level-tabs {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}
.level-tab-btn {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  cursor: pointer;
  transition: all var(--transition-slow);
  will-change: transform, box-shadow, background-color;
}
.level-tab-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--color-primary-light);
}
.level-tab-btn.active {
  background: #0c1b3a;
  color: #fff;
  border-color: #0c1b3a;
  box-shadow: 0 4px 12px rgba(12,27,58,0.22);
}

/* Course Grid */
.courses-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .courses-grid {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Course Card */
.course-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8eaf0;
  box-shadow: 0 2px 12px rgba(12,27,58,0.07);
  height: 140px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 16px; /* Added margin for older flex gap support */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  will-change: transform;
  opacity: 0;
  animation: slideIn 0.35s ease forwards;
}
@media (min-width: 768px) {
  .course-card {
    flex-direction: column;
    height: auto;
    margin-bottom: 0; /* Reset margin on desktop grid */
  }
}
.course-card:active {
  transform: scale(0.98);
}
@keyframes slideIn {
  from { transform: translateX(-12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.course-card-top {
  position: relative;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: #e0e0e0;
}
@media (min-width: 768px) {
  .course-card-top {
    width: 100%;
    aspect-ratio: 16/9;
  }
}
.course-card-level-badge {
  position: absolute;
  top: 10px; left: 10px; z-index: 2;
  background: rgba(197,151,58,0.25);
  color: #c5973a;
  border: 1px solid rgba(197,151,58,0.4);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
}
.course-card-cover {
  width: 100%; height: 100%; object-fit: cover;
}
.course-card-emoji {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; height: 100%;
}

.course-card-bottom {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
@media (min-width: 768px) {
  .course-card-bottom { padding: 20px; }
}
.cc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.course-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0c1b3a;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .course-card-title { font-size: 18px; margin-bottom: 8px; }
}
.course-card-status-badge {
  font-size: 11px;
  border-radius: 100px;
  padding: 4px 10px;
  white-space: nowrap;
  font-weight: 600;
}
.course-card-status-badge.status-inprogress { background: rgba(26,158,117,0.12); color: #1a9e75; }
.course-card-status-badge.status-completed { background: rgba(197,151,58,0.12); color: #c5973a; }
.course-card-status-badge.status-pending { background: rgba(90,100,120,0.09); color: #5a6478; }

.course-card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #9ba5b7;
  font-weight: 500;
}
@media (min-width: 768px) {
  .course-card-meta { margin-bottom: 24px; }
}

.course-card-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.course-card-progress {
  flex: 1;
  height: 4px;
  background: #eef0f5;
  border-radius: 4px;
  overflow: hidden;
}
.course-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0c1b3a, #c5973a);
  border-radius: 4px;
}
.course-card-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: #c5973a;
}
.course-card-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
}
@media (min-width: 768px) {
  .course-card-progress-container {
    flex-wrap: wrap;
  }
  .course-card-progress { min-width: 100%; margin-bottom: 12px; }
  .course-card-progress-pct { display: none; }
  .course-card-btn { width: 100%; padding: 12px; font-size: 14px; }
}
.btn-continue { background: #0c1b3a; color: #fff; }
.btn-review { background: transparent; color: #0c1b3a; border: 1.5px solid #e8eaf0; }
.btn-start { background: #c5973a; color: #fff; }

/* Order Books Banner */
.order-books-banner {
  margin: 20px 0;
  background: #0c1b3a;
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (min-width: 768px) {
  .order-books-banner { margin: 32px 0; padding: 24px; }
}
.obb-content {
  position: relative; z-index: 2;
}
.obb-title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}
.obb-subtitle {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.obb-btn {
  background: #c5973a;
  color: #fff;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  position: relative; z-index: 2;
  white-space: nowrap;
  margin-left: 12px;
}
.obb-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(197,151,58,0.1);
  z-index: 1;
}
.obb-circle-1 { width: 100px; height: 100px; top: -20px; right: 20px; }
.obb-circle-2 { width: 150px; height: 150px; bottom: -50px; right: -20px; }

.level-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: var(--space-8);
}

.level-stepper::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--color-border);
}

.level-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  position: relative;
}

.level-step .level-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-xs);
  flex-shrink: 0;
  position: absolute;
  left: calc(-1 * var(--space-8));
  z-index: 1;
}

.level-step.inactive .level-dot {
  background: var(--color-text-light);
}

.level-step.highlight {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin: var(--space-1) 0;
}

.level-step .level-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
}
.level-step.inactive .level-name {
  color: var(--color-text-light);
}

.level-step .level-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --- Content Detail Page --- */
.content-detail {
  max-width: 900px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* Spotify-Style Player */
.spotify-player-container {
  background: transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  color: #000000;
  margin-bottom: var(--space-6);
  max-width: 100%;
}

@media (min-width: 768px) {
  .spotify-player-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: 
      "cover info"
      "controls controls";
    align-items: end;
    gap: 24px 48px;
    padding: 24px 0;
    background: transparent;
    border: none;
  }
}

/* Base Fullscreen Styles */
.spotify-player-container:fullscreen {
  background: #FAF7F2;
  max-width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.spotify-player-container:-webkit-full-screen {
  background: #FAF7F2;
  max-width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.spotify-player-container:fullscreen .sp-fullscreen-logo,
.spotify-player-container:-webkit-full-screen .sp-fullscreen-logo {
  display: block !important;
}

/* Fullscreen Styles (Desktop) */
@media (min-width: 768px) {
  .spotify-player-container:fullscreen {
    padding: 100px 80px 40px 80px; /* Extra top padding for the logo */
    grid-template-columns: 450px 1fr; /* Allow larger image */
    gap: 40px 80px;
  }
  .spotify-player-container:-webkit-full-screen {
    padding: 100px 80px 40px 80px;
    grid-template-columns: 450px 1fr;
    gap: 40px 80px;
  }
  .spotify-player-container:fullscreen .sp-cover-wrapper,
  .spotify-player-container:-webkit-full-screen .sp-cover-wrapper {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .spotify-player-container:fullscreen .sp-title,
  .spotify-player-container:-webkit-full-screen .sp-title {
    font-size: 72px; /* Massive Title for Fullscreen */
    margin-bottom: 12px;
  }
  .spotify-player-container:fullscreen .sp-subtitle,
  .spotify-player-container:-webkit-full-screen .sp-subtitle {
    font-size: 24px;
  }
}

/* Fullscreen Styles (Mobile) */
@media (max-width: 767px) {
  .spotify-player-container:fullscreen {
    padding: 100px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .spotify-player-container:-webkit-full-screen {
    padding: 100px 24px 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .spotify-player-container:fullscreen .sp-fullscreen-logo,
  .spotify-player-container:-webkit-full-screen .sp-fullscreen-logo {
    font-size: 32px !important;
    top: 30px !important;
  }
}

.sp-cover-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(13, 27, 62, 0.1);
  margin-bottom: var(--space-6);
  background: #f0f0f0;
}

@media (min-width: 768px) {
  .sp-cover-wrapper {
    grid-area: cover;
    margin-bottom: 0;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(13, 27, 62, 0.15);
  }
}

.sp-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-cover-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.sp-info {
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .sp-info {
    grid-area: info;
    margin-bottom: 0;
    align-self: end;
    padding-bottom: 16px;
    text-align: left;
  }
}

.sp-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .sp-title {
    font-size: 42px; /* Elegant, premium size */
    letter-spacing: -0.02em;
  }
}

.sp-subtitle {
  font-size: 14px;
  color: #555555;
  font-weight: 500;
}

@media (min-width: 768px) {
  .sp-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .spotify-player-container {
    align-items: center;
    text-align: center;
  }
  .sp-cover-wrapper {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  .sp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .sp-controls-wrapper {
    width: 100%;
  }
  .sp-controls {
    justify-content: center;
    margin-bottom: var(--space-5);
  }
}

.sp-controls-wrapper {
  grid-area: controls;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .sp-controls-wrapper {
    /* Keep column layout to stack progress bar ABOVE play button */
    flex-direction: column; 
    align-items: stretch;
    gap: var(--space-4);
  }
}

.sp-progress-container {
  margin-bottom: var(--space-5);
  width: 100%;
}

@media (min-width: 768px) {
  .sp-progress-container {
    margin-bottom: 0;
  }
}

.sp-seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-bottom: 8px;
  transition: height 0.1s;
}

.sp-seek-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 2px;
  border: none;
}

.sp-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-top: -5px; /* Aligns thumb with the 4px track */
}

.sp-seek-slider:hover::-webkit-slider-thumb {
  opacity: 1;
}
.sp-seek-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.sp-seek-slider:hover {
  height: 6px;
}

.sp-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777777;
  font-weight: 500;
}

.sp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .sp-controls {
    justify-content: center;
  }
}

.sp-ctrl-btn {
  background: none;
  border: none;
  color: #555555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
}

.sp-ctrl-btn:hover {
  color: #000;
}
.sp-ctrl-btn:active {
  transform: scale(0.9);
}

.sp-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(13, 27, 62, 0.3);
}

.sp-play-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 27, 62, 0.4);
}
.sp-play-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(13, 27, 62, 0.2);
}

@media (max-width: 767px) {
  .spotify-player-container {
    padding: var(--space-4) 0;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Audio upload preview in admin */
.admin-audio-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--color-surface);
}

.watch-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.watch-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.watch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.watch-progress-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 50px;
  text-align: right;
}

.notes-content {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  line-height: 1.8;
  font-size: var(--font-size-base);
}

.notes-content h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.notes-content h3:first-child {
  margin-top: 0;
}

.notes-content p {
  margin-bottom: var(--space-4);
}

.notes-content ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.notes-content ul li {
  list-style: disc;
  margin-bottom: var(--space-2);
}

.step-content-area {
  min-height: 300px;
}

.unlock-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  text-align: center;
  color: var(--color-text-muted);
}
.unlock-message .lock-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}
.unlock-message p {
  font-size: var(--font-size-sm);
  max-width: 300px;
}

/* --- Vocabulary Page --- */
.vocab-section {
  margin-bottom: var(--space-8);
}

.quiz-container {
  max-width: 680px;
}

.quiz-question {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.quiz-score-bar {
  display: flex;
  gap: 3px;
}
.quiz-score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition);
}
.quiz-score-dot.correct { background: var(--color-success); }
.quiz-score-dot.incorrect { background: var(--color-error); }

.flashcard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  padding: var(--space-6) 0;
}

/* quiz result feedback */
.quiz-feedback {
  padding: var(--space-5);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  animation: slideDown 0.3s ease;
}
.quiz-feedback.success {
  background: var(--color-success-light);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}
.quiz-feedback.error {
  background: var(--color-error-light);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}
.quiz-feedback .feedback-icon {
  font-size: 1.5rem;
}
.quiz-feedback .feedback-text {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* --- To-Do Page --- */
.todo-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: var(--space-6);
  align-items: start;
}

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

.todo-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.courses-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.cs-title {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-family-cairo);
}
.cs-btn-all {
  font-size: var(--font-size-sm);
  color: #C5973A;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* --- Level Tabs --- */
.level-tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.level-tabs-scroll::-webkit-scrollbar { display: none; }

.level-tabs {
  display: flex;
  gap: var(--space-3);
  padding-bottom: 4px;
}
.level-tab-btn {
  padding: 8px 24px;
  border-radius: 20px;
  background-color: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-slow);
  will-change: transform, box-shadow, background-color;
}
.level-tab-btn:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--color-primary-light);
}
.level-tab-btn.active {
  background-color: #0C1B3A;
  color: white;
  border-color: #0C1B3A;
}

/* --- Type Tabs --- */
.type-tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 24px;
}
.type-tabs-scroll::-webkit-scrollbar { display: none; }

.type-tabs {
  display: flex;
  gap: 12px;
  padding-bottom: 4px;
}
.type-tab-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: white;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.type-tab-btn.active {
  background-color: #C5973A;
  color: white;
  border-color: #C5973A;
}

/* --- Search Filter Row --- */
.search-filter-row {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.search-input-wrapper {
  flex: 1;
  position: relative;
}
.search-input-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 16px;
}
.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.search-input-wrapper input:focus {
  border-color: #C5973A;
}
.filter-btn {
  padding: 0 24px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: white;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.filter-btn:hover {
  background-color: var(--color-bg-alt);
}

.todo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.add-task-form {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.add-task-form input {
  flex: 1;
}

/* --- Calendar View --- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-header-row {
  border-bottom: 1px solid var(--color-border);
}
.cal-weekday {
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-cell {
  min-height: 100px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border);
  border-top: none;
  border-left: none;
  cursor: pointer;
  transition: background 0.15s ease;
  overflow: hidden;
}
.cal-cell:nth-child(7n) {
  border-right: none;
}
.cal-cell:hover {
  background: var(--color-primary-light);
}
.cal-cell.cal-other {
  background: var(--color-bg-alt);
  opacity: 0.5;
}
.cal-cell.cal-today {
  background: var(--color-primary-light);
}
.cal-cell.cal-selected {
  background: rgba(59, 130, 246, 0.08);
}
.cal-day-num {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.cal-today-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
}
.cal-task {
  font-size: 10px;
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 500;
  transition: opacity 0.15s;
}
.cal-task:hover {
  opacity: 0.8;
}
.cal-more {
  font-size: 9px;
  color: var(--color-text-muted);
  padding: 1px 4px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .cal-cell {
    min-height: 60px;
    padding: 2px;
  }
  .cal-task {
    font-size: 8px;
  }
}

/* --- Settings Page --- */
.settings-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.settings-nav {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.settings-nav-item:hover {
  background: var(--color-surface);
}
.settings-nav-item.active {
  background: var(--color-surface);
  border-left-color: var(--color-primary);
  font-weight: 600;
  color: var(--color-primary);
}

.settings-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.settings-section {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.settings-row-info h5 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.settings-row-info p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Settings Account Card */
.settings-account-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  border-top: 3px solid #d4af37;
}

.settings-avatar-wrap {
  flex-shrink: 0;
}

.settings-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3060, #2a4a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  border: 3px solid rgba(212, 175, 55, 0.3);
}
.settings-avatar:hover {
  border-color: #d4af37;
  transform: scale(1.05);
}
.settings-avatar span {
  color: #fff;
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: 1px;
}
.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings-avatar-edit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 2px 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.settings-avatar:hover .settings-avatar-edit {
  opacity: 1;
}

.settings-account-info h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.settings-account-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

@media (max-width: 500px) {
  .settings-account-card {
    flex-direction: column;
    text-align: center;
  }
  .settings-account-details {
    align-items: center;
  }
}

/* Settings Verify Modal */
.settings-verify-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 27, 62, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  animation: settingsFadeIn 0.2s ease;
}
@keyframes settingsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes settingsFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.settings-verify-modal {
  background: #fff;
  border-radius: 16px;
  padding: var(--space-6);
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(13, 27, 62, 0.18);
  animation: settingsSlideUp 0.25s ease;
}
@keyframes settingsSlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes settingsSlideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(16px); opacity: 0; }
}

.settings-verify-modal h3 {
  text-align: center;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-base);
  font-weight: 700;
}

.settings-verify-modal .form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.settings-verify-modal .form-input {
  padding: 10px 14px;
  font-size: var(--font-size-sm);
  border-radius: 10px;
}

.settings-verify-modal .form-group {
  margin-bottom: var(--space-3);
}

.settings-verify-modal .btn {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.settings-verify-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-3);
}

/* --- Admin Page --- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.admin-section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.admin-section h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* --- Admin Courses Management --- */
.admin-tabs-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.admin-tab-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-lock-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-lock-btn:hover {
  background: rgba(212,175,55,0.1);
  border-color: #d4af37;
}
.admin-lock-btn.locked {
  background: rgba(231,76,60,0.08);
  border-color: #e74c3c;
}

/* Admin card with overlay */
.admin-course-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  border: none;
  transition: all 0.3s;
}
.admin-course-card:hover {
  box-shadow: 0 8px 24px rgba(13,27,62,0.1);
}
.admin-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity 0.2s;
}
.admin-course-card:hover .admin-card-overlay {
  opacity: 1;
}
.admin-card-action {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  font-weight: 700;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: transform 0.15s;
}
.admin-card-action:hover {
  transform: scale(1.08);
}
.admin-card-action.edit {
  background: #d4af37;
  color: #0d1b3e;
}
.admin-card-action.delete {
  background: #e74c3c;
  color: #fff;
}

/* Add New Card */
.admin-add-card {
  border: 2px dashed rgba(212,175,55,0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(212,175,55,0.03);
}
.admin-add-card:hover {
  border-color: #d4af37;
  background: rgba(212,175,55,0.08);
  transform: translateY(-2px);
}
.admin-add-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212,175,55,0.12);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: var(--space-3);
}
.admin-add-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --- Admin Content Grid & Cards (Vocabulary) --- */
.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-4);
}
.admin-content-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.admin-card-emoji {
  font-size: 2.5rem;
}
.admin-card-badges {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.admin-card-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}
.admin-card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.admin-card-actions {
  display: flex;
  gap: var(--space-2);
}
.av-card-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* --- Smooth step transition --- */
.av-step-body {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Icon Picker --- */
.av-icon-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.av-icon-preview {
  position: relative;
  width: 64px;
  height: 64px;
  border: 2px dashed var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--color-bg-alt);
  overflow: visible;
}
.av-icon-preview:hover {
  border-color: var(--color-primary);
  background: rgba(59,130,246,0.04);
}
.av-icon-emoji-row {
  width: 100%;
}
.av-icon-emoji-row .form-input {
  border: 2px solid var(--color-secondary) !important;
}

/* --- Color Picker --- */
.av-color-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.av-color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.av-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.av-swatch:hover {
  transform: scale(1.15);
}
.av-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2.5px var(--color-text);
}
.av-color-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.av-color-preview {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* --- Image Delete Button --- */
.av-img-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e74c3c;
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.av-img-delete:hover {
  transform: scale(1.15);
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --- Vocab Word Rows --- */
.av-words-list {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.av-word-row, .av-quiz-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.av-word-row:last-child, .av-quiz-row:last-child {
  border-bottom: none;
}
.av-word-row:hover, .av-quiz-row:hover {
  background: var(--color-surface);
}
.av-word-emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.av-word-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.av-quiz-info {
  flex: 1;
  min-width: 0;
}
.av-word-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

/* Locked overlay */
.admin-locked-overlay {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-10) var(--space-5);
  background: rgba(231,76,60,0.04);
  border: 1px dashed rgba(231,76,60,0.2);
  border-radius: var(--radius-lg);
}
.admin-locked-icon {
  font-size: 3rem;
  margin-bottom: var(--space-3);
}
.admin-locked-overlay h3 {
  margin-bottom: var(--space-2);
}
.admin-locked-overlay p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

/* Lock banner (admin sees courses + this banner) */
.admin-lock-banner {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

/* Thumbnail upload */
.admin-thumb-upload {
  margin-top: var(--space-2);
}
.admin-thumb-empty {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  transition: all 0.2s;
}
.admin-thumb-empty:hover {
  border-color: #d4af37;
  background: rgba(212,175,55,0.04);
}
.admin-thumb-has-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 180px;
}
.admin-thumb-has-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.admin-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--radius);
}
.admin-thumb-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: var(--font-size-sm);
}
.admin-thumb-has-image:hover .admin-thumb-overlay {
  opacity: 1;
}

/* Rich Text Editor */
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--color-bg-alt);
}
.rte-toolbar button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.15s;
  min-width: 28px;
  text-align: center;
}
.rte-toolbar button:hover {
  background: rgba(13,27,62,0.06);
  border-color: var(--color-border);
}
.rte-toolbar button:active {
  background: rgba(212,175,55,0.15);
}
.rte-sep {
  width: 1px;
  background: var(--color-border);
  margin: 2px 4px;
  align-self: stretch;
}
.rte-editor {
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: var(--space-4);
  min-height: 200px;
  max-height: 350px;
  overflow-y: auto;
  font-size: var(--font-size-sm);
  line-height: 1.7;
  outline: none;
  background: #fff;
}
.rte-editor:focus {
  box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
}
.rte-editor h2 { font-size: 1.3rem; margin: 0.5em 0; }
.rte-editor h3 { font-size: 1.1rem; margin: 0.5em 0; }
.rte-editor p { margin: 0.4em 0; }
.rte-editor ul, .rte-editor ol { padding-left: 1.5em; margin: 0.4em 0; }

/* --- Admin Editor Modal --- */
.admin-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,62,0.45);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: editorOverlayIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.admin-editor-modal {
  background: var(--color-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(13,27,62,0.25);
  animation: editorModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

@keyframes editorOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes editorModalIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes editorOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes editorModalOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
}
.admin-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.admin-editor-header h3 {
  margin: 0;
  font-size: var(--font-size-base);
}
.admin-editor-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.admin-editor-close:hover {
  background: var(--color-bg-alt);
}

/* Stepper */
.admin-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.admin-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.admin-step.active,
.admin-step.done {
  opacity: 1;
}
.admin-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.admin-step.active .admin-step-num {
  background: #d4af37;
  color: #0d1b3e;
}
.admin-step.done .admin-step-num {
  background: #27ae60;
  color: #fff;
}
.admin-step-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.admin-editor-body {
  padding: var(--space-5);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-editor-body .form-group {
  margin-bottom: var(--space-4);
}

.admin-editor-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Thumbnail preview */
.admin-thumb-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.admin-thumb-preview img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}
.admin-thumb-preview span {
  font-size: var(--font-size-sm);
  color: #27ae60;
  font-weight: 600;
}
/* Kindle-Style Page Editor (Admin Reading) */
.ar-kindle-editor {
  margin: calc(-1 * var(--space-3));
}
.ar-kindle-page {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ar-kindle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.ar-kindle-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #4dabf7);
  margin: 0;
}
.ar-kindle-body {
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-5) !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-size: var(--font-size-base);
  line-height: 1.8;
}
.ar-kindle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* Quiz Builder */
.admin-quiz-list {
  max-height: 400px;
  overflow-y: auto;
}
.admin-quiz-row {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  background: var(--color-bg-alt);
}
.admin-quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.admin-quiz-num {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: #d4af37;
}
.admin-quiz-remove {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.admin-quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.admin-quiz-opt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.admin-quiz-opt input[type="radio"] {
  accent-color: #27ae60;
}
.admin-quiz-opt .form-input {
  flex: 1;
  padding: 6px 10px;
  font-size: var(--font-size-xs);
}

@media (max-width: 600px) {
  .admin-editor-modal { max-width: 100%; }
  .admin-stepper { gap: var(--space-2); }
  .admin-step-label { display: none; }
  .admin-quiz-options { grid-template-columns: 1fr; }
}

/* --- Notification Panel --- */
.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  max-height: 400px;
  overflow-y: auto;
}
.notification-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  transition: background var(--transition);
  cursor: pointer;
}
.notification-item:hover {
  background: var(--color-surface);
}
.notification-item:last-child {
  border-bottom: none;
}
.notification-item .notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-info);
  flex-shrink: 0;
  margin-top: 6px;
}
.notification-item .notif-text {
  font-size: var(--font-size-sm);
  line-height: 1.4;
}
.notification-item .notif-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================
   KAHOOT-STYLE QUIZ
   ============================================ */
.kahoot-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.kahoot-container::before,
.kahoot-container::after { display: none; }

.kahoot-progress {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
.kahoot-dot {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: #e2e8f0;
  transition: all 0.3s;
}
.kahoot-dot.current {
  background: #0d1b3e;
  width: 32px;
}
.kahoot-dot.done {
  background: #94a3b8;
}

.kahoot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kahoot-emoji {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  animation: kahootPop 0.5s ease-out;
}

.kahoot-image {
  width: 200px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.kahoot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kahoot-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  animation: kahootSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}
.kahoot-banner.correct {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 4px 20px rgba(46,204,113,0.3);
}
.kahoot-banner.incorrect {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 20px rgba(231,76,60,0.3);
}
.kahoot-banner-icon {
  font-size: 1.4rem;
}

@keyframes kahootSlide {
  0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.kahoot-question-card {
  background: #f1f5f9;
  color: #0d1b3e;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--font-size-lg);
  text-align: center;
  margin-bottom: var(--space-5);
  max-width: 600px;
  width: 100%;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  position: relative;
}
.kahoot-q-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d1b3e;
  color: #fff;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.kahoot-question-image {
  width: 100%;
  max-width: 500px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.kahoot-question-image img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.kahoot-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: 100%;
  max-width: 600px;
}

.kahoot-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 2px solid #e2e8f0;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #0d1b3e;
  background: #f8fafc;
  transition: all 0.25s;
  position: relative;
  text-align: left;
  min-height: 60px;
}
.kahoot-option:hover:not(:disabled) {
  background: #eef2ff;
  border-color: #0d1b3e;
  transform: scale(1.02);
}
.kahoot-option.correct {
  background: #d1fae5 !important;
  border-color: #27ae60 !important;
  color: #065f46 !important;
  animation: kahootPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kahoot-option.incorrect {
  background: #fee2e2 !important;
  border-color: #e74c3c !important;
  color: #991b1b !important;
  animation: kahootShake 0.4s;
}
.kahoot-option.dimmed {
  opacity: 0.35;
}
.kahoot-option-icon {
  font-size: 1.4rem;
}
.kahoot-option-text {
  flex: 1;
}
.kahoot-check, .kahoot-x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.kahoot-check { background: #27ae60; color: #fff; }
.kahoot-x { background: #c0392b; color: #fff; }

@keyframes kahootPop {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes kahootShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.kahoot-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  position: relative;
  z-index: 1;
}
.kahoot-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0d1b3e;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kahoot-nav-btn:hover:not(:disabled) {
  background: #0d1b3e;
  color: #fff;
}
.kahoot-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.kahoot-score-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
.kahoot-stat {
  font-weight: 700;
  font-size: var(--font-size-sm);
}
.kahoot-stat.correct { color: #2ecc71; }
.kahoot-stat.incorrect { color: #e74c3c; }

/* Kahoot quiz results */
.kahoot-result {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #0d1b3e;
  position: relative;
  z-index: 1;
}
.kahoot-result-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  animation: kahootPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.kahoot-result h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}
.kahoot-result-score {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #f0d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kahoot-result-detail {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-3);
  font-size: var(--font-size-lg);
}

@media (max-width: 600px) {
  .kahoot-options-grid { grid-template-columns: 1fr; }
  .kahoot-container { padding: var(--space-4); min-height: 400px; }
  .kahoot-question-card { font-size: var(--font-size-base); }
  .kahoot-option { padding: var(--space-3) var(--space-4); min-height: 48px; font-size: var(--font-size-sm); }
}

/* ============================================
   FLASHCARD COMPONENT
   ============================================ */
.fc-fullscreen-wrapper {
  position: relative;
  width: 100%;
}
.fc-fullscreen-wrapper:fullscreen {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.fc-fullscreen-wrapper.fc-fs-active {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.fc-container {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  flex: 1;
}

.fc-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.fc-header-badge {
  background: rgba(13, 27, 62, 0.06);
  color: var(--color-text);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  position: relative;
  z-index: 1;
}

.fc-header-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--space-2);
}

.fc-header-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.fc-header-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.fc-progress-top {
  width: 100%;
  max-width: 600px;
  height: 5px;
  background: rgba(13, 27, 62, 0.06);
  border-radius: 3px;
  margin-bottom: var(--space-5);
  overflow: hidden;
  position: relative;
  z-index: 1;
  align-self: center;
}
.fc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f0d060);
  border-radius: 3px;
  transition: width 0.4s;
}

.fc-card-area {
  perspective: 1200px;
  width: 100%;
  min-height: 360px;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.fc-card {
  width: 100%;
  min-height: 360px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.fc-card.flipped {
  transform: rotateY(180deg);
}

.fc-card-front, .fc-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(13, 27, 62, 0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.fc-card-front {
  background: #fff;
  color: var(--color-text);
  border-left: 5px solid #7c3aed;
}
.fc-card-back {
  background: linear-gradient(135deg, #0d1b3e, #1a3060);
  color: #fff;
  transform: rotateY(180deg);
}

.fc-card-question {
  font-size: var(--font-size-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-5);
  color: #2d3748;
}
.fc-card-image {
  width: 180px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-3);
}
.fc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-card-text-only {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Interact zone — wraps card + actions for CSS hover pill */
.fc-interact-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.fc-hover-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-size-base);
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}
.fc-hover-pill.know {
  background: #27ae60;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(39,174,96,0.35);
}
.fc-hover-pill.dontknow {
  background: #3498db;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(52,152,219,0.35);
}

/* Show pills when hovering action buttons */
.fc-interact-zone:has(.fc-action-btn.know:hover) .fc-hover-pill.know {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.fc-interact-zone:has(.fc-action-btn.dontknow:hover) .fc-hover-pill.dontknow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.fc-flip-icon {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.fc-flip-icon:hover { opacity: 0.6; }

.fc-card-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
  margin-bottom: var(--space-4);
}
.fc-card-answer {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  text-align: center;
}

.fc-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
  align-self: center;
}
.fc-action-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-action-btn.dontknow:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
  transform: scale(1.1);
}
.fc-action-btn.know:hover {
  background: #27ae60;
  border-color: #27ae60;
  color: #fff;
  transform: scale(1.1);
}

.fc-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  padding: var(--space-3) var(--space-4);
  background: rgba(13, 27, 62, 0.04);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
  align-self: center;
}
.fc-bottom-stat {
  font-weight: 700;
  font-size: var(--font-size-sm);
}
.fc-bottom-stat.know { color: #27ae60; }
.fc-bottom-stat.dontknow { color: #e74c3c; }

.fc-bottom-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin: 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}
.fc-bottom-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(13, 27, 62, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.fc-bottom-progress-fill {
  height: 100%;
  background: #d4af37;
  border-radius: 2px;
  transition: width 0.3s;
}

/* Flashcard results */
.fc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}
.fc-result-icon { font-size: 4rem; margin-bottom: var(--space-4); }
.fc-result h2 { font-size: var(--font-size-2xl); margin-bottom: var(--space-4); }
.fc-result-stats {
  display: flex;
  gap: var(--space-5);
  margin-bottom: var(--space-3);
}
.fc-result-stat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
}
.fc-result-stat.know { background: rgba(39,174,96,0.1); color: #27ae60; }
.fc-result-stat.dontknow { background: rgba(231,76,60,0.1); color: #e74c3c; }
.fc-result-score {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #f0d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SUBSECTION TABS (Listening/Reading)
   ============================================ */
.subsection-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.subsection-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
}
.subsection-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.subsection-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================
   READING CARDS GRID
   ============================================ */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .reading-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reading-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  background: #fff;
  will-change: transform;
}
.reading-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(13, 27, 62, 0.12);
}

.reading-card-top {
  position: relative;
  background: linear-gradient(135deg, #1a2d6e 0%, #2d4db8 50%, #2a5bd7 100%);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.reading-card-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  margin-bottom: var(--space-3);
}

.rc-badge {
  position: absolute;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.rc-badge-tl { top: var(--space-3); left: var(--space-3); background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); color: #C5973A; }
.rc-badge-tr { top: var(--space-3); right: var(--space-3); background: rgba(12,27,58,0.7); backdrop-filter: blur(4px); }
.rc-badge-br { bottom: var(--space-3); right: var(--space-3); font-size: 10px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.reading-card-category { display: none; } /* Replaced by rc-badge-tr */

.reading-card-bottom {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}

.reading-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.reading-card-level {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.rc-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.rc-tag {
  font-size: 11px;
  font-weight: 600;
  color: #C5973A;
  border: 1px solid rgba(197,151,58,0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.rc-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.rc-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.rc-progress-fill {
  height: 100%;
  background: #C5973A;
}
.rc-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: #C5973A;
}

.rc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.rc-footer-left {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
}
.reading-card-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: #f8f9fa;
  color: #5a6478;
  border: 1px solid #e2e4e8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.reading-card-btn.continue {
  background: #0C1B3A;
  color: #fff;
  border-color: #0C1B3A;
}
.reading-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12,27,58,0.15);
}

@media (max-width: 600px) {
  .reading-grid { grid-template-columns: repeat(1, 1fr); gap: var(--space-4); }
  .reading-card-emoji { font-size: 2.5rem; }
}

/* ============================================
   EBOOK COVER CARDS
   ============================================ */
.ebook-category-section {
  margin-bottom: var(--space-6);
}

.ebook-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.ebook-category-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
}

.ebook-see-all {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(13, 27, 62, 0.06);
  transition: all 0.2s;
}
.ebook-see-all:hover {
  background: var(--color-primary);
  color: #fff;
}

.ebook-cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-5);
}

.ebook-cover-card {
  cursor: pointer;
  transition: all 0.3s ease;
}
.ebook-cover-card:hover {
  transform: translateY(-6px);
}
.ebook-cover-card:hover .ebook-cover-image {
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.18);
}

.ebook-cover-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.ebook-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ebook-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2d6e, #2a5bd7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ebook-cover-placeholder span {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.ebook-cover-level {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  color: #C5973A;
  border: 1px solid rgba(255,255,255,0.1);
}

.ebook-cover-badge-tr {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  background: rgba(12,27,58,0.7);
  backdrop-filter: blur(4px);
  color: #fff;
}

.ebook-cover-duration {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.ebook-cover-info {
  padding: var(--space-3) 4px;
}

.ebook-cover-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ebook-cover-author {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

.ebook-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ebook-tag {
  font-size: 10px;
  font-weight: 600;
  color: #C5973A;
  background: rgba(197,151,58,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.ebook-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ebook-footer-left {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 500;
}
.ebook-card-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: #C5973A;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ebook-card-btn.read {
  background: #0C1B3A;
}
.ebook-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
  .ebook-cover-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* ============================================
   EPISODE LIST (Podcast-style rows)
   ============================================ */
/* Masterclass Grid Layout */
.masterclass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.masterclass-card {
  position: relative;
  aspect-ratio: 1080 / 1350;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #0d1b3e, #1a305e);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.masterclass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.masterclass-card .mc-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.masterclass-card .mc-card-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #1a2d6e, #2541a8);
}

.masterclass-card .mc-card-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
  z-index: 2;
}

.masterclass-card .mc-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-6);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.masterclass-card .mc-card-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.masterclass-card .mc-card-subtitle {
  color: #e2e8f0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-5);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.masterclass-card .mc-card-play-btn {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-weight: 700;
  font-size: var(--font-size-base);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
  width: auto;
  min-width: 120px;
  justify-content: center;
}

.masterclass-card .mc-card-play-btn:hover {
  background: #f1f5f9;
}

@media (max-width: 600px) {
  .masterclass-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .masterclass-card .mc-card-title {
    font-size: 20px;
  }
  .masterclass-card .mc-card-content {
    padding: var(--space-4);
  }
  .masterclass-card .mc-card-play-btn {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
    min-width: auto;
  }
}

/* ============================================
   TRANSCRIPT COMPONENT
   ============================================ */
.transcript-container {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  max-height: 400px;
  overflow-y: auto;
  line-height: 2;
}
.transcript-line {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  font-size: var(--font-size-base);
}
.transcript-line.active {
  background: rgba(212,175,55,0.12);
  color: var(--color-primary);
  font-weight: 600;
}
.transcript-line .transcript-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-right: var(--space-2);
  font-family: monospace;
}

/* ============================================
   READING TABS (Read/Translate/Quiz)
   ============================================ */
.reading-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  gap: 0;
  margin-bottom: var(--space-5);
}
.reading-tab {
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.reading-tab:hover { color: var(--color-text); }
.reading-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.reading-content {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  line-height: 1.9;
  font-size: var(--font-size-base);
}

/* ============================================
   SPEAKING CARDS
   ============================================ */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.speaking-card {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border: 1px solid var(--color-border);
  will-change: transform;
}
.speaking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 27, 62, 0.12);
}

.speaking-card-top {
  background: linear-gradient(135deg, #1a3060 0%, #2a4a8a 100%);
  padding: var(--space-4) var(--space-4) var(--space-6);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 140px;
}

.speaking-card-lesson {
  background: rgba(212, 175, 55, 0.9);
  color: #0d1b3e;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.speaking-card-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.speaking-card-status.done {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}
.speaking-card-status.new {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
}

.speaking-card-emoji {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.speaking-card-bottom {
  padding: var(--space-4);
}

.speaking-card-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.speaking-card-level {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  color: #b8941e;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.speaking-card-progress {
  width: 100%;
  height: 4px;
  background: rgba(13, 27, 62, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.speaking-card-progress-fill {
  height: 100%;
  background: #d4af37;
  border-radius: 2px;
  transition: width 0.3s;
}

@media (max-width: 600px) {
  .speaking-grid { grid-template-columns: 1fr; }
  .speaking-card-top { min-height: 120px; }
}

/* ============================================
   VOCAB WORD CARDS
   ============================================ */
.vocab-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-4);
}

.vocab-word-card {
  background: #f8fafc;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3) var(--space-3);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.stagger-children > .vocab-word-card {
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
}
.vocab-word-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(13, 27, 62, 0.1);
}

.vocab-word-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.vocab-word-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto var(--space-3) auto;
  display: block;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.vocab-word-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.vocab-word-translation {
  font-size: var(--font-size-xs);
  color: #94a3b8;
  margin-bottom: var(--space-2);
  font-style: italic;
}

.vocab-word-audio {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.vocab-word-audio:hover {
  background: #d4af37;
  border-color: #d4af37;
  transform: scale(1.1);
}
.vocab-word-audio:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  .vocab-words-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .vocab-word-emoji { font-size: 2.2rem; }
  .vocab-word-card { padding: var(--space-4) var(--space-2); }
}

/* ============================================
   EBOOK CONTAINER
   ============================================ */
.ebook-fullscreen-wrapper {
  position: relative;
}
.ebook-fullscreen-wrapper:fullscreen {
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
}
.ebook-fullscreen-wrapper:fullscreen .ebook-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  border: none;
  box-shadow: none;
}
.ebook-fullscreen-wrapper:fullscreen .ebook-body {
  flex: 1;
  min-height: 0;
  font-size: 1.15rem;
  padding: var(--space-8);
}
.ebook-fullscreen-wrapper:fullscreen .ebook-audio-bar {
  max-width: 900px;
  margin: var(--space-4) auto 0;
  width: 100%;
}
/* CSS-only fallback fullscreen */
.ebook-fullscreen-wrapper.ebook-fs-active {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
}
.ebook-fs-active .ebook-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  border: none;
  box-shadow: none;
}
.ebook-fs-active .ebook-body {
  flex: 1;
  min-height: 0;
  font-size: 1.15rem;
  padding: var(--space-8);
}
.ebook-fs-active .ebook-audio-bar {
  max-width: 900px;
  margin: var(--space-4) auto 0;
  width: 100%;
}

.ebook-container {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ebook-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  position: relative;
}

.ebook-fullscreen-btn {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ebook-fullscreen-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.ebook-icon {
  font-size: 1.3rem;
}
.ebook-header-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
}

.ebook-divider {
  height: 2px;
  background: var(--color-primary);
  margin: 0 var(--space-5);
}

.ebook-body {
  padding: var(--space-6) var(--space-6);
  height: 500px;
  overflow: hidden;
  line-height: 1.9;
  font-size: var(--font-size-base);
  color: var(--color-text);
}
.ebook-body h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}
.ebook-body p {
  margin-bottom: var(--space-3);
}
.ebook-body ul, .ebook-body ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
}
.ebook-body li {
  margin-bottom: var(--space-1);
}

.ebook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
}

.ebook-nav-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1.5px solid var(--color-border);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}
.ebook-nav-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.ebook-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.ebook-page-info {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* --- Audio Player Bar --- */
.ebook-audio-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  background: #1a1a2e;
  border-radius: var(--radius-full);
}

.ebook-audio-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d4af37;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ebook-audio-play:hover {
  background: #b8962e;
  transform: scale(1.05);
}

.ebook-audio-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.ebook-audio-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.ebook-audio-progress-fill {
  height: 100%;
  background: #d4af37;
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.ebook-speed-btn {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #d4af37;
  color: #fff;
  border: none;
  font-size: var(--font-size-xs);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ebook-speed-btn:hover {
  background: #b8962e;
}

/* --- Translate Side-by-Side --- */
.ebook-translate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.translate-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.translate-layout .translate-col {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.translate-col h4 {
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .ebook-translate-grid { grid-template-columns: 1fr; }
  .translate-layout { grid-template-columns: 1fr; }
  .ebook-body { padding: var(--space-4); height: 400px; }
  .ebook-audio-bar { border-radius: var(--radius); }
}

/* ============================================
   HOME PAGE SECTIONS
   ============================================ */
.home-section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  margin-top: var(--space-6);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.home-section-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.home-section-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: var(--font-size-base);
}

.book-cta-banner {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2d5e 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: #fff;
}
.book-cta-banner h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
  color: #fff;
}
.book-cta-banner p {
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-sm);
}
.book-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: #d4af37;
  color: #0d1b3e;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  transition: all 0.25s;
  white-space: nowrap;
}
.book-cta-btn:hover {
  background: #c9a430;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
}

/* ============================================
   SPEAKING PRACTICE VIDEO
   ============================================ */
.practice-unlock-card {
  background: linear-gradient(135deg, rgba(46,204,113,0.1), rgba(39,174,96,0.05));
  border: 2px solid var(--color-success);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  margin-top: var(--space-5);
}
.practice-unlock-card h4 {
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

/* ============================================
   RTL Overrides
   ============================================ */
/* Fix courses grid left-to-right ordering in RTL */
[dir="rtl"] .courses-grid,
[dir="rtl"] .tab-filter {
  direction: ltr;
}
[dir="rtl"] .course-card {
  direction: rtl; /* restore RTL for text inside the cards */
}

/* Fix badge stretching bug in RTL */
[dir="rtl"] .course-card-top.has-image .course-card-lesson {
  left: auto !important;
  right: var(--space-3) !important;
}

/* ============================================
   VOCABULARY CARDS V2
   ============================================ */
.vocab-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vocab-card-v2 {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.vocab-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.vc2-top {
  height: 160px;
  position: relative;
  padding: 12px;
}

.vc2-badge-level {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(197, 151, 58, 0.25);
  color: #C5973A;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.vc2-badge-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 27, 62, 0.4);
  color: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.vc2-badge-words {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(13, 27, 62, 0.6);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.vc2-body {
  padding: 16px;
  flex: 1;
}

.vc2-title {
  font-size: 16px;
  font-weight: 700;
  color: #0C1B3A;
  margin-bottom: 2px;
}

.vc2-subtitle {
  font-size: 13px;
  color: #8A9BBF;
  margin-bottom: 12px;
}

.vc2-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.vc2-tag {
  background: #F1F5F9;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.vc2-tag.extra {
  background: transparent;
  color: #94A3B8;
  padding-left: 0;
  padding-right: 0;
}

.vc2-mastery-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.vc2-mastery-label {
  font-size: 12px;
  color: #64748B;
}

.vc2-mastery-dots {
  display: flex;
  gap: 4px;
}

.vc2-mastery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E2E8F0;
}
.vc2-mastery-dot.active {
  background: #C5973A;
}

.vc2-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vc2-progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
}

.vc2-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0C1B3A, #C5973A);
  border-radius: 2px;
}

.vc2-progress-text {
  font-size: 12px;
  font-weight: 700;
  color: #C5973A;
  width: 32px;
  text-align: right;
}

.vc2-footer {
  padding: 12px 16px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}

.vc2-footer-count {
  font-size: 12px;
  color: #8A9BBF;
  font-weight: 500;
}

.vc2-btn {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.vc2-btn.start {
  background: #C5973A;
  color: #fff;
}
.vc2-btn.start:hover { background: #b08530; }

.vc2-btn.continue {
  background: #0C1B3A;
  color: #fff;
}
.vc2-btn.continue:hover { background: #081126; }

.vc2-btn.review {
  background: #FFF9ED;
  color: #C5973A;
  border: 1px solid #FDE6B5;
}
.vc2-btn.review:hover { background: #FFF2D6; }

@media (max-width: 900px) {
  .vocab-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .vc2-top { height: 140px; }
}

@media (max-width: 500px) {
  .vocab-grid-v2 { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================
   TRANSLATION TOOLTIP
   ============================================ */
.translatable-word {
  cursor: text;
  border-radius: 4px;
  transition: all 0.2s ease;
  padding: 0 2px;
  margin: 0 -2px;
}
.translatable-word:hover,
.translatable-word.active {
  background-color: rgba(197, 151, 58, 0.2); /* Highlight using primary brand color */
  color: var(--color-primary);
}

#translation-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(12, 27, 58, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 999999;
  opacity: 0;
  transform: translateY(10px) translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  visibility: hidden;
  max-width: 250px;
  text-align: right;
  direction: rtl;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#translation-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(-50%);
}

#translation-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(12, 27, 58, 0.95) transparent transparent transparent;
}

.translation-tooltip-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

[dir="rtl"] .course-card-top.has-image .course-card-badge {
  right: auto !important;
  left: var(--space-3) !important;
}

/* ============================================
   VOCABULARY WORD CARDS V2 (Inside Lesson)
   ============================================ */
.vocab-words-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.vwc2-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.vwc2-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  border-color: #cbd5e1;
}

.vwc2-visual {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.vwc2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vwc2-emoji {
  font-size: 28px;
}

.vwc2-info {
  flex: 1;
  min-width: 0;
}
.vwc2-word {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vwc2-translation {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vwc2-badge-phrases {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.vwc2-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vwc2-btn-audio,
.vwc2-btn-save {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.vwc2-btn-audio:hover {
  background: #f1f5f9;
  color: #3b82f6;
}
.vwc2-btn-save:hover {
  background: #f1f5f9;
  color: #f59e0b;
}
.vwc2-btn-save.active {
  color: #f59e0b;
}

/* ============================================
   VOCABULARY LEARNING MODAL
   ============================================ */
.vlm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.vlm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.vlm-modal {
  background: #fff;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.vlm-overlay.active .vlm-modal {
  transform: translateY(0) scale(1);
}

.vlm-header {
  padding: 24px 24px 16px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.vlm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.vlm-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.vlm-hero-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: #f8fafc;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.vlm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.vlm-word {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.vlm-translation {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 4px;
}
.vlm-pronun {
  font-size: 14px;
  color: #94a3b8;
  font-family: monospace;
  margin-bottom: 16px;
}
.vlm-play-btn {
  background: #ebf5ff;
  color: #3b82f6;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.vlm-play-btn:hover {
  background: #dbecfe;
  transform: scale(1.05);
}

.vlm-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.vlm-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phrases */
.vlm-phrase-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
.vlm-phrase-en {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  padding-right: 40px;
  line-height: 1.4;
}
.vlm-phrase-tr {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vlm-phrase-audio {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.vlm-phrase-audio:hover {
  background: #f1f5f9;
  transform: scale(1.1);
}
.vlm-diff-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 8px;
}
.vlm-diff-Beginner { background: #dcfce7; color: #166534; }
.vlm-diff-Intermediate { background: #fef9c3; color: #854d0e; }
.vlm-diff-Advanced { background: #fee2e2; color: #991b1b; }

/* Contexts */
.vlm-context-card {
  background: #fff;
  border-left: 4px solid #C5973A;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.vlm-context-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.vlm-context-text {
  font-size: 14px;
  color: #475569;
  font-style: italic;
}

@media (max-width: 600px) {
  .vlm-modal {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    margin-top: auto;
    transform: translateY(100%);
  }
  .vlm-overlay {
    align-items: flex-end;
  }
}

.vlm-mastery-btn {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.vlm-mastery-btn:hover {
  background: #e2e8f0;
}
.vlm-mastery-btn.mastered {
  background: #dcfce7;
  color: #166534;
}

/* ============================================
   SPEAKING SECTION — Lesson Detail Experience
   ============================================ */

/* --- Card Grid (missing styles fix) --- */
.vocab-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: var(--space-4);
}

.vocab-card-v2 {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vocab-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.vc2-top {
  height: 170px;
  position: relative;
  overflow: hidden;
}

.vc2-body {
  padding: 16px;
}

.vc2-title {
  font-size: 16px;
  font-weight: 700;
  color: #0C1B3A;
  margin-bottom: 4px;
}

.vc2-subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
}

.vc2-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vc2-progress-bar-wrap {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.vc2-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C5973A, #d4af37);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.vc2-progress-text {
  font-size: 13px;
  font-weight: 700;
  color: #C5973A;
  min-width: 36px;
  text-align: right;
}

.vc2-footer {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vc2-btn {
  padding: 6px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vc2-btn.start { background: #0C1B3A; color: white; }
.vc2-btn.start:hover { background: #1a2d50; }
.vc2-btn.continue { background: #C5973A; color: white; }
.vc2-btn.continue:hover { background: #b8892e; }
.vc2-btn.review { background: #ecfdf5; color: #10b981; }
.vc2-btn.review:hover { background: #d1fae5; }

/* --- Lesson Header --- */
.spk-lesson-header {
  background: linear-gradient(135deg, #0C1B3A 0%, #162d52 100%);
  border-radius: 20px;
  padding: 32px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.spk-lesson-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 150%;
  background: radial-gradient(circle, rgba(197,151,58,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.spk-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.spk-back-btn:hover { color: white; }

.spk-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.spk-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}
.spk-badge.level { background: rgba(255,255,255,0.12); color: #fbbf24; }
.spk-badge.xp { background: rgba(251,191,36,0.15); color: #fbbf24; }
.spk-badge.duration { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }
.spk-badge.situation { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.spk-badge.difficulty { background: rgba(99,102,241,0.15); color: #a5b4fc; }

.spk-lesson-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.spk-lesson-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.spk-progress-overview { position: relative; z-index: 1; }
.spk-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
}
.spk-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C5973A, #fbbf24);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.spk-progress-text {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  text-align: right;
}

/* --- Step Navigation --- */
.spk-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 16px;
  margin-bottom: 8px;
}

.spk-step-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
  background: white;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.spk-step-pill:hover:not(.locked) { border-color: #C5973A; color: #C5973A; }
.spk-step-pill.active { background: #0C1B3A; color: white; border-color: #0C1B3A; }
.spk-step-pill.completed { background: #ecfdf5; color: #10b981; border-color: #a7f3d0; }
.spk-step-pill.locked { opacity: 0.45; cursor: not-allowed; }

/* --- Step Content Card --- */
.spk-step-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 28px;
  margin-bottom: 16px;
}
.spk-step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0C1B3A;
}
.spk-step-description {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* --- Navigation Buttons --- */
.spk-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}
.spk-nav-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spk-nav-btn.prev { background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); }
.spk-nav-btn.prev:hover { background: #f1f5f9; }
.spk-nav-btn.next { background: #0C1B3A; color: white; }
.spk-nav-btn.next:hover { background: #1a2d50; }
.spk-nav-btn.complete { background: linear-gradient(135deg, #C5973A, #d4af37); color: white; }
.spk-nav-btn.complete:hover { background: linear-gradient(135deg, #b8892e, #C5973A); }

/* --- Listen Step --- */
.spk-video-container {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16/9;
  background: #000;
}
.spk-video-container iframe { width: 100%; height: 100%; border: none; }

.spk-speaker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-bg);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.spk-audio-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.spk-audio-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.spk-audio-btn:hover { border-color: #C5973A; background: #fffbeb; }
.spk-audio-btn.active { background: #C5973A; color: white; border-color: #C5973A; }

/* --- Expression Cards --- */
.spk-expressions-grid { display: flex; flex-direction: column; gap: 12px; }
.spk-expression-card {
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s ease;
}
.spk-expression-card:hover { border-color: #C5973A; box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.spk-expression-card.active { border-color: #C5973A; background: #fffdf7; }
.spk-expression-en { font-size: 17px; font-weight: 700; color: #0C1B3A; margin-bottom: 6px; }
.spk-expression-ar { font-size: 16px; color: #64748b; direction: rtl; margin-bottom: 8px; font-family: 'Segoe UI', Tahoma, sans-serif; }
.spk-expression-pron { font-size: 13px; color: #C5973A; font-style: italic; margin-bottom: 10px; }
.spk-expression-footer { display: flex; align-items: center; gap: 8px; }

/* --- Repeat Practice --- */
.spk-repeat-card { text-align: center; padding: 32px 24px; }
.spk-repeat-sentence { font-size: 22px; font-weight: 700; color: #0C1B3A; margin-bottom: 8px; line-height: 1.5; }
.spk-repeat-slow { font-size: 15px; color: #C5973A; margin-bottom: 24px; font-style: italic; }
.spk-repeat-controls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.spk-repeat-counter { font-size: 13px; color: var(--color-text-muted); font-weight: 600; }

/* --- Pronunciation --- */
.spk-pronunciation-grid { display: flex; flex-direction: column; gap: 12px; }
.spk-pronunciation-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 20px;
}
.spk-pronunciation-word { font-size: 20px; font-weight: 800; color: #0C1B3A; margin-bottom: 6px; }
.spk-pronunciation-phonetic { font-size: 16px; color: #C5973A; font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; }
.spk-pronunciation-tip { font-size: 13px; color: #64748b; display: flex; align-items: flex-start; gap: 6px; line-height: 1.5; }

/* --- Dialogue / Chat --- */
.spk-chat-area { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.spk-chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.spk-chat-bubble.teacher { background: #f1f5f9; color: #0C1B3A; align-self: flex-start; border-bottom-left-radius: 4px; }
.spk-chat-bubble.student { background: #0C1B3A; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.spk-chat-speaker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; opacity: 0.6; }

.spk-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.spk-choice-btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.spk-choice-btn:hover:not(.disabled) { border-color: #C5973A; background: #fffbeb; }
.spk-choice-btn.correct { border-color: #10b981; background: #ecfdf5; color: #065f46; }
.spk-choice-btn.wrong { border-color: #ef4444; background: #fef2f2; color: #991b1b; }
.spk-choice-btn.disabled { pointer-events: none; opacity: 0.7; }
.spk-choice-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--color-text-muted);
  flex-shrink: 0;
}
.spk-choice-btn.correct .spk-choice-letter { background: #d1fae5; color: #065f46; }
.spk-choice-btn.wrong .spk-choice-letter { background: #fee2e2; color: #991b1b; }

/* --- Challenge --- */
.spk-challenge-timer { text-align: center; margin-bottom: 20px; }
.spk-timer-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #0C1B3A;
  color: white;
  font-size: 24px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  transition: background 0.3s ease;
}
.spk-timer-circle.warning { background: #ef4444; }
.spk-timer-label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; }

/* --- Mistakes --- */
.spk-mistakes-grid { display: flex; flex-direction: column; gap: 12px; }
.spk-mistake-card { border-radius: 14px; overflow: hidden; border: 1.5px solid var(--color-border); }
.spk-mistake-wrong {
  padding: 14px 20px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.spk-mistake-correct {
  padding: 14px 20px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.spk-mistake-explanation {
  padding: 12px 20px;
  background: white;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Fluency / Speed Control --- */
.spk-speed-controls {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  margin: 20px auto;
  width: fit-content;
}
.spk-speed-btn {
  padding: 10px 24px;
  border: none;
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid var(--color-border);
}
.spk-speed-btn:last-child { border-right: none; }
.spk-speed-btn:hover:not(.active) { background: #f8fafc; }
.spk-speed-btn.active { background: #0C1B3A; color: white; }
.spk-fluency-sentence { text-align: center; font-size: 20px; font-weight: 700; color: #0C1B3A; padding: 24px; line-height: 1.6; }

/* --- Simulation / Scenario --- */
.spk-scenario-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 16px;
  padding: 24px;
}
.spk-scenario-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.spk-scenario-icon { font-size: 36px; }
.spk-scenario-title { font-size: 18px; font-weight: 700; color: #0C1B3A; }
.spk-scenario-situation { font-size: 14px; color: #334155; margin-bottom: 16px; line-height: 1.6; font-style: italic; }
.spk-scenario-question { font-size: 15px; font-weight: 600; color: #0C1B3A; margin-bottom: 16px; }

.spk-reveal-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: white;
  border: 1.5px solid #bae6fd;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spk-reveal-btn:hover { background: #f0f9ff; border-color: #7dd3fc; }

.spk-reveal-content {
  margin-top: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  line-height: 1.6;
}
.spk-reveal-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #10b981; margin-bottom: 6px; }

/* --- Quiz --- */
.spk-quiz-question { margin-bottom: 20px; padding: 20px; background: var(--color-bg); border-radius: 14px; }
.spk-quiz-q-num { font-size: 11px; font-weight: 700; color: #C5973A; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.spk-quiz-q-text { font-size: 16px; font-weight: 700; color: #0C1B3A; margin-bottom: 12px; }
.spk-quiz-fill-blank { font-size: 17px; font-weight: 600; color: #0C1B3A; margin-bottom: 16px; line-height: 1.6; }
.spk-quiz-blank {
  display: inline-block;
  min-width: 70px;
  border-bottom: 2px dashed #C5973A;
  text-align: center;
  padding: 2px 8px;
  color: #C5973A;
  font-weight: 700;
}
.spk-quiz-score {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: 14px;
  border: 1.5px solid #fde68a;
  margin-top: 16px;
}
.spk-quiz-score-value { font-size: 32px; font-weight: 800; color: #C5973A; }
.spk-quiz-score-label { font-size: 13px; color: #92400e; font-weight: 600; }

/* --- Mission --- */
.spk-mission-card {
  background: linear-gradient(135deg, #0C1B3A 0%, #1e3a5f 100%);
  border-radius: 16px;
  padding: 32px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.spk-mission-card::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(197,151,58,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.spk-mission-icon { font-size: 48px; margin-bottom: 16px; position: relative; z-index: 1; }
.spk-mission-prompt { font-size: 18px; font-weight: 600; line-height: 1.7; margin-bottom: 24px; position: relative; z-index: 1; }
.spk-mission-example {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* --- Completion --- */
.spk-completion { text-align: center; padding: 40px 24px; }
.spk-completion-icon { font-size: 64px; margin-bottom: 16px; }
.spk-completion-title { font-size: 26px; font-weight: 800; color: #0C1B3A; margin-bottom: 8px; }
.spk-completion-subtitle { font-size: 15px; color: var(--color-text-muted); margin-bottom: 24px; }
.spk-completion-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.spk-stat-card { background: var(--color-bg); border-radius: 12px; padding: 16px; text-align: center; }
.spk-stat-value { font-size: 24px; font-weight: 800; color: #C5973A; }
.spk-stat-label { font-size: 12px; color: var(--color-text-muted); font-weight: 600; margin-top: 4px; }

/* --- Admin Speaking Editor --- */
.spk-editor-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.spk-editor-tabs::-webkit-scrollbar { display: none; }
.spk-editor-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--color-text-muted);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  transition: all 0.2s ease;
}
.spk-editor-tab:hover { color: #0C1B3A; }
.spk-editor-tab.active { color: #C5973A; border-bottom-color: #C5973A; }
.spk-editor-panel { display: none; }
.spk-editor-panel.active { display: block; }

.spk-admin-list { display: flex; flex-direction: column; gap: 10px; }
.spk-admin-list-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.spk-admin-remove-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fef2f2;
  color: #ef4444;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.spk-admin-remove-btn:hover { background: #fee2e2; }
.spk-admin-add-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px dashed var(--color-border);
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: all 0.2s ease;
}
.spk-admin-add-btn:hover { border-color: #C5973A; color: #C5973A; background: #fffbeb; }

.spk-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--color-bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* --- Speaking Responsive --- */
@media (max-width: 768px) {
  .spk-lesson-header { padding: 20px; border-radius: 14px; }
  .spk-lesson-title { font-size: 20px; }
  .spk-step-card { padding: 20px; }
  .spk-repeat-sentence { font-size: 18px; }
  .spk-fluency-sentence { font-size: 17px; padding: 16px; }
  .spk-mission-card { padding: 24px; }
  .spk-chat-bubble { max-width: 90%; }
  .vocab-grid-v2 { grid-template-columns: 1fr; }
  .spk-completion-stats { grid-template-columns: repeat(2, 1fr); }
  .spk-badges { gap: 6px; }
  .spk-badge { font-size: 11px; padding: 4px 10px; }
  .spk-nav-btn { padding: 8px 16px; font-size: 13px; }
  .spk-speed-btn { padding: 8px 16px; font-size: 13px; }
  .spk-expression-en { font-size: 15px; }
  .spk-pronunciation-word { font-size: 18px; }
}



/* Removed Dark Mode for Vocab & Speaking Cards, requested to keep them white */
/* --- Dark Mode for Fullscreen Wrappers --- */
[data-theme="dark"] .ebook-fullscreen-wrapper,
[data-theme="dark"] .ebook-fullscreen-wrapper:fullscreen,
[data-theme="dark"] .ebook-fullscreen-wrapper.ebook-fs-active {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}

[data-theme="dark"] .spotify-player-container,
[data-theme="dark"] .spotify-player-container:fullscreen,
[data-theme="dark"] .spotify-player-container:-webkit-full-screen,
[data-theme="dark"] .spotify-player-container.sp-fs-active {
  background: #1A1D2F !important;
  color: #ffffff !important;
}

[data-theme="dark"] .spotify-player-container .sp-title {
  color: #ffffff !important;
}

[data-theme="dark"] .spotify-player-container .sp-subtitle,
[data-theme="dark"] .spotify-player-container .sp-time-labels,
[data-theme="dark"] .spotify-player-container #spPercentCompleted {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .spotify-player-container .sp-ctrl-btn {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .spotify-player-container .sp-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}
[data-theme="dark"] .ebook-header,
[data-theme="dark"] .ebook-footer,
[data-theme="dark"] .ebook-body {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] .ebook-audio-bar {
  background: var(--color-surface) !important;
  border-color: rgba(255,255,255,0.05) !important;
}
