/* ═══════════════════════════════════════════
   BYF Kurs emotivnog prejedanja – Styles v3
   Palette: soft lavender, light blue, blush pink
   ═══════════════════════════════════════════ */

.byf-ep {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Override Elementor global SVG sizing inside our component */
#byf-kurs-ep svg {
  width: 1em !important;
  height: 1em !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}
/* Specific sizes where needed */
#byf-kurs-ep .byf-ep__header-icon svg,
#byf-kurs-ep .byf-ep__quiz-intro-icon svg,
#byf-kurs-ep .byf-ep__quiz-results-icon svg,
#byf-kurs-ep .byf-ep__plan-empty-icon svg,
#byf-kurs-ep .byf-ep__plan-head-icon svg { width: 22px !important; height: 22px !important; }
#byf-kurs-ep .byf-ep__module-icon svg { width: 20px !important; height: 20px !important; }
#byf-kurs-ep .byf-ep__module-chevron svg { width: 20px !important; height: 20px !important; }
#byf-kurs-ep .byf-ep__lesson-play svg { width: 12px !important; height: 12px !important; }
#byf-kurs-ep .byf-ep__lesson-refl-badge svg { width: 14px !important; height: 14px !important; }
#byf-kurs-ep .byf-ep__reflection-toggle-icon svg { width: 14px !important; height: 14px !important; }
#byf-kurs-ep .byf-ep__reflection-toggle-arrow svg { width: 14px !important; height: 14px !important; }
#byf-kurs-ep .byf-ep__reflection-icon svg { width: 16px !important; height: 16px !important; }
#byf-kurs-ep .byf-ep__insights-icon svg { width: 18px !important; height: 18px !important; }
#byf-kurs-ep .byf-ep__trainer-link svg { width: 18px !important; height: 18px !important; }

/* ── Header ── */
.byf-ep__header {
  text-align: center;
  margin-bottom: 28px;
  background: #f2f2fc;
  border-radius: 20px !important;
  padding: 36px 24px 30px !important;
  border: 1px solid rgba(210, 220, 235, .85);
}
.byf-ep__title {
  font-size: 26px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 6px;
}
.byf-ep__subtitle {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  margin: 0 0 16px;
}
.byf-ep__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #8b85b0;
  font-weight: 500;
}
.byf-ep__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b9a3ff;
}

/* ═══════════════════════════════════════════
   3-Step Indicators
   ═══════════════════════════════════════════ */
.byf-ep__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 8px;
}
.byf-ep__step {
  display: flex;
  align-items: center;
  gap: 10px;
}
.byf-ep__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(111, 99, 246, 0.08);
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.byf-ep__step--active .byf-ep__step-num {
  background: #6f63f6;
  color: #fff;
  box-shadow: 0 2px 8px rgba(111, 99, 246, 0.25);
}
.byf-ep__step-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.byf-ep__step-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e1b4b;
}
.byf-ep__step-desc {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}
.byf-ep__step-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 99, 246, 0.15), rgba(236, 176, 192, 0.3), rgba(111, 99, 246, 0.15));
  margin: 0 12px;
  min-width: 20px;
}

/* ═══════════════════════════════════════════
   Section Labels
   ═══════════════════════════════════════════ */
