/**
 * BEElio - Kho Bài Học Chuẩn Sư Phạm & Thẻ Kiến Thức – Ví Dụ Mẫu (Lesson Library & Theory Studio)
 * Thiết kế dịu mắt, gọn thoáng, tập trung giúp trẻ hiểu bản chất trước khi thực hành.
 * Tương thích 100% Light / Sepia / Dark và màn hình di động 320px–430px.
 */

/* ==========================================================================
   1. TRANG KHO BÀI HỌC (#beelio-lesson-library)
   ========================================================================== */
.blib-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 88px;
  font-family: 'Be Vietnam Pro', 'Nunito', system-ui, sans-serif;
  color: #1E293B;
}

.blib-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FFF7E6 100%);
  border: 1.5px solid #FDE68A;
  border-radius: 22px;
  padding: 20px 24px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.blib-hero-main {
  flex: 1 1 0%;
  min-width: 0;
}

.blib-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.blib-hero-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
}

.blib-hero-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
}

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

.blib-progress-track {
  flex: 1 1 180px;
  max-width: 320px;
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

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

.blib-progress-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.blib-next-card {
  flex: 0 0 320px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.blib-next-tag {
  font-size: 11.5px;
  font-weight: 800;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.blib-next-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
  line-height: 1.35;
}

.blib-next-meta {
  font-size: 12.5px;
  color: #64748B;
  margin-bottom: 10px;
}

.blib-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #047857;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.blib-btn-primary:hover {
  filter: brightness(1.04);
}

.blib-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #047857;
}

/* THANH LỌC KHỐI - MÔN - TÌM KIẾM */
.blib-toolbar {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.blib-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blib-grade-chip,
.blib-subject-chip,
.blib-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  color: #475569;
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.blib-grade-chip:hover,
.blib-subject-chip:hover,
.blib-filter-pill:hover {
  border-color: #CBD5E1;
  background: #F1F5F9;
}

.blib-grade-chip.is-active {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.blib-subject-chip.is-active {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #3B82F6;
}

.blib-filter-pill.is-active {
  background: #ECFDF5;
  color: #047857;
  border-color: #10B981;
}

.blib-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.blib-search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.blib-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 34px 9px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: #1E293B;
  background: #F8FAFC;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.blib-search-input:focus {
  border-color: #3B82F6;
  background: #FFFFFF;
}

.blib-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #E2E8F0;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blib-recall-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.blib-recall-toggle.is-active {
  background: #EEF2FF;
  border-color: #6366F1;
  color: #3730A3;
}

.blib-recall-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94A3B8;
}

.blib-recall-toggle.is-active .blib-recall-dot {
  background: #4F46E5;
}

/* DANH SÁCH CHỦ ĐỀ & BÀI HỌC */
.blib-units-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blib-unit-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blib-unit-card.is-mastery-unit {
  border-color: #FCD34D;
  background: linear-gradient(180deg, #FFFDF7 0%, #FFFFFF 56px);
}

.blib-unit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 15px 18px;
  cursor: pointer;
  user-select: none;
}

.blib-unit-header:hover {
  background: rgba(248, 250, 252, 0.75);
}

.blib-unit-info {
  flex: 1 1 240px;
  min-width: min(240px, 100%);
}

.blib-unit-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.blib-unit-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
}

.blib-unit-tag.is-mastery {
  background: #FEF3C7;
  color: #B45309;
}

.blib-unit-progress-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 9px;
  border-radius: 999px;
}

.blib-unit-title {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
}

.blib-unit-subtitle {
  margin: 0;
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
}

.blib-unit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.blib-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.blib-btn-ghost:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}

.blib-unit-chevron {
  font-size: 15px;
  color: #64748B;
  transition: transform 0.2s ease;
  width: 24px;
  text-align: center;
}

.blib-unit-card.is-expanded .blib-unit-chevron {
  transform: rotate(180deg);
}

.blib-lessons-panel {
  border-top: 1px solid #F1F5F9;
  padding: 8px 14px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  background: #FAFBFD;
}

.blib-unit-card.is-expanded .blib-lessons-panel {
  display: flex;
}

.blib-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 11px 14px;
  transition: border-color 0.15s ease;
}

.blib-lesson-row:hover {
  border-color: #93C5FD;
}

.blib-lesson-row.is-done {
  border-color: #A7F3D0;
  background: #F8FFFC;
}

.blib-lesson-row.is-boss {
  border-color: #FDE68A;
  background: #FFFDF5;
}

.blib-lesson-left {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  flex: 1 1 0%;
  min-width: 0;
}

