/* ==========================================================================
   Easy Course LMS - Interactive Showcase Prototype Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* STREAMING_CHUNK:Defining root CSS theme variables and exact topbar height... */
  /* Dynamic Theme Variables (overridden dynamically via JS per Niche) */
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --secondary: #f59e0b;
  --accent: #0284c7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --hero-bg-dark: #0b132b;
  --hero-gradient: linear-gradient(135deg, #090e20 0%, #162044 55%, #1d4ed8 100%);
  --accent-glow: rgba(29, 78, 216, 0.22);

  /* Exact Topbar Height (Dynamically updated via JS ResizeObserver so it NEVER overlaps) */
  --topbar-height: 86px;
  --header-height: 62px;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.16);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1220px;
}

/* 4K & Smart TV Scaling */
@media (min-width: 1800px) {
  :root {
    --container-max: 1480px;
    --header-height: 74px;
  }
  html {
    font-size: 18px;
  }
}

@media (min-width: 2400px) {
  :root {
    --container-max: 1760px;
  }
  html {
    font-size: 21px;
  }
}

/* STREAMING_CHUNK:Resetting base styles and preventing horizontal overflow... */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: 1.65;
  padding-top: var(--topbar-height);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.topbar-minimized {
  padding-top: 0 !important;
}

body[dir="ltr"] {
  font-family: var(--font-en);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 32px);
}

/* Generous Line Height for Large Headings */
h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .landing-headline, .modal-title, .dash-card-title {
  line-height: 1.55 !important;
}

p, .hero-subtitle, .section-desc, .about-bio {
  line-height: 1.85;
}

/* ==========================================================================
   1. ORGANIZED 2-ROW SHOWCASE TOPBAR (Zero Scrollbars, Full Space Usage)
   ========================================================================== */
/* STREAMING_CHUNK:Styling 2-row showcase topbar without scrollbars... */
.showcase-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 18px;
  gap: 7px;
  color: #f8fafc;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.topbar-minimized .showcase-topbar {
  transform: translateY(-100%);
}

/* Row 1: Brand + Niche Select on one side, Tools on the other */
.showcase-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  gap: 8px;
}

.showcase-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.showcase-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  white-space: nowrap;
}

.showcase-logo-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.niche-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.niche-select:hover, .niche-select:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--primary);
}

.niche-select option {
  background-color: #0f172a;
  color: #ffffff;
}

.showcase-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.7rem;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.showcase-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 6px #fbbf24;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.showcase-right-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.tool-btn-icon-only {
  padding: 4px 9px;
}

/* Row 2: 4 View Switcher Pills (No Scrollbar) */
.showcase-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  overflow: visible;
}

.view-switcher-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.09);
  gap: 4px;
}

.view-pill {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  text-align: center;
}

.view-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.view-pill.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Floating Restore Pill when Topbar is Minimized */
.topbar-restore-btn {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 999998;
  background: rgba(11, 15, 25, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

body.topbar-minimized .topbar-restore-btn {
  display: inline-flex;
}

/* ==========================================================================
   2. ACTUAL ACADEMY HEADER (Never Overlapped by Topbar)
   ========================================================================== */
/* STREAMING_CHUNK:Styling sticky site header below showcase bar... */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--topbar-height);
  z-index: 1000;
  transition: top 0.2s ease, background-color 0.3s ease;
}

body[data-theme-mode="dark"] .site-header {
  background: rgba(17, 24, 39, 0.92);
}

body.topbar-minimized .site-header {
  top: 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 14px;
}

