@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800;900&display=swap');

:root {
  --theme-bg: #120c1f;
  --theme-bg-deep: #0b0714;
  --theme-text: #fca5a5;
  --theme-text-white: #f8fafc;
  --theme-text-muted: #cbd5e1;
  --theme-card-bg: #1d1530;
  --theme-card-hover: #251b3d;
  --theme-card-border: rgba(244, 63, 94, 0.22);
  --theme-header-bg: rgba(18, 12, 31, 0.86);
  --theme-header-text: #fca5a5;
  --theme-header-border: rgba(244, 63, 94, 0.22);
  --theme-font: 'Be Vietnam Pro', 'Montserrat', system-ui, -apple-system, sans-serif;
  --theme-heading-font: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  --theme-primary: #f43f5e;
  --theme-primary-dark: #e11d48;
  --theme-orange: #fb923c;
  --theme-indigo: #6366f1;
  --theme-btn-bg: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  --theme-btn-indigo: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --theme-btn-text: #ffffff;
  --theme-btn-radius: 16px;
  --theme-card-radius: 20px;
  --player-bg: #0f172a;
  --player-sidebar: #1e293b;
  --player-main: #0b1120;
}

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

html {
  scroll-behavior: smooth;
  background: var(--theme-bg);
  color: var(--theme-text-white);
  font-family: var(--theme-font);
}

body {
  min-height: 100vh;
  background: var(--theme-bg);
  color: var(--theme-text-white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

/* ================= HEADER ================= */
.lms-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--theme-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--theme-header-border);
}

.lms-header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lms-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--theme-heading-font);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--theme-header-text);
  cursor: pointer;
}

.lms-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.8);
}

.lms-desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lms-nav-link {
  color: #f8d4d4;
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 2px;
}

.lms-nav-link:hover, .lms-nav-link.active {
  color: #ffffff;
}

.lms-nav-link.active {
  border-bottom: 2px solid var(--theme-primary);
}

.lms-user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lms-user-greet {
  font-size: 0.9rem;
  color: #fde2e2;
  font-weight: 600;
}

.lms-btn-outline {
  border: 1px solid rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.08);
  color: #fda4af;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lms-btn-outline:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fff;
}

.lms-btn-primary {
  background: var(--theme-btn-bg);
  color: var(--theme-btn-text);
  border: none;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lms-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(244, 63, 94, 0.7);
}