.blib-lesson-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blib-lesson-row.is-done .blib-lesson-num {
  background: #D1FAE5;
  color: #047857;
}

.blib-lesson-row.is-boss .blib-lesson-num {
  background: #FEF3C7;
  color: #B45309;
}

.blib-lesson-text {
  min-width: 0;
}

.blib-lesson-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
  line-height: 1.35;
}

.blib-lesson-desc {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.45;
}

.blib-lesson-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.blib-btn-theory {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.blib-btn-theory:hover {
  background: #FEF3C7;
}

.blib-btn-learn {
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.blib-btn-learn:hover {
  background: #059669;
}

.blib-btn-fast {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.blib-btn-fast:hover {
  background: #E2E8F0;
}

.blib-empty-box {
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 18px;
  color: #64748B;
}

/* ==========================================================================
   2. THẺ "KIẾN THỨC CẦN NHỚ & VÍ DỤ MẪU" TRƯỚC & TRONG BÀI HỌC (.bls-theory-*)
   ========================================================================== */
.bls-theory-stage-wrap {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 4px 20px;
  box-sizing: border-box;
}

.bls-theory-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  font-family: 'Be Vietnam Pro', 'Nunito', system-ui, sans-serif;
  color: #1E293B;
}

.bls-theory-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bls-theory-top > div:first-child {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
}

.bls-theory-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.bls-theory-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
}

.bls-theory-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bls-theory-tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  border: 1.5px solid #F59E0B;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bls-theory-tts-btn.is-speaking {
  background: #F59E0B;
  color: #FFFFFF;
}

.bls-theory-skip-top {
  background: #F8FAFC;
  color: #475569;
  border: 1.5px solid #CBD5E1;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.bls-theory-skip-top:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.bls-theory-goal {
  background: #F8FAFC;
  border-left: 4px solid #3B82F6;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 16px;
}

.bls-theory-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 16px;
  margin-bottom: 18px;
}

.bls-theory-box {
  background: #FFFDF9;
  border: 1.5px solid #FDE68A;
  border-radius: 18px;
  padding: 16px 18px;
}

.bls-theory-box.is-example {
  background: #F0FDF4;
  border-color: #A7F3D0;
}

.bls-theory-box-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 800;
  color: #92400E;
  margin: 0 0 10px;
}

.bls-theory-box.is-example .bls-theory-box-title {
  color: #065F46;
}

.bls-theory-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bls-theory-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.8px;
  line-height: 1.5;
  color: #1E293B;
  font-weight: 600;
}

.bls-point-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #B45309;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bls-ex-problem {
  background: #FFFFFF;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.8px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.5;
  margin-bottom: 10px;
}

.bls-ex-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13.2px;
  color: #334155;
  line-height: 1.5;
}

.bls-ex-answer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DCFCE7;
  color: #166534;
  font-size: 13.2px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.bls-ex-tip {
  font-size: 12.5px;
  color: #475569;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  padding: 7px 10px;
  line-height: 1.45;
  font-weight: 600;
}

.bls-theory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.bls-theory-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.bls-btn-start-practice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #15803D;
}

.bls-btn-start-practice:hover {
  filter: brightness(1.03);
}

.bls-btn-start-practice:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #15803D;
}

/* MODAL XEM LẠI KIẾN THỨC MỌI LÚC (TRONG BÀI HỌC HOẶC TRÊN KHO BÀI HỌC) */
.bls-theory-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.bls-theory-modal-dialog {
  max-width: 820px;
  width: 100%;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border-radius: 24px;
}

/* DARK & SEPIA THEME SUPPORT */
[data-theme="dark"] .blib-page,
[data-theme="dark"] .bls-theory-card {
  color: #E2E8F0;
}

[data-theme="dark"] .blib-hero-card,
[data-theme="dark"] .blib-toolbar,
[data-theme="dark"] .blib-unit-card,
[data-theme="dark"] .blib-next-card,
[data-theme="dark"] .blib-lesson-row,
[data-theme="dark"] .bls-theory-card {
  background: #1E293B;
  border-color: #334155;
}

[data-theme="dark"] .blib-hero-title,
[data-theme="dark"] .blib-next-title,
[data-theme="dark"] .blib-unit-title,
[data-theme="dark"] .blib-lesson-title,
[data-theme="dark"] .bls-theory-heading,
[data-theme="dark"] .bls-ex-problem {
  color: #F8FAFC;
}

