/**
 * BEElio V3.0 — Bảng Nhiệm Vụ Bài Học Hàng Ngày & Hàng Tuần (Mission Board Styles)
 * Thiết kế thân thiện trẻ 5–11 tuổi (Tiền Tiểu học -> Lớp 5), nút bấm lớn >= 48px,
 * hỗ trợ Thanh Nhiệm Vụ Gọn trên Bản Đồ Phiêu Lưu, Dẫn Đường Chiến Thắng và In Phiếu Tuần A4.
 */

.mission-board-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 16px 96px;
  font-family: 'Nunito', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: #1E293B;
}

/* 1. BANNER VINH DANH ĐẦU TUẦN (WEEKLY HONOR SUMMARY) */
.mb-honor-banner {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 2px solid #34D399;
  border-radius: 22px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.mb-honor-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.mb-honor-trophy {
  font-size: 38px;
  line-height: 1;
  flex-shrink: 0;
}

.mb-honor-title {
  font-size: 16px;
  font-weight: 900;
  color: #065F46;
  margin: 0 0 4px;
}

.mb-honor-desc {
  font-size: 13.5px;
  font-weight: 700;
  color: #047857;
  margin: 0;
  line-height: 1.45;
}

/* 2. TOAST THÔNG BÁO NHANH */
.mb-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  animation: mbSlideDown 0.22s ease-out;
}

.mb-toast.is-ok {
  background: #ECFDF5;
  border: 2px solid #34D399;
  color: #065F46;
}

.mb-toast.is-warn {
  background: #FFFBEB;
  border: 2px solid #FBBF24;
  color: #92400E;
}

.mb-toast-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  padding: 4px 8px;
}

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

/* 3. HERO HEADER BÁM SÁT LỊCH NĂM HỌC BỘ GD&ĐT */
.mb-hero-card {
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF3C7 100%);
  border: 2.5px solid #F59E0B;
  border-radius: 26px;
  padding: 20px 22px;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.14);
  margin-bottom: 16px;
}

.mb-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mb-hero-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.mb-hero-mascot {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-phase-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.mb-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #92400E;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.mb-phase-pill.is-exam {
  background: linear-gradient(135deg, #DC2626, #EA580C);
}

.mb-phase-pill.is-summer {
  background: linear-gradient(135deg, #0284C7, #0D9488);
}

.mb-grade-pill {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #B45309;
  border: 1.5px solid #FCD34D;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.mb-hero-heading {
  font-size: 22px;
  font-weight: 900;
  color: #1E293B;
  margin: 2px 0 4px;
  line-height: 1.25;
}

.mb-hero-sub {
  font-size: 13.5px;
  font-weight: 700;
  color: #78350F;
  margin: 0;
  line-height: 1.45;
}

.mb-hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #FDE68A;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
}

.mb-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(217, 119, 6, 0.28);
}

.mb-tool-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mb-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #1E293B;
  border: 1.5px solid #CBD5E1;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.mb-tool-btn:hover {
  border-color: #F59E0B;
  background: #FFFBEB;
  transform: translateY(-1px);
}

.mb-tool-btn.is-highlight {
  border-color: #3B82F6;
  background: #EFF6FF;
  color: #1D4ED8;
}

/* 4. THANH CHUYỂN 2 TAB LỚN (HÔM NAY / BẢN ĐỒ TUẦN) */
.mb-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: #F1F5F9;
  padding: 6px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.mb-subtab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: none;
  border-radius: 15px;
  background: transparent;
  color: #475569;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 8px 12px;
}

.mb-subtab-btn.active {
  background: #FFFFFF;
  color: #1E293B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.mb-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  background: #FEF3C7;
  color: #B45309;
}

.mb-tab-badge.is-ready {
  background: #DCFCE7;
  color: #15803D;
}

/* 5. DANH SÁCH THẺ NHIỆM VỤ HÔM NAY */
.mb-daily-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mb-daily-title {
  font-size: 18px;
  font-weight: 900;
  color: #1E293B;
  margin: 0;
}

.mb-reroll-pill {
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 5px 12px;
}

.mb-quests-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mb-quest-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FFFFFF;
  border: 2.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.mb-quest-card:hover {
  border-color: #CBD5E1;
}

.mb-quest-card.is-next-up {
  border-color: #F59E0B;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.14);
}

.mb-quest-card.is-done {
  border-color: #86EFAC;
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
}