.site-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-instructor-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.site-brand {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.site-instructor-tag {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 3px 10px var(--accent-glow);
  transition: var(--transition);
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.mobile-nav-drawer {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 16px;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   3. VIEW CONTAINERS
   ========================================================================== */
.app-view {
  display: none;
  animation: fadeView 0.28s ease;
}

.app-view.active {
  display: block;
}

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

/* ==========================================================================
   4. VIEW A: HERO SECTION WITH LIVE INTERACTIVE VIDEO BACKGROUND
   ========================================================================== */
/* STREAMING_CHUNK:Styling interactive Hero background video and YouTube layers... */
.hero-section {
  position: relative;
  min-height: 490px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--hero-gradient);
  transition: background 0.4s ease;
}

.hero-bg-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.hero-yt-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 2;
  border: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-yt-bg-iframe.yt-loaded {
  opacity: 0.5;
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 3;
  transform: scale(1.03);
  transition: opacity 0.5s ease, transform 6s ease;
}

/* Hero Modes */
.hero-section[data-hero-mode="video"] .hero-video-bg {
  opacity: 0.55;
}

.hero-section[data-hero-mode="image"] .hero-yt-bg-iframe,
.hero-section[data-hero-mode="image"] .hero-video-bg {
  opacity: 0 !important;
}

.hero-section[data-hero-mode="image"] .hero-image-bg {
  opacity: 0.48;
  transform: scale(1);
}

.hero-section[data-hero-mode="minimal"] .hero-yt-bg-iframe,
.hero-section[data-hero-mode="minimal"] .hero-video-bg,
.hero-section[data-hero-mode="minimal"] .hero-image-bg {
  opacity: 0 !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(10, 15, 30, 0.42) 0%, rgba(9, 13, 24, 0.82) 100%);
  z-index: 4;
}

.hero-section[data-hero-mode="minimal"] .hero-overlay {
  background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, rgba(9, 13, 24, 0.35) 100%);
}

.hero-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-top-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bg-switcher-inline {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.hero-mode-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.hero-mode-chip.active {
  background: var(--primary);
  color: #ffffff;
}

.hero-title {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  max-width: 620px;
}

/* STREAMING_CHUNK:Styling Hero CTA buttons, statistics, and teaser card... */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  width: 100%;
}

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

.stat-num {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
}

.hero-visual-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-interactive-card {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: var(--transition);
}

.hero-interactive-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.hero-preview-screen {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
}

.hero-preview-screen img,
.hero-preview-screen video,
.hero-preview-screen iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.hero-play-trigger-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.18) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-play-trigger-overlay:hover .play-pulse-circle {
  transform: scale(1.08);
  background: var(--primary);
  color: #ffffff;
}

.play-pulse-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hero-preview-caption {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.hero-card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-card-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card-instructor img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fbbf24;
}

.hero-card-instructor-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-card-instructor-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-live-pill {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ==========================================================================
   5. COURSE CATALOG & SECTIONS
   ========================================================================== */
/* STREAMING_CHUNK:Styling course catalog cards and filter tabs... */
.catalog-section {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--bg);
}

.section-header-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px auto;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--accent-glow);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

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

.catalog-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.catalog-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

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

.catalog-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  max-width: 440px;
  width: 100%;
  margin-inline: auto;
}

.course-card.featured-vip-card {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.12);
}

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

.course-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}

.course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-thumb {
  transform: scale(1.04);
}

.course-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

body[dir="ltr"] .course-badge-overlay {
  right: auto;
  left: 10px;
}

.course-badge-overlay.badge-free {
  background: #10b981;
  color: #ffffff;
}