.lms-btn-indigo {
  background: var(--theme-btn-indigo);
  color: #ffffff;
  border: none;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px -6px rgba(99, 102, 241, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.lms-btn-indigo:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -6px rgba(99, 102, 241, 0.8);
}

.lms-mobile-menu-btn {
  display: none;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.lms-mobile-drawer {
  display: none;
  background: #181029;
  border-bottom: 1px solid var(--theme-header-border);
  padding: 14px 20px 20px;
  flex-direction: column;
  gap: 10px;
}

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

/* ================= HERO & STOREFRONT ================= */
.storefront-wrap {
  position: relative;
  overflow: hidden;
  padding-bottom: 70px;
}

.ambient-blob-1 {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 440px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18) 0%, rgba(18, 12, 31, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-blob-2 {
  position: absolute;
  top: 260px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.10) 0%, rgba(18, 12, 31, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-section {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 58px 20px 34px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--theme-heading-font);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.3vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(to right, #fca5a5, #f43f5e, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1.04rem;
  color: var(--theme-text-muted);
  line-height: 1.65;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.trust-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #e2e8f0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.cat-pill {
  background: #1d1530;
  border: 1px solid rgba(244, 63, 94, 0.24);
  color: #e2e8f0;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cat-pill:hover {
  border-color: rgba(244, 63, 94, 0.65);
  background: #271b40;
}

.cat-pill.active {
  background: var(--theme-btn-bg);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 22px -4px rgba(244, 63, 94, 0.65);
}

/* Search & Filter Bar */
.filter-bar {
  max-width: 820px;
  margin: 0 auto 40px;
  background: rgba(29, 21, 48, 0.92);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  background: rgba(18, 12, 31, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 11px 14px 11px 42px;
  border-radius: 13px;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--theme-primary);
}

.level-select {
  background: rgba(18, 12, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  padding: 11px 16px;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.view-toggles {
  display: flex;
  gap: 6px;
}

.view-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(18, 12, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn.active {
  background: var(--theme-btn-bg);
  color: #fff;
  border-color: transparent;
}

/* ================= COURSE GRID ================= */
.catalog-container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.catalog-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 335px), 1fr));
  gap: 28px;
}

.course-grid.list-view {
  grid-template-columns: 1fr;
  gap: 18px;
}

.premium-course-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.premium-course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 22px 44px -16px rgba(244, 63, 94, 0.28);
}

.course-grid.list-view .premium-course-card {
  flex-direction: row;
  align-items: stretch;
}

.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f091b;
  flex-shrink: 0;
}

.course-grid.list-view .card-thumb-wrap {
  width: 340px;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.card-level-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-unlocked-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.79rem;
  color: #fda4af;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-title {
  font-family: var(--theme-heading-font);
  font-size: 1.07rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.38;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--theme-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-free {
  font-family: var(--theme-heading-font);
  font-size: 1.15rem;
  font-weight: 900;
  color: #34d399;
}

.price-current {
  font-family: var(--theme-heading-font);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fb7185;
}

.price-old {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.card-cta {
  background: var(--theme-btn-bg);
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

/* ================= COURSE DETAIL ================= */
.detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 120px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--theme-text-muted);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 24px;
}

.back-btn:hover {
  color: #fff;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-h1 {
  font-family: var(--theme-heading-font);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: #fca5a5;
  line-height: 1.22;
  margin-bottom: 16px;
}

.detail-desc {
  font-size: 1rem;
  color: var(--theme-text-muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.detail-instructor {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(29, 21, 48, 0.85);
  border: 1px solid rgba(244, 63, 94, 0.22);
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.detail-instructor img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid #f43f5e;
}

.detail-cover-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.32);
  box-shadow: 0 24px 60px -18px rgba(244, 63, 94, 0.35);
  aspect-ratio: 16 / 9;
  background: #0f091b;
}

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

.detail-section {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 28px;
}

.detail-section h2 {
  font-family: var(--theme-heading-font);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 18px;
}

.rich-content {
  color: #e2e8f0;
  font-size: 0.96rem;
  line-height: 1.75;
}

.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 {
  color: #fda4af;
  margin: 18px 0 10px;
}

.rich-content ul, .rich-content ol {
  padding-left: 22px;
  margin: 10px 0;
}

.rich-content li {
  margin-bottom: 6px;
}

.rich-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

/* Accordion Syllabus */
.syllabus-chapter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(15, 10, 28, 0.65);
}

.syllabus-ch-header {
  width: 100%;
  background: rgba(244, 63, 94, 0.08);
  border: none;
  color: #ffffff;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.syllabus-lessons {
  padding: 8px 14px 12px;
}

.syllabus-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #e2e8f0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.syllabus-lesson-row:last-child {
  border-bottom: none;
}

.syllabus-lesson-row:hover {
  background: rgba(244, 63, 94, 0.1);
}

.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(244, 63, 94, 0.25);
  padding: 14px 20px;
}

.sticky-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ================= LEARNING PLAYER ================= */
.lms-player-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: calc(100vh - 65px);
  background: var(--player-bg);
}