[data-theme="dark"] .blib-hero-desc,
[data-theme="dark"] .blib-unit-subtitle,
[data-theme="dark"] .blib-lesson-desc,
[data-theme="dark"] .bls-theory-goal,
[data-theme="dark"] .bls-ex-steps,
[data-theme="dark"] .bls-ex-tip {
  color: #CBD5E1;
}

[data-theme="dark"] .bls-theory-box,
[data-theme="dark"] .bls-theory-box.is-example,
[data-theme="dark"] .bls-theory-goal,
[data-theme="dark"] .bls-ex-problem,
[data-theme="dark"] .blib-lessons-panel {
  background: #0F172A;
  border-color: #334155;
}

[data-theme="dark"] .bls-theory-points li {
  color: #E2E8F0;
}

/* MOBILE RESPONSIVE (320px - 768px) */
@media (max-width: 768px) {
  .blib-hero-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .blib-hero-main {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .blib-next-card {
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .bls-theory-grid {
    grid-template-columns: 1fr;
  }

  .bls-theory-card {
    padding: 16px;
    border-radius: 18px;
  }

  .bls-theory-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bls-theory-top > div:first-child {
    flex: 1 1 auto;
    width: 100%;
  }

  .blib-unit-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 13px 14px;
  }

  .blib-unit-info {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .blib-unit-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #E2E8F0;
    box-sizing: border-box;
  }

  [data-theme="dark"] .blib-unit-actions {
    border-top-color: #334155;
  }

  .blib-unit-chevron {
    margin-left: auto;
  }

  .blib-lesson-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .blib-lesson-left {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .blib-lesson-btns {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .blib-lesson-btns > button {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .bls-theory-cta-group {
    width: 100%;
    justify-content: stretch;
  }

  .bls-btn-start-practice {
    width: 100%;
  }

  .bls-theory-modal-backdrop {
    padding: 10px;
  }
}

@media (max-width: 420px) {
  .blib-page {
    padding: 14px 12px 88px;
  }

  .blib-lessons-panel {
    padding: 8px 10px 12px;
  }

  .blib-lesson-row {
    padding: 10px 11px;
  }

  .blib-btn-theory,
  .blib-btn-learn,
  .blib-btn-fast {
    padding: 6px 8px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   3. NÚT "BÍ KÍP" TRÊN SÂN KHẤU CHƯƠNG (.bv3-bikip-btn) & HỘP THOẠI BÍ KÍP SƯ PHẠM
      Đồng bộ ngôn ngữ Glassmorphic Warm-Ivory với thanh chỉ số (.bv3-stat-pill)
      và thanh tiến độ (.bv3-progress-strip) — gọn tinh tế, không che tranh vẽ!
   ========================================================================== */
.beelio-v3-stage .bv3-bikip-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 249, 235, 0.94) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1.5px solid rgba(243, 217, 153, 0.96);
  box-shadow:
    0 2px 0 rgba(212, 175, 95, 0.82),
    0 6px 16px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  color: #78350F;
  font-family: 'Be Vietnam Pro', 'Nunito', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, box-shadow 0.16s ease;
}

.beelio-v3-stage .bv3-bikip-btn > .beelio-svg-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid rgba(245, 158, 11, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beelio-v3-stage .bv3-bikip-btn > .beelio-svg-icon svg {
  width: 13.5px !important;
  height: 13.5px !important;
  stroke-width: 2.25;
}

.beelio-v3-stage .bv3-bikip-btn::after {
  content: '›';
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #B45309;
  opacity: 0.72;
  margin-left: -1px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.beelio-v3-stage .bv3-bikip-btn:hover {
  filter: none;
  transform: translateY(-1.5px);
  border-color: #F59E0B;
  box-shadow:
    0 3px 0 rgba(202, 158, 70, 0.9),
    0 10px 20px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 #FFFFFF;
}

.beelio-v3-stage .bv3-bikip-btn:hover::after {
  transform: translateX(1.5px);
  opacity: 1;
}

.beelio-v3-stage .bv3-bikip-btn:active {
  transform: translateY(1.5px);
  box-shadow:
    0 1px 0 rgba(202, 158, 70, 0.85),
    0 3px 8px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .beelio-v3-stage .bv3-bikip-btn {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, rgba(15, 23, 42, 0.92) 100%);
  border-color: rgba(251, 191, 36, 0.45);
  color: #FEF3C7;
  box-shadow:
    0 2px 0 rgba(120, 53, 15, 0.75),
    0 6px 16px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .beelio-v3-stage .bv3-bikip-btn::after {
  color: #FBBF24;
}

@media (max-width: 680px) {
  .beelio-v3-stage .bv3-bikip-btn {
    right: 9px;
    bottom: 9px;
    padding: 3.5px 9.5px 3.5px 4px;
    gap: 5.5px;
    font-size: 11.5px;
  }

  .beelio-v3-stage .bv3-bikip-btn > .beelio-svg-icon {
    width: 21px !important;
    height: 21px !important;
  }

  .beelio-v3-stage .bv3-bikip-btn > .beelio-svg-icon svg {
    width: 12px !important;
    height: 12px !important;
  }

  .beelio-v3-stage .bv3-bikip-btn::after {
    font-size: 13.5px;
  }
}

/* HỘP THOẠI BÍ KÍP SƯ PHẠM CHUYÊN NGHIỆP (#beelio-guidebook-modal & #g4-guidebook-modal) */
#beelio-guidebook-modal .beelio-guidebook-card,
#g4-guidebook-modal .beelio-guidebook-card {
  max-width: 520px;
  width: 100%;
  border-radius: 22px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 20px 22px;
  font-family: 'Be Vietnam Pro', 'Nunito', system-ui, sans-serif;
  box-sizing: border-box;
}

#beelio-guidebook-modal .guidebook-header,
#g4-guidebook-modal .guidebook-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
}

#beelio-guidebook-modal .gb-title-group,
#g4-guidebook-modal .gb-title-group {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.gb-pro-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #B45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.gb-pro-header-copy {
  min-width: 0;
}

.gb-pro-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #B45309;
  margin-bottom: 3px;
}

#beelio-guidebook-modal .gb-title-group h3,
#g4-guidebook-modal .gb-title-group h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.35;
}

.gb-pro-subtitle {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  line-height: 1.48;
  background: #F8FAFC;
  border-left: 3.5px solid #3B82F6;
  border-radius: 8px;
  padding: 8px 11px;
}

.gb-pro-rules-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gb-pro-rule-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #FFFDF7;
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 11px 13px;
}

.gb-pro-rule-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #FEF3C7;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #B45309;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.gb-pro-rule-text {
  font-size: 13.8px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.5;
  min-width: 0;
}