.course-badge-overlay.badge-paid {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.course-thumb-play-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body[dir="ltr"] .course-thumb-play-hint {
  left: auto;
  right: 10px;
}

.course-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.course-card-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.course-card-excerpt {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-card-footer {
  padding: 0 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.course-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.course-price {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--text);
}

.course-price-free {
  color: #10b981;
  font-size: 0.95rem;
}

.course-old-price {
  font-size: 0.78rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.course-btn-action {
  background: var(--primary);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.course-btn-action:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* STREAMING_CHUNK:Styling About, Services, Testimonials, FAQ, and Footer... */
.about-section {
  padding: clamp(50px, 6vw, 76px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.about-avatar-wrap {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
  width: 100%;
}

.about-avatar-frame {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--surface);
}

.about-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-experience-pill {
  position: absolute;
  bottom: -14px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

body[dir="ltr"] .about-experience-pill {
  right: auto;
  left: 16px;
}

.about-instructor-name {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.about-instructor-title {
  font-size: 0.94rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.about-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.86rem;
}

.credential-check {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
}

.services-section {
  padding: clamp(50px, 6vw, 76px) 0;
  background: var(--bg);
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.service-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.service-card-price {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

.service-book-btn {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.84rem;
  text-align: center;
  margin-top: auto;
  transition: var(--transition);
}

.service-book-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.reviews-section {
  padding: clamp(50px, 6vw, 76px) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.review-quote {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 16px;
  flex: 1;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.review-author-name {
  font-weight: 800;
  color: var(--text);
  font-size: 0.86rem;
}

.review-author-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.faq-section {
  padding: clamp(50px, 6vw, 76px) 0;
  background: var(--bg);
}

.faq-accordion {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  text-align: inherit;
  gap: 12px;
}

.faq-icon {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

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

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.site-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   VIEW B: SMART COURSE PLAYER
   ========================================================================== */
/* STREAMING_CHUNK:Styling Smart Course Player and sidebar curriculum... */
.player-view-wrapper {
  background: #090d16;
  min-height: calc(100vh - var(--topbar-height));
  color: #f8fafc;
}

.player-top-header {
  background: #111827;
  border-bottom: 1px solid #1f2937;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.player-breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.player-back-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
}

.player-back-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.player-course-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
}

.player-mode-toggle-group {
  display: flex;
  background: #1f2937;
  padding: 3px;
  border-radius: var(--radius-full);
  gap: 3px;
}

.player-mode-btn {
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #9ca3af;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.player-mode-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.player-main-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  min-height: calc(100vh - var(--topbar-height) - 52px);
  max-width: 1680px;
  margin-inline: auto;
}

.player-main-layout.single-mode {
  grid-template-columns: 1fr;
  max-width: 1060px;
}

.player-main-layout.single-mode .player-sidebar {
  display: none;
}

.player-stage {
  padding: clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-container video,
.video-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.yt-security-shield {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(9, 13, 22, 0.75) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: auto;
}

.yt-shield-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(15, 23, 42, 0.75);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lesson-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 18px;
}

.current-lesson-title {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 800;
  color: #ffffff;
}

.lesson-meta-badge {
  font-size: 0.78rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.lesson-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-nav-btn {
  background: #1f2937;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}

.lesson-nav-btn:hover {
  background: #374151;
}

.mark-complete-btn {
  background: #10b981;
  color: #ffffff;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}

.player-content-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 16px;
  overflow-x: auto;
}

.player-tab-link {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.player-tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.player-tab-pane {
  display: none;
  color: #d1d5db;
  font-size: 0.9rem;
}

.player-tab-pane.active {
  display: block;
}

.lesson-exercise-callout {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-inline-start: 3px solid var(--secondary);
  padding: 14px 18px;
  border-radius: var(--radius-xs);
}

.lesson-exercise-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 4px;
}

.player-sidebar {
  background: #111827;
  border-inline-start: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #1f2937;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: #1f2937;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.module-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.76rem;
  font-weight: 800;
  color: #9ca3af;
  border-bottom: 1px solid #1f2937;
}

.lesson-playlist-item {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.lesson-playlist-item:hover {
  background: #1f2937;
}

.lesson-playlist-item.active {
  background: rgba(29, 78, 216, 0.16);
  border-inline-start: 3px solid var(--primary);
}

.lesson-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1f2937;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.lesson-playlist-item.active .lesson-item-icon {
  background: var(--primary);
  color: #ffffff;
}

.lesson-playlist-item.completed .lesson-item-icon {
  background: #10b981;
  color: #ffffff;
}

.lesson-item-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
}

.lesson-item-duration {
  font-size: 0.7rem;
  color: #9ca3af;
  white-space: nowrap;
}

.attachment-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-pill-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.discussion-box {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--radius-sm);
  padding: 16px;
}

.discussion-input {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

/* ==========================================================================
   VIEW C: AUTOMATED PAID COURSE LANDING PAGE
   ========================================================================== */
/* STREAMING_CHUNK:Styling Landing Page and Isolated Teacher Dashboard... */
.landing-view-wrapper {
  background: var(--bg);
  padding-bottom: 70px;
}

.urgency-ribbon {
  background: linear-gradient(90deg, #dc2626 0%, #ea580c 100%);
  color: #ffffff;
  text-align: center;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-hero {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--hero-gradient);
  color: #ffffff;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.landing-tagline {
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: inline-block;
  background: rgba(245, 158, 11, 0.16);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.landing-headline {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.landing-subheadline {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.checkout-card {
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

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

.checkout-curr-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}

.checkout-orig-price {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-inline-start: 8px;
}

.save-pill {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.checkout-cta-btn {
  width: 100%;
  background: #10b981;
  color: #ffffff;
  padding: 13px 20px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: var(--transition);
  margin-bottom: 12px;
  display: block;
}

.checkout-cta-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.guarantee-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 14px;
}

.landing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.landing-feature-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.landing-detail-section {
  padding: 50px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}

.benefit-text {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   VIEW D: ISOLATED TEACHER DASHBOARD (READ-ONLY)
   ========================================================================== */
.dashboard-view-wrapper {
  background: #f1f5f9;
  min-height: calc(100vh - var(--topbar-height));
  color: #0f172a;
}

.dashboard-banner-alert {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  padding: 9px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1540px;
  margin-inline: auto;
  min-height: calc(100vh - var(--topbar-height) - 38px);
}

.dashboard-sidebar {
  background: #ffffff;
  border-inline-end: 1px solid #e2e8f0;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  text-align: inherit;
  width: 100%;
}

.dash-nav-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.dash-nav-item.active {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.dashboard-main {
  padding: clamp(18px, 3vw, 28px);
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.dash-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.dash-stat-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.dash-stat-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.dash-panel {
  display: none;
}

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

.dash-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.dash-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xs);
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.86rem;
}

.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.color-swatch-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 42px;
  height: 22px;
  background: #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch.checked {
  background: #10b981;
}

.toggle-knob {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: var(--transition);
}

body[dir="ltr"] .toggle-knob {
  right: auto;
  left: 2px;
}

.toggle-switch.checked .toggle-knob {
  transform: translateX(-20px);
}

body[dir="ltr"] .toggle-switch.checked .toggle-knob {
  transform: translateX(20px);
}

.repeater-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.84rem;
}

.dash-btn-primary {
  background: #1d4ed8;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
}

/* ==========================================================================
   10. MODALS & TOASTS
   ========================================================================== */
/* STREAMING_CHUNK:Styling student checkout modal and responsive breakpoints... */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 24, 0.76);
  backdrop-filter: blur(8px);
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 430px;
  width: 100%;
  padding: 26px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  color: #0f172a;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  font-size: 1.3rem;
  color: #94a3b8;
}

.modal-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.modal-tab-btn {
  flex: 1;
  padding: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  border-radius: var(--radius-full);
  text-align: center;
}

.modal-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-xs);
}

.google-auth-btn {
  width: 100%;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xs);
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-divider {
  display: flex;
  align-items: center;
  color: #94a3b8;
  font-size: 0.74rem;
  margin-bottom: 14px;
  gap: 10px;
}

.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.modal-submit-btn {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  padding: 11px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  margin-top: 6px;
}

.otp-note {
  margin-top: 12px;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
}

.toast-container {
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  z-index: 1000001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 380px;
  animation: slideUpToast 0.25s ease;
}

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

/* ==========================================================================
   11. MULTI-DEVICE RESPONSIVE MATRIX (Zero Topbar Overlap & Zero Scroll)
   ========================================================================== */
@media (max-width: 1080px) {
  .showcase-badge {
    display: none;
  }
  .hero-grid,
  .landing-hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual-stage {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }
  .player-main-layout {
    grid-template-columns: 1fr;
  }
  .player-sidebar {
    border-inline-start: none;
    border-top: 1px solid #1f2937;
  }
  .dashboard-container {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    border-inline-end: none;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px 14px;
  }
  .dash-nav-item {
    width: auto;
    white-space: nowrap;
    padding: 7px 12px;
  }
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .showcase-topbar {
    padding: 6px 10px;
    gap: 6px;
  }
  .showcase-brand-group {
    gap: 6px;
  }
  .niche-select {
    font-size: 0.76rem;
    padding: 3px 8px;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .showcase-logo span {
    font-size: 0.82rem;
  }
  .showcase-logo-icon {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  #heroToggleLabel {
    display: none;
  }
  .tool-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .view-switcher-pills {
    padding: 2px;
    gap: 2px;
  }
  .view-pill {
    padding: 5px 3px;
    font-size: 0.68rem;
    gap: 3px;
  }
  .pill-icon {
    font-size: 0.74rem;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-btn-primary, .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .dash-stats-grid,
  .color-picker-grid {
    grid-template-columns: 1fr;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
}