.lms-player-sidebar {
  background: var(--player-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  height: calc(100vh - 65px);
  position: sticky;
  top: 65px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-top {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-course-title {
  font-family: var(--theme-heading-font);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 6px;
  line-height: 1.35;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #fb923c);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.sidebar-ch-title {
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fda4af;
  background: rgba(15, 23, 42, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-lesson-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s;
}

.sidebar-lesson-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-lesson-item.active {
  background: rgba(99, 102, 241, 0.22);
  border-left: 3px solid #818cf8;
  color: #ffffff;
  font-weight: 700;
}

.lms-player-main {
  background: var(--player-main);
  padding: 0 0 80px;
  min-width: 0;
}

.video-stage {
  background: #000000;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-stage video {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  background: #000;
}

.video-brand-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  background: rgba(18, 12, 31, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fca5a5;
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--theme-heading-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.video-instructor-pip {
  position: absolute;
  right: 16px;
  bottom: 58px;
  z-index: 14;
  width: 152px;
  background: rgba(18, 12, 31, 0.92);
  border: 2px solid rgba(244, 63, 94, 0.75);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-instructor-pip.hidden-pip {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.video-instructor-pip img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.video-instructor-pip-cap {
  padding: 6px 8px;
  text-align: center;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.24), rgba(18, 12, 31, 0.96));
  border-top: 1px solid rgba(244, 63, 94, 0.35);
}

.video-instructor-pip-cap strong {
  display: block;
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.2;
}

.video-instructor-pip-cap span {
  display: block;
  font-size: 0.66rem;
  color: #fda4af;
  font-weight: 600;
}

@media (max-width: 768px) {
  .video-instructor-pip {
    width: 106px;
    right: 10px;
    bottom: 48px;
    border-radius: 12px;
  }
  .video-instructor-pip img {
    height: 98px;
  }
  .video-instructor-pip-cap strong {
    font-size: 0.65rem;
  }
  .video-instructor-pip-cap span {
    font-size: 0.58rem;
  }
}

.locked-stage {
  padding: 48px 24px;
  text-align: center;
  max-width: 560px;
}

.player-content-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 22px 24px;
}

.player-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 22px;
}

.player-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.player-nav-btn.primary {
  background: var(--theme-btn-indigo);
}

.player-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.lesson-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.attach-btn {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.6);
}

.lms-lesson-box {
  background: #161f33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  color: #e2e8f0;
  line-height: 1.75;
}

.lms-mobile-tab-nav {
  display: none;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lms-mobile-tab-nav button {
  flex: 1;
  background: none;
  border: none;
  color: #cbd5e1;
  padding: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.lms-mobile-tab-nav button.active {
  color: #ffffff;
  border-bottom: 3px solid var(--theme-primary);
}

/* ================= AUTH / DASHBOARD / AFFILIATE ================= */
.auth-container {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 34px 30px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65);
}

.auth-card h2 {
  font-family: var(--theme-heading-font);
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 22px;
  color: #0f172a;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #6366f1;
  background: #ffffff;
}

.panel-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.panel-card {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-card-border);
  border-radius: 20px;
  padding: 28px;
}

/* ================= MODAL ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 4, 14, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

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

.modal-dialog {
  width: 100%;
  max-width: 490px;
  background: #1d1530;
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 22px;
  padding: 26px;
  color: #f8fafc;
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.85);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.dark-input {
  width: 100%;
  background: rgba(12, 8, 22, 0.85);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
}

.dark-input:focus {
  border-color: var(--theme-primary);
}

/* ================= FOOTER ================= */
.lms-footer {
  background: #0d0817;
  border-top: 1px solid rgba(244, 63, 94, 0.2);
  padding: 46px 20px 28px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-family: var(--theme-heading-font);
  color: #fca5a5;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  display: block;
}

.footer-col a:hover {
  color: #fda4af;
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.07);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #cbd5e1;
  font-size: 0.82rem;
  text-align: center;
}

.footer-copy {
  text-align: center;
  color: #64748b;
  font-size: 0.84rem;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================= FLOATING ZALO & HOTLINE ================= */
.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.has-sticky-bar .floating-contact {
  bottom: 84px;
}

body.in-player .floating-contact {
  bottom: 14px;
  right: 14px;
  flex-direction: row;
  gap: 8px;
}

body.in-player .float-btn {
  padding: 8px 13px;
  font-size: 0.78rem;
}

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.04);
}

.float-zalo {
  background: linear-gradient(135deg, #0068ff, #0052cc);
}

.float-phone {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}

/* Toast */
.toast-msg {
  position: fixed;
  top: 78px;
  right: 20px;
  z-index: 300;
  background: #10b981;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  display: none;
}

.toast-msg.show {
  display: block;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .course-grid.list-view .premium-course-card {
    flex-direction: column;
  }
  .course-grid.list-view .card-thumb-wrap {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .lms-desktop-nav {
    display: none;
  }
  .lms-mobile-menu-btn {
    display: inline-flex;
  }
  .lms-player-wrapper {
    grid-template-columns: 1fr;
  }
  .lms-mobile-tab-nav {
    display: flex;
  }
  .lms-player-sidebar {
    position: static;
    height: auto;
    max-height: none;
    display: none;
  }
  .lms-player-sidebar.mobile-show {
    display: flex;
  }
  .lms-player-main.mobile-hide {
    display: none;
  }
  .floating-contact {
    bottom: 88px;
    right: 12px;
  }
  .float-btn {
    padding: 9px 13px;
    font-size: 0.8rem;
  }
}