#beelio-guidebook-modal .guidebook-footer,
#g4-guidebook-modal .guidebook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.gb-pro-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F8FAFC;
  color: #334155;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.gb-pro-btn-secondary:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

#beelio-guidebook-modal #btn-gb-close-action,
#g4-guidebook-modal #btn-g4-gb-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 9.5px 18px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 3px 0 #047857 !important;
  cursor: pointer;
  margin-left: auto;
  width: auto !important;
}

#beelio-guidebook-modal #btn-gb-close-action:active,
#g4-guidebook-modal #btn-g4-gb-dismiss:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #047857 !important;
}

[data-theme="dark"] #beelio-guidebook-modal .beelio-guidebook-card,
[data-theme="dark"] #g4-guidebook-modal .beelio-guidebook-card {
  background: #1E293B;
  border-color: #334155;
}

[data-theme="dark"] #beelio-guidebook-modal .guidebook-header,
[data-theme="dark"] #g4-guidebook-modal .guidebook-header,
[data-theme="dark"] #beelio-guidebook-modal .guidebook-footer,
[data-theme="dark"] #g4-guidebook-modal .guidebook-footer {
  border-color: #334155;
}

[data-theme="dark"] #beelio-guidebook-modal .gb-title-group h3,
[data-theme="dark"] #g4-guidebook-modal .gb-title-group h3 {
  color: #F8FAFC;
}

[data-theme="dark"] .gb-pro-subtitle,
[data-theme="dark"] .gb-pro-rule-card {
  background: #0F172A;
  border-color: #334155;
  color: #E2E8F0;
}

[data-theme="dark"] .gb-pro-rule-text {
  color: #E2E8F0;
}

[data-theme="dark"] .gb-pro-btn-secondary {
  background: #0F172A;
  border-color: #475569;
  color: #E2E8F0;
}

@media (max-width: 520px) {
  #beelio-guidebook-modal .beelio-guidebook-card,
  #g4-guidebook-modal .beelio-guidebook-card {
    padding: 16px;
    border-radius: 18px;
  }

  #beelio-guidebook-modal .guidebook-footer,
  #g4-guidebook-modal .guidebook-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .gb-pro-btn-secondary,
  #beelio-guidebook-modal #btn-gb-close-action,
  #g4-guidebook-modal #btn-g4-gb-dismiss {
    width: 100% !important;
    margin-left: 0;
  }
}