.byf-ep__section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #1e1b4b;
  flex-wrap: wrap;
}
.byf-ep__section-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eceaff;
  color: #6f63f6;
}
.byf-ep__section-hint {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  width: 100%;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   Quiz Card
   ═══════════════════════════════════════════ */
.byf-ep__quiz {
  margin-bottom: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgb(220 228 235 / 70%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

/* Intro */
.byf-ep__quiz-intro {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.5) 0%, rgba(252, 228, 236, 0.4) 100%);
}
.byf-ep__quiz-intro-icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  background: rgba(111, 99, 246, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: #6f63f6;
}
.byf-ep__quiz-intro-icon svg { width: 22px; height: 22px; }
.byf-ep__quiz-intro-title { font-size: 20px; font-weight: 700; color: #1e1b4b; margin: 0 0 8px; }
.byf-ep__quiz-intro-desc { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0 0 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
#byf-ep-quiz .byf-ep__quiz-start {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: #6f63f6 !important; color: #fff !important; font-family: inherit;
  font-size: 14px !important; font-weight: 600; padding: 12px 28px !important;
  border: none !important; border-radius: 12px !important; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 2px 8px rgba(111, 99, 246, 0.2);
  line-height: 1.4 !important; text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
}
#byf-ep-quiz .byf-ep__quiz-start:hover { background: #5a4fe0 !important; box-shadow: 0 4px 14px rgba(111, 99, 246, 0.3); }

/* Player */
.byf-ep__quiz-player { padding: 28px 24px 32px; }
.byf-ep__quiz-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.byf-ep__quiz-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(111, 99, 246, 0.12); transition: all 0.2s; }
.byf-ep__quiz-dot--current { background: #6f63f6; transform: scale(1.2); }
.byf-ep__quiz-dot--done { background: #6f63f6; opacity: 0.5; }
.byf-ep__quiz-qnum { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #6f63f6; margin-bottom: 8px; }
.byf-ep__quiz-question { text-align: center; font-size: 17px; font-weight: 600; color: #1e1b4b; line-height: 1.5; margin-bottom: 24px; min-height: 52px; }
.byf-ep__quiz-options { display: flex; flex-direction: column; gap: 8px; max-width: 400px; margin: 0 auto 24px; }
#byf-ep-quiz .byf-ep__quiz-opt {
  display: block !important; width: 100% !important; padding: 13px 18px !important;
  border: 1px solid rgb(220 228 235 / 80%) !important; border-radius: 12px !important;
  background: #fff !important; font-family: inherit; font-size: 14px !important;
  font-weight: 500 !important; color: #1e1b4b !important; cursor: pointer;
  transition: all 0.15s; text-align: left !important; line-height: 1.4 !important;
  text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
  box-shadow: none !important; -webkit-appearance: none !important; appearance: none !important;
}
#byf-ep-quiz .byf-ep__quiz-opt:hover { border-color: rgba(111, 99, 246, 0.4) !important; background: rgba(111, 99, 246, 0.03) !important; }
#byf-ep-quiz .byf-ep__quiz-opt--selected { border-color: #6f63f6 !important; background: rgba(111, 99, 246, 0.06) !important; color: #6f63f6 !important; font-weight: 600 !important; }
#byf-ep-quiz .byf-ep__quiz-next {
  display: block !important; width: 100% !important; max-width: 400px; margin: 0 auto;
  padding: 13px 24px !important; border: none !important; border-radius: 12px !important;
  background: #6f63f6 !important; color: #fff !important; font-family: inherit;
  font-size: 14px !important; font-weight: 600; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(111, 99, 246, 0.2) !important; line-height: 1.4 !important;
  text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
}
#byf-ep-quiz .byf-ep__quiz-next:hover:not(:disabled) { background: #5a4fe0 !important; }
#byf-ep-quiz .byf-ep__quiz-next:disabled { opacity: 0.4; cursor: default; }

/* Results */
.byf-ep__quiz-results { text-align: center; padding: 32px 24px; }
.byf-ep__quiz-results-icon { width: 44px; height: 44px; margin: 0 auto 14px; background: rgba(111, 99, 246, 0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6f63f6; }
.byf-ep__quiz-results-icon svg { width: 22px; height: 22px; }
.byf-ep__quiz-results-title { font-size: 18px; font-weight: 700; color: #1e1b4b; margin: 0 0 16px; }
.byf-ep__quiz-score { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 12px; }
.byf-ep__quiz-score-num { font-size: 42px; font-weight: 700; color: #6f63f6; line-height: 1; }
.byf-ep__quiz-score-max { font-size: 18px; font-weight: 500; color: #9ca3af; }
.byf-ep__quiz-bar { height: 8px; background: rgba(111, 99, 246, 0.1); border-radius: 4px; overflow: hidden; max-width: 320px; margin: 0 auto 20px; }
.byf-ep__quiz-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #b9a3ff, #6f63f657); transition: width 0.8s ease; }
.byf-ep__quiz-category { margin-bottom: 20px; }
.byf-ep__quiz-cat-label { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-bottom: 10px; }
.byf-ep__quiz-cat--low { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.byf-ep__quiz-cat--moderate { background: rgba(234, 179, 8, 0.1); color: #ca8a04; }
.byf-ep__quiz-cat--elevated { background: rgba(249, 115, 22, 0.1); color: #ea580c; }
.byf-ep__quiz-cat--high { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.byf-ep__quiz-category p { font-size: 14px; color: #374151; line-height: 1.6; margin: 0; max-width: 440px; margin-left: auto; margin-right: auto; }
.byf-ep__quiz-disclaimer { font-size: 11px; color: #9ca3af; line-height: 1.5; margin: 0 0 20px; padding-top: 16px; border-top: 1px solid rgb(220 228 235 / 50%); max-width: 440px; margin-left: auto; margin-right: auto; }
#byf-ep-quiz .byf-ep__quiz-retake {
  display: inline-flex !important; align-items: center; gap: 6px;
  background: transparent !important; color: #6f63f6 !important; font-family: inherit;
  font-size: 13px !important; font-weight: 600; padding: 10px 20px !important;
  border: 1px solid rgba(111, 99, 246, 0.3) !important; border-radius: 10px !important;
  cursor: pointer; transition: all 0.15s; text-decoration: none !important;
  text-transform: none !important; letter-spacing: normal !important; line-height: 1.4 !important; box-shadow: none !important;
}
#byf-ep-quiz .byf-ep__quiz-retake:hover { background: rgba(111, 99, 246, 0.05) !important; border-color: #6f63f6 !important; }

/* ═══════════════════════════════════════════
   Insights Card
   ═══════════════════════════════════════════ */
.byf-ep__insights { margin-bottom: 32px; background: #fff; border-radius: 16px; border: 1px solid rgb(220 228 235 / 70%); box-shadow: 0 1px 4px rgba(0,0,0,0.03); padding: 24px 20px; }
.byf-ep__insights-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.byf-ep__insights-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, rgba(227, 242, 253, 0.6), rgb(197 208 243 / 50%)); display: flex; align-items: center; justify-content: center; color: #6f63f6; flex-shrink: 0; }
.byf-ep__insights-icon svg { width: 18px; height: 18px; }
.byf-ep__insights-title { font-size: 17px; font-weight: 700; color: #1e1b4b; margin: 0; }
.byf-ep__insights-stats { display: flex; gap: 12px; margin-bottom: 20px; }
.byf-ep__insights-stat { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #eff5ff; border: 1px solid rgba(210, 220, 235, .85); }
.byf-ep__insights-stat-num { font-size: 18px; font-weight: 700; color: #1e1b4b; }
.byf-ep__insights-stat-label { font-size: 12px; color: #6b7280; font-weight: 500; }
.byf-ep__insights-emo { margin-bottom: 16px; }
.byf-ep__insights-emo-label { font-size: 14px; font-weight: 500; color: #6b7280; margin: 0 0 10px; letter-spacing: -0.2px; }
.byf-ep__insights-emo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.byf-ep__insights-emo-row:last-child { margin-bottom: 0; }
.byf-ep__insights-emo-name { font-size: 13px; font-weight: 500; color: #1e1b4b; min-width: 100px; flex-shrink: 0; }
.byf-ep__insights-emo-bar-track { flex: 1; height: 8px; background: rgba(236, 176, 192, 0.15); border-radius: 4px; overflow: hidden; }
.byf-ep__insights-emo-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #dae2f4b3, #a3c2ff7a); transition: width 0.6s ease; }
.byf-ep__insights-emo-count { font-size: 12px; font-weight: 600; color: #6f63f6; min-width: 24px; text-align: right; }
.byf-ep__insights-sentence { font-size: 13px; color: #374151; line-height: 1.6; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgb(220 228 235 / 50%); }
.byf-ep__insights--empty { opacity: 0.7; }
.byf-ep__insights-empty-text { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }

/* ═══════════════════════════════════════════
   Modules (accordion)
   ═══════════════════════════════════════════ */
.byf-ep__modules { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.byf-ep__module { background: #fff; border-radius: 16px; border: 1px solid rgb(220 228 235 / 70%); box-shadow: 0 1px 4px rgba(0,0,0,0.03); overflow: hidden; }
.byf-ep__module-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; user-select: none; transition: background 0.2s; }
.byf-ep__module-head::-webkit-details-marker { display: none; }
.byf-ep__module-head::marker { display: none; content: ''; }
.byf-ep__module-head:hover { background: rgba(111, 99, 246, 0.02); }
.byf-ep__module-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, rgb(235 229 255) 0%, rgb(173 173 247 / 33%) 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #6f63f6; }
.byf-ep__module-icon svg { width: 20px; height: 20px; }
.byf-ep__module-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.byf-ep__module-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #6f63f6; }
.byf-ep__module-title { font-size: 15px; font-weight: 600; color: #1e1b4b; }
.byf-ep__module-count { font-size: 12px; color: #9ca3af; font-weight: 500; white-space: nowrap; }
.byf-ep__module-chevron { width: 20px; height: 20px; color: #9ca3af; display: flex; align-items: center; transition: transform 0.25s ease; }
.byf-ep__module-chevron svg { width: 20px; height: 20px; }
.byf-ep__module[open] > .byf-ep__module-head .byf-ep__module-chevron { transform: rotate(180deg); }
.byf-ep__module-body { border-top: 1px solid rgb(220 228 235 / 60%); padding: 6px 0; }

/* Lessons */
.byf-ep__lesson { display: flex; align-items: center; gap: 14px; padding: 14px 20px; cursor: pointer; transition: background 0.15s; }
.byf-ep__lesson:hover { background: rgba(111, 99, 246, 0.04); }
.byf-ep__lesson-num { width: 28px; height: 28px; border-radius: 8px; background: rgba(111, 99, 246, 0.06); color: #6f63f6; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.byf-ep__lesson-title { flex: 1; font-size: 14px; font-weight: 500; color: #1e1b4b; line-height: 1.4; }
.byf-ep__lesson-dur { font-size: 12px; color: #9ca3af; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.byf-ep__lesson-refl-badge { width: 20px !important; height: 20px !important; min-width: 20px; max-width: 20px; color: #ecb0c0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.byf-ep__lesson-refl-badge svg { width: 14px !important; height: 14px !important; min-width: 14px; max-width: 14px; flex-shrink: 0; }
.byf-ep__lesson-play { width: 32px; height: 32px; border-radius: 50%; background: #6f63f6; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; box-shadow: 0 2px 8px rgba(111, 99, 246, 0.2); }
.byf-ep__lesson-play svg { width: 12px; height: 12px; margin-left: 1px; }
.byf-ep__lesson:hover .byf-ep__lesson-play { background: #5a4fe0; box-shadow: 0 4px 14px rgba(111,99,246,0.3); transform: scale(1.05); }

/* ═══════════════════════════════════════════
   Reflection Journal (collapsible)
   ═══════════════════════════════════════════ */
.byf-ep__reflection {
  margin: 0 20px 8px;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
/* Hidden until video is watched */
.byf-ep__reflection--hidden {
  display: none !important;
}

/* Toggle button (always visible) */
#byf-kurs-ep .byf-ep__reflection-toggle {
  display: flex !important; align-items: center; gap: 8px; width: 100% !important;
  padding: 9px 14px !important; border: 1px solid rgba(236, 176, 192, 0.2) !important;
  border-radius: 10px !important; cursor: pointer;
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.2) 0%, rgba(252, 228, 236, 0.15) 100%) !important;
  font-family: inherit; font-size: 12px !important; font-weight: 500 !important;
  color: #9ca3af !important; transition: all 0.15s; line-height: 1.4 !important;
  text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important;
  box-shadow: none !important; -webkit-appearance: none !important; appearance: none !important;
  text-align: left !important;
}
#byf-kurs-ep .byf-ep__reflection-toggle:hover {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.35) 0%, rgba(252, 228, 236, 0.25) 100%) !important;
  color: #6b7280 !important;
}
.byf-ep__reflection-toggle-icon { width: 16px !important; height: 16px !important; min-width: 16px; max-width: 16px; color: #ecb0c0; display: flex; align-items: center; flex-shrink: 0; overflow: hidden; }
.byf-ep__reflection-toggle-icon svg { width: 14px !important; height: 14px !important; min-width: 14px; max-width: 14px; flex-shrink: 0; }
.byf-ep__reflection-toggle-text { flex: 1; }
.byf-ep__reflection-toggle-arrow { width: 16px !important; height: 16px !important; min-width: 16px; max-width: 16px; display: flex; align-items: center; transition: transform 0.2s; flex-shrink: 0; overflow: hidden; }
.byf-ep__reflection-toggle-arrow svg { width: 14px !important; height: 14px !important; min-width: 14px; max-width: 14px; flex-shrink: 0; }
.byf-ep__reflection--collapsed .byf-ep__reflection-toggle-arrow { transform: rotate(0deg); }
.byf-ep__reflection:not(.byf-ep__reflection--collapsed) .byf-ep__reflection-toggle-arrow { transform: rotate(180deg); }
.byf-ep__reflection:not(.byf-ep__reflection--collapsed) .byf-ep__reflection-toggle {
  border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important;
  border-bottom-color: transparent !important;
}

/* Filled indicator */
.byf-ep__reflection--filled .byf-ep__reflection-toggle-icon { color: #6f63f6; }
.byf-ep__reflection--filled .byf-ep__reflection-toggle-text { color: #6f63f6 !important; font-weight: 600 !important; }

/* Body (hidden by default) */
.byf-ep__reflection-body {
  padding: 12px 14px 14px;
  background: linear-gradient(135deg, rgb(242 242 252 / 56%) 0%, rgb(246 246 255 / 69%) 100%);
  border: 1px solid rgba(236, 176, 192, 0.2); border-top: none;
  border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;
}
.byf-ep__reflection-q {
  font-size: 13px; font-weight: 500; color: #374151; line-height: 1.5; margin: 0 0 10px; font-style: italic;
}
.byf-ep__reflection-input {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(220, 228, 235, 0.8); border-radius: 10px;
  font-family: inherit; font-size: 13px !important; color: #1e1b4b; line-height: 1.5; resize: vertical;
  background: rgb(255 255 255 / 68%); transition: border-color 0.15s; min-height: 60px;
  box-sizing: border-box;
}
.byf-ep__reflection-input:focus { outline: none; border-color: rgba(111, 99, 246, 0.4); }
.byf-ep__reflection-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
#byf-kurs-ep .byf-ep__reflection-save {
  padding: 7px 16px !important; border: none !important; border-radius: 8px !important;
  background: rgba(111, 99, 246, 0.08) !important; color: #6f63f6 !important;
  font-family: inherit; font-size: 12px !important; font-weight: 600;
  cursor: pointer; transition: all 0.15s; line-height: 1.4 !important;
  text-decoration: none !important; text-transform: none !important;
  letter-spacing: normal !important; box-shadow: none !important;
  -webkit-appearance: none !important; appearance: none !important;
  display: inline-block !important;
}
#byf-kurs-ep .byf-ep__reflection-save:hover { background: rgba(111, 99, 246, 0.15) !important; }
.byf-ep__reflection-saved { font-size: 12px; color: #16a34a; font-weight: 500; }

/* ═══════════════════════════════════════════
   AI Action Plan
   ═══════════════════════════════════════════ */
.byf-ep__plan {
  margin-bottom: 32px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgb(220 228 235 / 70%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  overflow: hidden;
}
.byf-ep__plan-empty {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.4) 0%, rgba(252, 228, 236, 0.3) 50%, rgba(232, 234, 246, 0.3) 100%);
}
.byf-ep__plan-empty-icon,
.byf-ep__plan-head-icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  background: linear-gradient(135deg, rgb(222 236 251 / 52%), rgb(82 67 255 / 22%));
  border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #6f63f6;
}
.byf-ep__plan-empty-icon svg,
.byf-ep__plan-head-icon svg { width: 22px; height: 22px; }
.byf-ep__plan-empty-title,
.byf-ep__plan-head-title { font-size: 20px; font-weight: 700; color: #1e1b4b; margin: 0 0 8px; }
.byf-ep__plan-empty-desc { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0 0 20px; max-width: 460px; margin-left: auto; margin-right: auto; }
#byf-kurs-ep .byf-ep__plan-generate {
  display: inline-flex !important; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #6f63f6, #8b7cf6) !important; color: #fff !important; font-family: inherit;
  font-size: 14px !important; font-weight: 600; padding: 12px 28px !important; border: none !important; border-radius: 12px !important;
  cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 12px rgba(111, 99, 246, 0.25) !important;
  line-height: 1.4 !important; text-decoration: none !important; text-transform: none !important;
  letter-spacing: normal !important; -webkit-appearance: none !important; appearance: none !important;
}
#byf-kurs-ep .byf-ep__plan-generate:hover { box-shadow: 0 4px 18px rgba(111, 99, 246, 0.35) !important; transform: translateY(-1px); }

/* Plan content */
.byf-ep__plan-content { padding: 28px 24px; }
.byf-ep__plan-head { text-align: center; margin-bottom: 20px; }
.byf-ep__plan-body {
  font-size: 14px; color: #374151; line-height: 1.7;
  padding: 28px 24px; border-radius: 14px;
  background: linear-gradient(135deg, rgb(235 241 253 / 71%), rgb(240 228 252 / 20%));
  border: 1px solid rgb(156 166 216 / 15%);
}
.byf-ep__plan-body .byf-ep__plan-main-title {
  font-size: 20px; font-weight: 700; color: #1e1b4b; text-align: center;
  margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(156, 166, 216, 0.15);
}
.byf-ep__plan-body h2 { font-size: 16px; font-weight: 700; color: #6f63f6; margin: 24px 0 10px; letter-spacing: -0.2px; }
.byf-ep__plan-body h2:first-child { margin-top: 0; }
.byf-ep__plan-body h3 { font-size: 14px; font-weight: 700; color: #8b7cf6; margin: 16px 0 6px; }
.byf-ep__plan-body p { margin: 0 0 12px; }
.byf-ep__plan-body ul { margin: 8px 0 14px 0; padding: 0; list-style: none; }
.byf-ep__plan-body li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.byf-ep__plan-body li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #b9a3ff; }
.byf-ep__plan-body strong { color: #1e1b4b; }
.byf-ep__plan-body hr { border: none; height: 1px; background: rgba(156, 166, 216, 0.15); margin: 20px 0; }
#byf-kurs-ep .byf-ep__plan-refresh {
  display: inline-flex !important; align-items: center; gap: 6px; margin-top: 16px;
  background: transparent !important; color: #6f63f6 !important; font-family: inherit;
  font-size: 13px !important; font-weight: 600; padding: 10px 20px !important;
  border: 1px solid rgba(111, 99, 246, 0.3) !important; border-radius: 10px !important;
  cursor: pointer; transition: all 0.15s; line-height: 1.4 !important;
  text-decoration: none !important; text-transform: none !important;
  letter-spacing: normal !important; box-shadow: none !important;
  -webkit-appearance: none !important; appearance: none !important;
}
#byf-kurs-ep .byf-ep__plan-refresh:hover { background: rgba(111, 99, 246, 0.05) !important; border-color: #6f63f6 !important; }

/* Loading */
.byf-ep__plan-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px; gap: 16px;
}
.byf-ep__plan-loading p { font-size: 14px; color: #6b7280; margin: 0; }
.byf-ep__plan-spinner {
  width: 36px; height: 36px; border: 3px solid rgba(111, 99, 246, 0.15);
  border-top-color: #6f63f6; border-radius: 50%; animation: byf-ep-spin 0.8s linear infinite;
}
@keyframes byf-ep-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   Trainer Card
   ═══════════════════════════════════════════ */
.byf-ep__trainer { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border-radius: 16px; border: 1px solid rgb(220 228 235 / 70%); box-shadow: 0 1px 4px rgba(0,0,0,0.03); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.byf-ep__trainer:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(20,19,26,0.1); }
.byf-ep__trainer-img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.byf-ep__trainer-info { flex: 1; }
.byf-ep__trainer-name { font-size: 15px; font-weight: 700; color: #1e1b4b; margin-bottom: 2px; }
.byf-ep__trainer-role-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: rgb(249 248 254); color: #6f63f6; margin-top: 4px; }

/* Trainer Modal */
.byf-ep__trainer-modal { position: fixed; inset: 0; z-index: 10100; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.byf-ep__trainer-modal-inner { position: relative; background: #fff; border-radius: 20px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px 28px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.byf-ep__trainer-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 28px; cursor: pointer; color: #9ca3af; line-height: 1; padding: 0; transition: color 0.15s; }
.byf-ep__trainer-modal-close:hover { color: #1e1b4b; }
.byf-ep__trainer-modal-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 16px; }
.byf-ep__trainer-modal-name { text-align: center; font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #1e1b4b; }
.byf-ep__trainer-modal-role { text-align: center; font-size: 13px; color: #6b7280; margin: 0 0 20px; }
.byf-ep__trainer-modal-bio { font-size: 14px; line-height: 1.7; color: #374151; }
.byf-ep__trainer-modal-bio p { margin: 0 0 12px; }
.byf-ep__trainer-modal-bio p:last-child { margin-bottom: 0; }
.byf-ep__trainer-modal-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgb(220 228 235 / 60%); }
.byf-ep__trainer-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #6f63f6; text-decoration: none; transition: opacity 0.15s; }
.byf-ep__trainer-link:hover { opacity: 0.75; }
.byf-ep__trainer-link, .byf-ep__trainer-link:visited { text-decoration: none !important; }
.byf-ep__trainer-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ═══════════════════════════════════════════
   Video Player Modal
   ═══════════════════════════════════════════ */
.byf-ep__player { position: fixed; inset: 0; z-index: 10200; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); }
.byf-ep__player-inner { position: relative; width: 100%; max-width: 900px; }
.byf-ep__player-close { position: absolute; top: -44px; right: 0; background: none; border: none; font-size: 32px; color: rgba(255,255,255,0.8); cursor: pointer; line-height: 1; padding: 4px; transition: color 0.15s; }
.byf-ep__player-close:hover { color: #fff; }
.byf-ep__player-wrap { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.byf-ep__player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .byf-ep { padding: 20px 14px 40px; }
  .byf-ep__header { padding: 24px 18px 22px; border-radius: 16px; }
  .byf-ep__title { font-size: 22px; }

  /* Steps */
  .byf-ep__steps { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  .byf-ep__step-line { display: none; }
  .byf-ep__step { width: 100%; padding: 8px 12px; background: rgba(255,255,255,0.6); border-radius: 10px; }
  .byf-ep__step-desc { display: none; }

  /* Quiz */
  .byf-ep__quiz-intro { padding: 24px 18px; }
  .byf-ep__quiz-intro-title { font-size: 18px; }
  .byf-ep__quiz-player { padding: 20px 16px 24px; }
  .byf-ep__quiz-question { font-size: 15px; min-height: 46px; }
  #byf-ep-quiz .byf-ep__quiz-opt { padding: 11px 14px !important; font-size: 13px !important; }
  .byf-ep__quiz-results { padding: 24px 18px; }
  .byf-ep__quiz-score-num { font-size: 36px; }

  /* Insights */
  .byf-ep__insights { padding: 20px 16px; }
  .byf-ep__insights-stats { gap: 8px; }
  .byf-ep__insights-stat { padding: 12px; }
  .byf-ep__insights-stat-num { font-size: 16px; }
  .byf-ep__insights-emo-name { min-width: 80px; font-size: 12px; }

  /* Modules */
  .byf-ep__module-head { padding: 14px 16px; gap: 10px; }
  .byf-ep__module-icon { width: 36px; height: 36px; }
  .byf-ep__module-title { font-size: 14px; }
  .byf-ep__module-count { display: none; }
  .byf-ep__lesson { padding: 12px 16px; gap: 10px; }
  .byf-ep__lesson-title { font-size: 13px; }
  .byf-ep__lesson-play { width: 28px; height: 28px; }
  .byf-ep__lesson-play svg { width: 10px; height: 10px; }

  /* Reflections */
  .byf-ep__reflection { margin: 0 16px 10px; padding: 14px 14px; }

  /* Plan */
  .byf-ep__plan-empty { padding: 28px 18px; }
  .byf-ep__plan-content { padding: 20px 16px; }
  .byf-ep__plan-body { padding: 16px; }

  /* Trainer */
  .byf-ep__trainer { padding: 14px 16px; }
  .byf-ep__trainer-img { width: 48px; height: 48px; }
  .byf-ep__trainer-modal-inner { padding: 24px 20px 20px; }

  /* Player */
  .byf-ep__player-close { top: -38px; font-size: 28px; }
  .byf-ep__player-wrap { border-radius: 10px; }
}