.mb-quest-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.mb-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #FEF3C7;
  border: 2px solid #FCD34D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.mb-quest-card.is-done .mb-step-circle {
  background: #DCFCE7;
  border-color: #4ADE80;
}

.mb-quest-body {
  flex: 1;
  min-width: 0;
}

.mb-quest-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.mb-subj-chip {
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
}

.mb-chap-chip {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
}

.mb-tag-chip {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
}

.mb-quest-title {
  font-size: 17px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 4px;
  line-height: 1.3;
}

.mb-quest-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  margin: 0 0 8px;
  line-height: 1.45;
}

.mb-quest-rewards-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mb-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 900;
  color: #B45309;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 4px 10px;
  border-radius: 999px;
}

.mb-duration-pill {
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
}

.mb-quest-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mb-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mb-icon-btn:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

.mb-launch-btn {
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #58CC02 0%, #16A34A 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #15803D;
  transition: transform 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
}

.mb-launch-btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

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

.mb-launch-btn.is-done {
  background: #DCFCE7;
  color: #166534;
  border: 1.5px solid #86EFAC;
  box-shadow: none;
  font-size: 13.5px;
}

/* 6. RƯƠNG MẬT BÁU VẬT HẰNG NGÀY */
.mb-daily-chest-card {
  margin-top: 18px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2.5px solid #F59E0B;
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mb-daily-chest-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.mb-chest-big-icon {
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
}

.mb-chest-big-icon.is-claimable {
  animation: mbChestBounce 1.2s infinite ease-in-out;
}

@keyframes mbChestBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08); }
}

.mb-chest-title {
  font-size: 17px;
  font-weight: 900;
  color: #92400E;
  margin: 0 0 4px;
}

.mb-chest-desc {
  font-size: 13.5px;
  font-weight: 700;
  color: #78350F;
  margin: 0 0 8px;
  line-height: 1.45;
}

.mb-progress-track {
  width: 100%;
  max-width: 340px;
  height: 11px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #FCD34D;
  border-radius: 999px;
  overflow: hidden;
}

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

.mb-amber-cta-btn {
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #C2410C;
  white-space: nowrap;
}

.mb-amber-cta-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Dải xem nhanh Rương Tuần ở cuối Tab Hôm Nay */
.mb-weekly-peek-strip {
  margin-top: 16px;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 7. TAB TUẦN: 3 RƯƠNG MỐC TUẦN LỄ & 4 TRỤ CỘT & DẢI 7 NGÀY */
.mb-section-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.mb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.mb-section-head h2 {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
  margin: 0;
}

.mb-chests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mb-milestone-card {
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 16px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
}

.mb-milestone-card.is-tier3 {
  background: linear-gradient(180deg, #FFFDF5 0%, #FEF3C7 100%);
  border-color: #FCD34D;
}

.mb-milestone-card.is-claimable {
  border-color: #16A34A;
  background: #F0FDF4;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.14);
}

.mb-milestone-card.is-claimed {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.mb-ms-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mb-ms-icon {
  font-size: 32px;
}

.mb-ms-req {
  font-size: 12px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
}

.mb-ms-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #0F172A;
  margin: 4px 0 2px;
}

.mb-ms-reward {
  font-size: 13px;
  font-weight: 800;
  color: #B45309;
}

.mb-parent-goal-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px dashed #EC4899;
  font-size: 12.5px;
  font-weight: 800;
  color: #BE185D;
}

/* 4 Trụ cột môn học trong tuần */
.mb-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mb-pillar-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
}

.mb-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

/* Dải 7 ngày Thứ 2 -> Chủ Nhật */
.mb-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.mb-day-col {
  border: 2px solid #E2E8F0;
  border-radius: 18px;
  padding: 12px 10px;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mb-day-col.is-today {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.14);
}

.mb-day-col.is-studied {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.mb-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 6px;
}

.mb-day-name {
  font-size: 13px;
  font-weight: 900;
  color: #0F172A;
}

.mb-day-date {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748B;
}

.mb-day-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.35;
}

/* Bảng tiến độ bài trên lớp theo từng môn */
.mb-anchors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mb-anchor-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
}

/* 8. MODAL CHỈNH BÀI TRÊN LỚP & GÓC BỐ MẸ GIAO BÀI */
.mb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mb-modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border: 2.5px solid #F59E0B;
  border-radius: 26px;
  padding: 22px 24px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24);
}

