/* ==========================================================================
   SPYYFX COURSES SPLIT DASHBOARD STYLE
   ========================================================================== */

/* Page layout tweaks */
.courses-page {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.hero-bg-wrapper {
  background-image: url('course bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── HERO SECTION ── */
.courses-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 24px 30px;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.courses-hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-content-block {
  max-width: 700px;
}

.courses-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.courses-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── HERO NAV CAPSULE (User Screenshot Style) ── */
.hero-nav-capsule {
  display: inline-flex;
  align-items: center;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 6px;
  border-radius: 100px;
  box-shadow: var(--nav-shadow);
  width: fit-content;
}

.hero-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-nav-link:hover {
  background: var(--nav-link-hover);
  color: var(--text-light);
}

.hero-nav-link--active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .hero-nav-link--active {
  background: rgba(0, 0, 0, 0.08);
}

.hero-nav-link .nav-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.hero-nav-link .arrow-icon {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* ── DASHBOARD SECTION ── */
.dashboard-section {
  padding: 50px 24px 80px;
}

.dashboard-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  background: rgba(7, 10, 15, 0.75); /* Premium glass dark base */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

/* ── RIGHT SIDEBAR: SYLLABUS ── */
.syllabus-sidebar {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25); /* Transparent shading contrast */
  display: flex;
  flex-direction: column;
  max-height: 720px;
}

@media (max-width: 992px) {
  .syllabus-sidebar {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 420px;
  }
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
}

.modules-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--logo-spyy-color);
  background: rgba(63, 169, 245, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.modules-list {
  overflow-y: auto;
  flex-grow: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Custom Scrollbar for Sidebar */
.modules-list::-webkit-scrollbar {
  width: 5px;
}

.modules-list::-webkit-scrollbar-track {
  background: transparent;
}

.modules-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.modules-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Module Item Styles (Episode layout style) */
/* Module Item Styles (Premium Card layout style) */
.module-item {
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.module-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.module-item.active {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08) 0%, rgba(255, 122, 0, 0.02) 100%);
  border-color: rgba(240, 162, 54, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Clean index/play indicators */
.module-number-indicator {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.module-number-indicator .num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.module-number-indicator .play-indicator-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.25s ease;
  color: #fff;
}

.module-number-indicator .play-indicator-svg svg {
  width: 12px;
  height: 12px;
}

.lock-indicator-svg svg {
  fill: none !important;
  stroke: currentColor;
}

/* Hover & Active triggers for indicators */
.module-item:hover .module-number-indicator,
.module-item.active .module-number-indicator {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(240, 162, 54, 0.4);
}

.module-item:hover .num,
.module-item.active .num {
  opacity: 0;
  transform: scale(0.7);
}

.module-item:hover .play-indicator-svg,
.module-item.active .play-indicator-svg {
  opacity: 1;
  transform: scale(1);
}

/* Locked items indicator overrides */
.module-item.locked .play-indicator-svg {
  color: #fff;
}

.module-item.locked:hover .module-number-indicator {
  background: rgba(240, 162, 54, 0.15);
  border-color: rgba(240, 162, 54, 0.3);
  box-shadow: none;
}

.module-item.locked:hover .play-indicator-svg {
  color: var(--accent);
}

/* Module metadata */
.module-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.module-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.module-item:hover .module-title,
.module-item.active .module-title {
  color: #fff;
}

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

.free-badge-outline {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: #00b67a;
  background: rgba(0, 182, 122, 0.05);
  border: 1px solid rgba(0, 182, 122, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.premium-badge-outline {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240, 162, 54, 0.05);
  border: 1px solid rgba(240, 162, 54, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.module-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* ── LEFT PANEL: WORKSPACE ── */
.workspace-panel {
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .workspace-panel {
    padding: 24px;
  }
}

.workspace-card {
  display: none;
  flex-direction: column;
  height: 100%;
}

.workspace-card.active {
  display: flex;
}

/* Video Player Frame */
.video-player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 28px;
}

.video-player-frame video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Workspace details tabs (LMS portal style) */
.workspace-details-tabs {
  display: flex;
  flex-direction: column;
}

.details-tab-header {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.tab-btn.active {
  color: #fff;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--logo-fx-color);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab-btn.active::after {
  transform: scaleX(1);
}

.details-tab-content {
  min-height: 140px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInPane 0.25s ease-out;
}

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

/* About Tab Pane */
.details-meta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.workspace-level {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--logo-spyy-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workspace-duration {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.workspace-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.3;
  margin-bottom: 8px;
}

.workspace-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* Resources Tab Pane */
.resources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 18px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.resource-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.resource-icon {
  width: 36px;
  height: 36px;
  background: rgba(63, 169, 245, 0.08);
  border: 1px solid rgba(63, 169, 245, 0.15);
  color: var(--logo-spyy-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon svg {
  width: 18px;
  height: 18px;
}

.resource-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.resource-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.resource-size {
  font-size: 10.5px;
  color: var(--text-dim);
}

.resource-download-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}

.resource-download-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.resource-download-btn svg {
  width: 14px;
  height: 14px;
}

/* Notes Tab Pane */
.notes-container {
  width: 100%;
}

.notes-container textarea {
  width: 100%;
  height: 130px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease;
}
/* Discussion Tab Pane */
.discussion-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-input-block {
  display: flex;
  gap: 12px;
}

.comment-input-field {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-input-field:focus {
  border-color: rgba(240, 162, 54, 0.35);
}

.btn-post-comment {
  background: var(--logo-fx-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-post-comment:hover {
  opacity: 0.9;
}

.comments-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom Scrollbar for Comments */
.comments-thread::-webkit-scrollbar {
  width: 4px;
}
.comments-thread::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  flex-shrink: 0;
}

.comment-body {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 10px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-light);
}

.comment-date {
  font-size: 10.5px;
  color: var(--text-dim);
}

.comment-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.mentor-reply .comment-body {
  border-color: rgba(240, 162, 54, 0.15);
  background: rgba(240, 162, 54, 0.02);
}

.mentor-avatar {
  background: rgba(240, 162, 54, 0.12);
  color: var(--accent);
  border: 1px solid rgba(240, 162, 54, 0.2);
}

.mentor-badge {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240, 162, 54, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Assignments Tab Pane */
.assignments-container {
  display: flex;
  flex-direction: column;
}

.assignment-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
}

.assignment-tagline {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assignment-checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.assignment-checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.assignment-checkbox-label:hover .checkbox-custom {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.assignment-checkbox-label input:checked ~ .checkbox-custom {
  background: #00b67a;
  border-color: #00b67a;
}

.checkbox-custom::after {
  content: '';
  display: none;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
  margin-left: 1px;
}

.assignment-checkbox-label input:checked ~ .checkbox-custom::after {
  display: block;
}

.assignment-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  transition: color 0.2s ease;
}

.assignment-checkbox-label input:checked ~ .assignment-text {
  color: var(--text-dim);
  text-decoration: line-through;
}

/* ── PREMIUM WORKSPACE CARD (Upgrade Screen) ── */
.locker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 480px;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.005);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.locker-graphic {
  margin-bottom: 20px;
}

.lock-shield-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(240, 162, 54, 0.08);
  border: 1px solid rgba(240, 162, 54, 0.15);
  color: var(--accent);
}

.lock-shield-badge svg {
  width: 26px;
  height: 26px;
}

.locker-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}

.locker-tag {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.locker-features-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.feature-bullet {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-bullet svg {
  width: 14px;
  height: 14px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-bullet span {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.locker-button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.btn-upgrade-dashboard {
  background: linear-gradient(135deg, #f0a236 0%, #df4d26 100%);
  color: #fff;
  border-radius: 100px;
  padding: 13px 26px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(240, 162, 54, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.btn-upgrade-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 162, 54, 0.35);
}

.locker-support-hint {
  font-size: 10.5px;
  color: var(--text-dim);
}

/* ── LIGHT THEME OVERRIDES ── */
body.light-theme .courses-hero {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .dashboard-layout {
  background: rgba(255, 255, 255, 0.75); /* Light glass base */
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(13, 17, 23, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.light-theme .syllabus-sidebar {
  border-left-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02); /* Subtle contrast shading overlay */
}
@media (max-width: 992px) {
  body.light-theme .syllabus-sidebar {
    border-left: none;
    border-top-color: rgba(0, 0, 0, 0.08);
  }
}

body.light-theme .sidebar-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .module-item {
  background: rgba(0, 0, 0, 0.015);
  border-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .module-item:hover {
  background: rgba(0, 0, 0, 0.035);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .module-item.active {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.06) 0%, rgba(255, 122, 0, 0.01) 100%);
  border-color: rgba(240, 162, 54, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.light-theme .module-number-indicator {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .module-number-indicator .num {
  color: rgba(0, 0, 0, 0.4);
}

body.light-theme .module-title {
  color: rgba(0, 0, 0, 0.75);
}

body.light-theme .module-item:hover .module-title,
body.light-theme .module-item.active .module-title {
  color: #000000;
}

body.light-theme .module-time {
  color: rgba(0, 0, 0, 0.35);
}

body.light-theme .free-badge-outline {
  background: rgba(0, 182, 122, 0.04);
  border-color: rgba(0, 182, 122, 0.15);
}

body.light-theme .premium-badge-outline {
  background: rgba(240, 162, 54, 0.04);
  border-color: rgba(240, 162, 54, 0.15);
}

body.light-theme .video-player-frame {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(13, 17, 23, 0.06);
}

body.light-theme .details-tab-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .tab-btn {
  color: rgba(0, 0, 0, 0.45);
}

body.light-theme .tab-btn:hover {
  color: rgba(0, 0, 0, 0.85);
}

body.light-theme .tab-btn.active {
  color: #000;
}

body.light-theme .resource-item {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .resource-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .resource-download-btn {
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.4);
}

body.light-theme .resource-download-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
  color: #000;
}

body.light-theme .notes-container textarea {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
  color: #000;
}

body.light-theme .comment-input-field {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #000;
}

body.light-theme .comment-avatar {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

body.light-theme .comment-body {
  background: rgba(0, 0, 0, 0.005);
  border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .comment-author {
  color: #000;
}

body.light-theme .comment-text {
  color: rgba(0, 0, 0, 0.75);
}

body.light-theme .mentor-reply .comment-body {
  border-color: rgba(240, 162, 54, 0.2);
  background: rgba(240, 162, 54, 0.03);
}

body.light-theme .checkbox-custom {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.02);
}

body.light-theme .assignment-checkbox-label:hover .checkbox-custom {
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.06);
}

body.light-theme .assignment-checkbox-label input:checked ~ .checkbox-custom {
  background: #00b67a;
  border-color: #00b67a;
}

body.light-theme .assignment-text {
  color: rgba(0, 0, 0, 0.75);
}

body.light-theme .locker-container {
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .lock-shield-badge {
  background: rgba(240, 162, 54, 0.06);
  border-color: rgba(240, 162, 54, 0.12);
}

body.light-theme .locker-features-list {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .btn-upgrade-dashboard {
  box-shadow: 0 4px 15px rgba(240, 162, 54, 0.12);
}

body.light-theme .hero-bg-wrapper {
  background-color: #f5f7fb;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===================== Premium Purchase Prompt Modal ===================== */
@keyframes premiumIconPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240, 162, 54, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(240, 162, 54, 0); }
}

@keyframes socialPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.premium-prompt-card {
  background: var(--modal-bg, #0f121a);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px 40px 44px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(240, 162, 54, 0.08);
}

.modal-overlay.active .premium-prompt-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Reset inner elements to prepare for staggered entry */
.premium-prompt-card .premium-prompt-icon,
.premium-prompt-card .premium-prompt-tag,
.premium-prompt-card .premium-prompt-title,
.premium-prompt-card .premium-prompt-body,
.premium-prompt-card .premium-prompt-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Staggered slide up when active */
.modal-overlay.active .premium-prompt-card .premium-prompt-icon {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.modal-overlay.active .premium-prompt-card .premium-prompt-tag {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.modal-overlay.active .premium-prompt-card .premium-prompt-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.modal-overlay.active .premium-prompt-card .premium-prompt-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.modal-overlay.active .premium-prompt-card .premium-prompt-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Lock Icon */
.premium-prompt-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(240, 162, 54, 0.1);
  border: 1px solid rgba(240, 162, 54, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: premiumIconPulse 2.4s ease-in-out infinite;
  color: var(--accent-red);
}

.premium-prompt-icon svg {
  width: 34px;
  height: 34px;
}

/* Tag / eyebrow text */
.premium-prompt-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Title */
.premium-prompt-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

/* Body text */
.premium-prompt-body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.premium-highlight {
  color: var(--accent-red);
  font-weight: 700;
}

/* Action Buttons Row */
.premium-prompt-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.btn-premium-no {
  padding: 13px 28px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-premium-no:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Socials panel */
.premium-socials {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.premium-socials-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 22px;
  letter-spacing: 0.03em;
  opacity: 0;
  animation: socialLabelFade 0.4s ease 0.1s forwards;
}

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

.premium-socials-grid {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Individual social icon buttons */
.social-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 16px 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.2s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: socialPopIn 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) var(--delay, 0s) forwards;
  min-width: 72px;
}

.social-icon-btn svg {
  width: 36px;
  height: 36px;
}

.social-icon-btn span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.social-icon-btn:hover {
  transform: translateY(-5px) scale(1.06);
}

/* Platform-specific colours */
.social-whatsapp { color: #25D366; }
.social-whatsapp:hover { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.3); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25); }
.social-whatsapp:hover span { color: #25D366; }

.social-telegram { color: #2AABEE; }
.social-telegram:hover { background: rgba(42, 171, 238, 0.12); border-color: rgba(42, 171, 238, 0.3); box-shadow: 0 8px 24px rgba(42, 171, 238, 0.25); }
.social-telegram:hover span { color: #2AABEE; }

.social-tiktok { color: #fff; }
.social-tiktok:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12); }
.social-tiktok:hover span { color: #fff; }

.social-instagram { color: #E1306C; }
.social-instagram:hover { background: rgba(225, 48, 108, 0.12); border-color: rgba(225, 48, 108, 0.3); box-shadow: 0 8px 24px rgba(225, 48, 108, 0.25); }
.social-instagram:hover span { color: #E1306C; }

.social-youtube { color: #FF0000; }
.social-youtube:hover { background: rgba(255, 0, 0, 0.12); border-color: rgba(255, 0, 0, 0.3); box-shadow: 0 8px 24px rgba(255, 0, 0, 0.25); }
.social-youtube:hover span { color: #FF0000; }

.social-email { color: var(--accent-red); }
.social-email:hover { background: rgba(240, 162, 54, 0.12); border-color: rgba(240, 162, 54, 0.3); box-shadow: 0 8px 24px rgba(240, 162, 54, 0.25); }
.social-email:hover span { color: var(--accent-red); }

/* Light theme override */
body.light-theme .premium-prompt-card {
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

body.light-theme .premium-prompt-title {
  color: #0a0c10;
}

body.light-theme .btn-premium-no {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.55);
}

body.light-theme .social-icon-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Course Progress Tracker Styling */
.course-progress-container {
  padding: 0 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .course-progress-container {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

body.light-theme .progress-header {
  color: rgba(0, 0, 0, 0.5);
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

body.light-theme .progress-bar-track {
  background: rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f0a236, #d88924);
  transition: width 0.4s ease;
  border-radius: 3px;
}

/* Completed badge checkmark indicator styles */
.module-item.completed .module-number-indicator {
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}
.module-item.completed .module-number-indicator .num {
  display: none !important;
}
.module-item.completed .module-number-indicator::after {
  content: '✓' !important;
  color: #10b981 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}
body.light-theme .module-item.completed .module-number-indicator {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Staggered load animation for syllabus items */
.module-item {
  opacity: 0;
  transform: translateY(16px);
  animation: spyyfx-module-slideup 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes spyyfx-module-slideup {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eye-catching Recommended Brokers Section */
.recommended-brokers-section {
  margin-top: 26px;
  padding: 20px;
  background: rgba(240, 162, 54, 0.02);
  border: 1px solid rgba(240, 162, 54, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  
  /* Entry animation */
  opacity: 0;
  transform: translateY(15px);
  animation: spyyfx-brokers-fadein 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes spyyfx-brokers-fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.light-theme .recommended-brokers-section {
  background: rgba(240, 162, 54, 0.01);
  border-color: rgba(240, 162, 54, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.brokers-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hot-badge {
  font-size: 8.5px;
  font-weight: 800;
  color: #0b0d10;
  background: linear-gradient(135deg, #f0a236 0%, #e28f24 100%);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.8px;
  font-family: 'Outfit', sans-serif;
  
  /* Glowing animation */
  animation: spyyfx-badge-glow 2s infinite ease-in-out;
}

@keyframes spyyfx-badge-glow {
  0%, 100% {
    box-shadow: 0 0 4px rgba(240, 162, 54, 0.4);
  }
  50% {
    box-shadow: 0 0 12px rgba(240, 162, 54, 0.7);
  }
}

.flame-flicker {
  display: inline-block;
  animation: spyyfx-flame-flicker 0.6s infinite alternate ease-in-out;
}

@keyframes spyyfx-flame-flicker {
  0%, 100% {
    transform: scale(1) rotate(-3deg);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.15) rotate(4deg);
    opacity: 1;
  }
}

.brokers-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

body.light-theme .brokers-section-title {
  color: #0b0d10;
}

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

@media (max-width: 576px) {
  .brokers-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.broker-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-theme .broker-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.broker-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.light-theme .broker-card:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.deriv-card:hover { border-color: rgba(255, 68, 86, 0.3); }
.weltrade-card:hover { border-color: rgba(0, 86, 179, 0.4); }
.exness-card:hover { border-color: rgba(240, 162, 54, 0.4); }

.broker-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-light);
  margin: 0 0 6px 0;
  font-family: 'Outfit', sans-serif;
}

body.light-theme .broker-name {
  color: #0b0d10;
}

/* Rating capsule pill */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(240, 162, 54, 0.08);
  border: 1px solid rgba(240, 162, 54, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.gold-star {
  color: #f0a236;
  font-size: 12px;
  line-height: 1;
}

.rating-score {
  font-size: 10px;
  font-weight: 700;
  color: #f0a236;
  font-family: 'Outfit', sans-serif;
}

.broker-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

body.light-theme .broker-perks {
  color: rgba(0, 0, 0, 0.6);
}

.broker-cta {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Outfit', sans-serif;
  transition: all 0.25s ease;
}

.deriv-cta {
  background: #ff4456;
  color: #ffffff !important;
}
.deriv-cta:hover {
  background: #ff5f6e;
}

.weltrade-cta {
  background: #0056b3;
  color: #ffffff !important;
}
.weltrade-cta:hover {
  background: #006ae6;
}

.exness-cta {
  background: #f0a236;
  color: #0b0d10 !important;
}
.exness-cta:hover {
  background: #f2b154;
}