.mb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mb-modal-head h3 {
  font-size: 19px;
  font-weight: 900;
  margin: 0;
  color: #0F172A;
}

.mb-form-group {
  margin-bottom: 14px;
}

.mb-form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 6px;
}

.mb-select,
.mb-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  background: #FFFFFF;
  box-sizing: border-box;
}

.mb-subj-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mb-subj-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* 9. THANH NHIỆM VỤ GỌN TRÊN BẢN ĐỒ PHIÊU LƯU (COMPACT MAP STRIP) */
.mb-map-strip {
  max-width: 920px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #FFFDF7 0%, #FEF3C7 100%);
  border: 2px solid #F59E0B;
  border-radius: 18px;
  padding: 9px 14px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.12);
  font-family: 'Nunito', 'Be Vietnam Pro', system-ui, sans-serif;
}

.mb-map-strip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mb-map-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.mb-map-phase-chip {
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: #92400E;
  color: #FFFFFF;
  white-space: nowrap;
}

.mb-map-progress-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #1E293B;
}

.mb-map-strip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mb-map-mini-btn {
  border: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.mb-map-mini-btn.is-go {
  background: linear-gradient(135deg, #58CC02, #16A34A);
  color: #FFFFFF;
}

.mb-map-mini-btn.is-chest {
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #FFFFFF;
}

.mb-map-mini-btn.is-board {
  background: #FFFFFF;
  color: #92400E;
  border: 1.5px solid #F59E0B;
}

.mb-map-strip-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(217, 119, 6, 0.35);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.mb-map-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #FDE68A;
  border-radius: 13px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #1E293B;
}

.mb-map-drawer-item.is-done {
  border-color: #86EFAC;
  background: #F0FDF4;
}

/* 10. THẺ DẪN ĐƯỜNG PLAYLIST TRÊN MÀN HÌNH CHIẾN THẮNG / KẾT QUẢ THI */
.mb-guided-next-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 12px;
  padding: 13px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 2px solid #60A5FA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-sizing: border-box;
}

.mb-guided-next-card.is-chest {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #F59E0B;
}

.mb-guided-next-title {
  font-size: 14px;
  font-weight: 900;
  color: #1E3A8A;
  margin: 0 0 2px;
}

.mb-guided-next-card.is-chest .mb-guided-next-title {
  color: #92400E;
}

.mb-guided-next-sub {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.mb-guided-next-btn {
  border: none;
  border-radius: 13px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  white-space: nowrap;
  flex-shrink: 0;
}

.mb-guided-next-card.is-chest .mb-guided-next-btn {
  background: linear-gradient(135deg, #F59E0B, #EA580C);
}

/* 11. PHIẾU IN LỊCH TUẦN A4 (ẨN TRÊN MÀN HÌNH, HIỆN SẮC NÉT KHI IN) */
.mb-print-sheet {
  display: none;
}

@media (max-width: 860px) {
  .mb-chests-grid {
    grid-template-columns: 1fr;
  }
  .mb-week-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mb-pillars-grid,
  .mb-anchors-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mb-quest-card {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }
  .mb-quest-right {
    justify-content: flex-end;
    width: 100%;
  }
  .mb-launch-btn {
    flex: 1;
  }
  .mb-week-strip {
    grid-template-columns: 1fr;
  }
}

@media print {
  body:has(.mission-board-shell) .main-site-header,
  body:has(.mission-board-shell) .mobile-bottom-nav,
  body:has(.mission-board-shell) .mb-screen-only,
  body:has(.mission-board-shell) .mb-modal-backdrop {
    display: none !important;
  }

  body:has(.mission-board-shell) .main-content-view,
  body:has(.mission-board-shell) .mission-board-shell {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
  }

  .mb-print-sheet {
    display: block !important;
    color: #000000 !important;
    font-family: 'Be Vietnam Pro', 'Nunito', sans-serif;
    padding: 8mm 10mm;
  }

  .mb-print-header {
    border-bottom: 2px solid #0F172A;
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .mb-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 12px;
  }

  .mb-print-table th,
  .mb-print-table td {
    border: 1px solid #334155;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
  }

  .mb-print-table th {
    background: #F1F5F9 !important;
    font-weight: 800;
  }

  .mb-print-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 10px;
    font-size: 12px;
  }

  .mb-print-box {
    border: 1.5px solid #334155;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 62px;
  }
}
