:root {
  /* Tone màu thương hiệu CLB Yêu Ca Hát Thu Hà: Xanh Navy đậm + Tím + Vàng Gold */
  --navy-deep: #091128;
  --navy-main: #101C42;
  --navy-card: #162454;
  --purple-main: #4A195E;
  --purple-gradient: linear-gradient(135deg, #6B1D57 0%, #101C42 52%, #0A148A 100%);
  --gold-main: #F5C542;
  --gold-bright: #FFD700;
  --text-white: #FFFFFF;
  --text-cream: #F8FAFC;

  /* Quy ước màu nút hành động chính theo Brief kỹ thuật */
  --btn-watch-green: #15803D;
  --btn-watch-green-hover: #166534;
  --btn-buy-orange: #EA580C;
  --btn-buy-orange-hover: #C2410C;
  --btn-renew-darkorange: #B91C1C;

  /* Quy chuẩn kích thước chữ tối thiểu cho người lớn tuổi */
  --base-font-size: 18px;
  --lesson-title-size: 24px;
  --btn-font-size: 19px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

body.font-large {
  --base-font-size: 20px;
  --lesson-title-size: 26px;
  --btn-font-size: 21px;
}

body.font-xlarge {
  --base-font-size: 22px;
  --lesson-title-size: 28px;
  --btn-font-size: 23px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: var(--base-font-size);
  line-height: 1.65;
  background-color: var(--navy-deep);
  color: var(--text-white);
  overflow-x: hidden;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-left {
  text-align: left !important;
}

.btn-full {
  width: 100%;
}

/* =========================================================
   1. THANH TIỆN ÍCH CHỈNH CỠ CHỮ (SENIOR UTILITY BAR)
   ========================================================= */
.senior-utility-bar {
  background: #060B19;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
  padding: 10px 0;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.utility-hotline {
  font-weight: 700;
  color: var(--gold-main);
}

.utility-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.utility-label {
  font-weight: 600;
}

.font-btn {
  background: var(--navy-card);
  color: var(--text-white);
  border: 2px solid var(--gold-main);
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-btn.active,
.font-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
}

/* =========================================================
   2. HEADER & MENU LỒNG LOGO CLB YÊU CA HÁT THU HÀ
   ========================================================= */
.site-header {
  background: var(--purple-gradient);
  border-bottom: 3px solid var(--gold-main);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 14px;
  position: relative;
}

/* Cụm Logo xếp 2 dòng gọn gàng để không đẩy Menu rớt dòng */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(9, 17, 40, 0.55);
  border: 2px solid rgba(245, 197, 66, 0.75);
  flex-shrink: 0;
}

.logo-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FB565A 0%, #8A3FFC 100%);
  border: 2px solid #FFFFFF;
  flex-shrink: 0;
}

.logo-icons svg {
  width: 30px;
  height: 30px;
  fill: #FFFFFF;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-title-glow {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 16px rgba(245, 197, 66, 0.75);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-main);
  line-height: 1.3;
  margin-top: 2px;
}

/* 1. Khung tổng Header chia thành 2 hàng dọc */
.header-inner {
  display: flex;
  flex-direction: column;
  padding: 12px 0 16px;
  gap: 12px;
}

/* 2. Hàng trên chứa Logo và các nút bên phải */
.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

/* 3. Hàng dưới: Thanh Menu nằm ở dưới */
.primary-nav-wrapper {
  width: 100%;
  border-top: 1px solid rgba(245, 197, 66, 0.25);
  padding-top: 10px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
}

.nav-link,
.main-nav li a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.main-nav li.current-menu-item a {
  background: rgba(245, 197, 66, 0.18);
  border-color: var(--gold-main);
  color: var(--gold-main);
}

/* Cụm nút bên phải: TÀI KHOẢN + ☰ DANH MỤC đồng bộ 100% */
.header-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-login-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--gold-main);
  color: var(--navy-deep);
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 12px;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 197, 66, 0.35);
  transition: all 0.2s ease;
}

.btn-login-header:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

/* Nút ☰ DANH MỤC: Thiết kế đồng bộ chiều cao, bo góc, viền Vàng Gold với nút Tài khoản */
.btn-mobile-menu {
  display: none; /* Ẩn trên màn hình lớn khi menu ngang đã hiển thị */
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-main);
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid var(--gold-main);
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-mobile-menu:hover,
.btn-mobile-menu.is-active {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.menu-icon-bars {
  font-size: 20px;
  line-height: 1;
}

/* =========================================================
   3. HỆ THỐNG NÚT HÀNH ĐỘNG CHÍNH (CHỮ >= 18PX, VÙNG CHẠM LỚN)
   ========================================================= */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 26px;
  font-size: var(--btn-font-size);
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.btn-watch {
  background-color: var(--btn-watch-green);
  color: #FFFFFF;
}
.btn-watch:hover {
  background-color: var(--btn-watch-green-hover);
}

.btn-buy {
  background-color: var(--btn-buy-orange);
  color: #FFFFFF;
}
.btn-buy:hover {
  background-color: var(--btn-buy-orange-hover);
}

.btn-renew {
  background-color: var(--btn-renew-darkorange);
  color: #FFFFFF;
}

.btn-submit-song {
  background: linear-gradient(135deg, #F5C542 0%, #EA580C 100%);
  color: #091128;
  border-color: #FFFFFF;
}

/* =========================================================
   4. HERO SECTION & KHUNG GIẢNG VIÊN THU HÀ
   ========================================================= */
.hero-section {
  background:
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 45%),
    linear-gradient(180deg, #121E4A 0%, #091128 100%);
  padding: 52px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.3);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.2);
  border: 2px solid var(--gold-main);
  color: var(--gold-main);
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--gold-main);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero-desc {
  font-size: calc(var(--base-font-size) + 2px);
  color: var(--text-cream);
  margin-bottom: 24px;
}

.hero-highlights {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 12px;
}

.hero-highlights li {
  background: rgba(22, 36, 84, 0.85);
  border-left: 5px solid var(--gold-main);
  padding: 14px 18px;
  border-radius: 10px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.teacher-card {
  background: linear-gradient(160deg, #1E295E 0%, #3B1654 100%);
  border: 3px solid var(--gold-main);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.teacher-avatar-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FB565A 0%, #8A3FFC 100%);
  border: 4px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-avatar-box svg {
  width: 68px;
  height: 68px;
  fill: #FFFFFF;
}

.teacher-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.teacher-role {
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 14px;
}

.teacher-quote {
  color: var(--text-cream);
  margin-bottom: 18px;
}

.teacher-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  background: rgba(9, 17, 40, 0.65);
  border: 1px solid rgba(245, 197, 66, 0.45);
  padding: 14px 10px;
  border-radius: 12px;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-main);
  display: block;
}

.stat-label {
  font-size: 16px;
  color: var(--text-cream);
}

/* =========================================================
   5. THƯ VIỆN BÀI HỌC & BỘ LỌC TÌM KIẾM
   ========================================================= */
.section-block {
  padding: 60px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.2);
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle,
.section-desc-text {
  color: var(--text-cream);
}

.subsection-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-main);
  margin: 28px 0 18px;
  line-height: 1.35;
}

.library-search-box {
  background: var(--navy-card);
  border: 3px solid var(--gold-main);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}

.search-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr auto;
  gap: 16px;
  margin-bottom: 18px;
}

.input-large,
.select-large {
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  font-size: var(--base-font-size);
  font-family: inherit;
  font-weight: 600;
  color: #091128;
  background: #FFFFFF;
  border: 3px solid transparent;
  border-radius: 12px;
}

.input-large:focus,
.select-large:focus {
  outline: none;
  border-color: var(--gold-main);
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genre-pill {
  min-height: 50px;
  background: var(--navy-deep);
  color: var(--text-white);
  border: 2px solid rgba(245, 197, 66, 0.55);
  padding: 10px 20px;
  border-radius: 99px;
  font-family: inherit;
  font-size: var(--base-font-size);
  font-weight: 700;
  cursor: pointer;
}

.genre-pill.active,
.genre-pill:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lesson-card {
  background: linear-gradient(180deg, #162454 0%, #0F1A3F 100%);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.lesson-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lesson-number {
  background: var(--purple-main);
  border: 2px solid var(--gold-main);
  color: var(--gold-main);
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
}

.lesson-genre {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.lesson-title {
  font-size: var(--lesson-title-size);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 12px 0;
}

.lesson-details {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-cream);
}

.access-status-badge {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 14px;
  width: 100%;
}

.status-valid {
  background: rgba(21, 128, 61, 0.25);
  border: 2px solid #4ADE80;
  color: #86EFAC;
}

.status-unowned {
  background: rgba(234, 88, 12, 0.2);
  border: 2px solid #FB923C;
  color: #FDBA74;
}

.status-expired {
  background: rgba(185, 28, 28, 0.25);
  border: 2px solid #F87171;
  color: #FCA5A5;
}

.section-bottom-cta {
  text-align: center;
  margin-top: 36px;
}

/* =========================================================
   6. GÓI KHÓA HỌC & KHU VỰC GỬI BÀI SỬA
   ========================================================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.package-card {
  background: var(--navy-card);
  border: 2px solid rgba(245, 197, 66, 0.5);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.package-card.popular {
  background: linear-gradient(180deg, #2D1950 0%, #162454 100%);
  border: 3px solid var(--gold-main);
}

.popular-tag {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--gold-main);
  color: var(--navy-deep);
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 15px;
}

.pkg-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.pkg-price {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}

.pkg-features {
  list-style: none;
  display: grid;
  gap: 10px;
}

.submit-song-highlight {
  background: linear-gradient(135deg, #3B1254 0%, #142252 60%, #0D1840 100%);
  border: 3px solid var(--gold-main);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: center;
}

.fee-rule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: rgba(9, 17, 40, 0.8);
  border-radius: 12px;
  overflow: hidden;
}

.fee-rule-table th,
.fee-rule-table td {
  border: 1px solid rgba(245, 197, 66, 0.45);
  padding: 14px 16px;
  text-align: left;
}

.fee-rule-table th {
  background: rgba(245, 197, 66, 0.22);
  color: var(--gold-main);
  font-weight: 800;
}

.fee-free {
  color: #4ADE80;
  font-weight: 800;
}

.upload-demo-card {
  background: var(--navy-deep);
  border: 3px dashed var(--gold-main);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
}

.upload-card-title {
  font-size: 24px;
  color: var(--gold-main);
  margin-bottom: 12px;
}

.upload-card-desc {
  margin-bottom: 22px;
}

.upload-card-actions {
  display: grid;
  gap: 16px;
}

/* 3 Bước Hướng Dẫn */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--navy-card);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.step-badge {
  display: inline-block;
  background: var(--gold-main);
  color: var(--navy-deep);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.step-title {
  font-size: 23px;
  color: var(--gold-main);
  margin-bottom: 10px;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.site-footer {
  background: #050A18;
  border-top: 3px solid var(--gold-main);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 12px;
}

/* =========================================================
   8. RESPONSIVE CHO LAPTOP NHỎ & MÁY TÍNH BẢNG - TABLET (<= 1180px)
   ========================================================= */
@media (max-width: 1180px) {
  .header-inner {
    flex-wrap: wrap;
  }

  /* Hiển thị nút ☰ DANH MỤC đồng bộ cạnh nút TÀI KHOẢN */
  .btn-mobile-menu {
    display: inline-flex;
  }

  /* Ẩn menu ngang và chuyển thành ngăn kéo xổ xuống khi bấm ☰ DANH MỤC */
  .primary-nav-wrapper {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    order: 3;
    background: rgba(9, 17, 40, 0.98);
    border: 2px solid var(--gold-main);
    border-radius: 14px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  }

  .primary-nav-wrapper.is-open {
    display: block;
    animation: thuhaSlideDown 0.2s ease-out;
  }

  @keyframes thuhaSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-link,
  .main-nav li a {
    width: 100%;
    min-height: 54px;
    font-size: var(--base-font-size);
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 197, 66, 0.35);
  }

  .hero-grid,
  .submit-song-highlight {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Tablet hiển thị 2 cột cân đối */
  .lesson-grid,
  .packages-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .search-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-input-wrap {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   9. RESPONSIVE CHO ĐIỆN THOẠI - MOBILE (<= 768px)
   ========================================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
    .header-inner {
        padding: 12px 16px 16px;
    }
  .utility-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .utility-controls {
    justify-content: center;
  }

  .font-btn {
    flex: 1 1 auto;
    min-height: 48px;
    font-size: 16px;
    padding: 8px 10px;
  }

  /* Trên điện thoại: Logo dòng 1, Nút TÀI KHOẢN & ☰ DANH MỤC chia đôi dòng 2 rất to và đều nhau */
  .brand-logo {
    width: 100%;
    justify-content: center;
  }

  .header-right-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .header-top-row {
    flex-direction: column;
}
  .btn-login-header,
  .btn-mobile-menu {
    width: 100%;
    min-height: 56px;
    font-size: 16px;
    justify-content: center;
    padding: 0;
  }

  .hero-section {
    padding: 36px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 14px;
  }

  .hero-cta-group .btn-action,
  .section-bottom-cta .btn-action {
    width: 100%;
    min-height: 62px;
  }

  .lesson-grid,
  .packages-grid,
  .steps-grid,
  .footer-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .genre-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .genre-pill {
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
  }

  .genre-pill:first-child {
    grid-column: 1 / -1;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-title {
    font-size: 25px;
  }

  .submit-song-highlight {
    padding: 22px 18px;
  }

  /* Bảng phí sửa bài tự chuyển sang thẻ dọc dễ nhìn trên điện thoại */
  .fee-rule-table thead {
    display: none;
  }

  .fee-rule-table,
  .fee-rule-table tbody,
  .fee-rule-table tr,
  .fee-rule-table td {
    display: block;
    width: 100%;
  }

  .fee-rule-table tr {
    margin-bottom: 14px;
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    overflow: hidden;
  }

  .fee-rule-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
    border: none;
    border-bottom: 1px solid rgba(245, 197, 66, 0.3);
  }

  .fee-rule-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--gold-main);
    text-align: left;
  }
}

@media (max-width: 480px) {
  .teacher-stats,
  .genre-pills {
    grid-template-columns: 1fr;
  }

  .lesson-card,
  .package-card,
  .teacher-card,
  .library-search-box {
    padding: 20px 16px;
  }
}
/* =========================================================
   TRANG SỐ 2: THƯ VIỆN TOÀN BỘ BÀI HỌC (template-02-thu-vien.php)
   ========================================================= */
.library-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.library-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.library-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.library-page-desc {
  font-size: calc(var(--base-font-size) + 1px);
  color: var(--text-cream);
}

.student-access-summary {
  background: linear-gradient(160deg, #1E295E 0%, #3B1654 100%);
  border: 3px solid var(--gold-main);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.summary-box-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 14px;
}

.summary-status-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(9, 17, 40, 0.65);
  padding: 10px 14px;
  border-radius: 10px;
}

.dot-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: #22C55E; }
.dot-red { background: #EF4444; }
.dot-gold { background: var(--gold-main); }

/* Khung lọc nâng cao 3 tầng */
.library-advanced-filter {
  display: grid;
  gap: 22px;
}

.filter-label {
  display: block;
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.btn-reset-filter {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 2px solid var(--gold-main);
  min-height: 60px;
  padding: 14px 22px;
}
.btn-reset-filter:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
}

.filter-status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 2px solid rgba(245, 197, 66, 0.25);
}

.status-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-inline-label {
  font-weight: 700;
  color: var(--gold-main);
  margin-right: 4px;
}

.status-pill {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: var(--base-font-size);
  font-weight: 700;
  background: var(--navy-deep);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.status-pill.active,
.status-pill:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.library-result-counter {
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.5);
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--gold-main);
}

/* Nút chọn bài vào gói 5/10/20/30 bài */
.lesson-unowned-actions {
  display: grid;
  gap: 10px;
}

.btn-select-bundle {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-main);
  background: rgba(9, 17, 40, 0.8);
  border: 2px dashed var(--gold-main);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select-bundle:hover,
.btn-select-bundle.is-selected {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-style: solid;
}

/* Khung thông báo không tìm thấy bài học */
.no-lesson-found {
  background: var(--navy-card);
  border: 2px dashed var(--gold-main);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  margin-bottom: 30px;
}

.no-lesson-found h3 {
  font-size: 24px;
  color: var(--gold-main);
  margin-bottom: 10px;
}

.no-lesson-found p {
  margin-bottom: 20px;
}

/* Phân trang chữ lớn cho người cao tuổi */
.library-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
}

.page-numbers-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-btn {
  min-height: 56px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: var(--base-font-size);
  font-weight: 800;
  color: var(--text-white);
  background: var(--navy-card);
  border: 2px solid rgba(245, 197, 66, 0.55);
  border-radius: 12px;
  cursor: pointer;
}

.page-btn.active,
.page-btn:hover:not(:disabled) {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Thanh nổi dưới đáy khi chọn gói nhiều bài */
.bundle-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1E1136 0%, #0E1B4D 100%);
  border-top: 4px solid var(--gold-main);
  padding: 16px 0;
  z-index: 999;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.65);
}

.bundle-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.bundle-count-badge {
  display: inline-block;
  background: var(--gold-main);
  color: var(--navy-deep);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.bundle-selected-names {
  font-size: 17px;
  color: var(--text-cream);
}

.bundle-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive Tablet & Mobile cho Trang Thư Viện */
@media (max-width: 1024px) {
  .library-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .library-page-title {
    font-size: 26px;
  }

  .status-filter-pills {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-inline-label {
    grid-column: 1 / -1;
  }

  .library-result-counter {
    width: 100%;
    text-align: center;
  }

  .library-pagination,
  .page-numbers-group,
  .bundle-bar-actions {
    width: 100%;
    flex-direction: column;
  }

  .page-btn,
  .bundle-bar-actions .btn-action {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 3: CHI TIẾT TỪNG BÀI HỌC (template-03-chi-tiet-bai-hoc.php)
   ========================================================= */

/* Thanh mô phỏng quyền truy cập & tính phí sửa bài */
.access-simulator-bar {
  background: #170F2E;
  border-bottom: 2px dashed var(--gold-main);
  padding: 12px 0;
}

.simulator-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.sim-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sim-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-main);
}

.sim-btn,
.sim-fee-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(245, 197, 66, 0.5);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sim-btn.active,
.sim-fee-btn.active,
.sim-btn:hover,
.sim-fee-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
}

.lesson-page-container {
  padding-top: 28px;
  padding-bottom: 64px;
}

.lesson-breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.lesson-meta-badges {
    margin-bottom: 15px;
}
.btn-back-library {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 20px;
  background: var(--navy-card);
  border: 2px solid var(--gold-main);
  border-radius: 12px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 15px;
}

.btn-back-library:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
}

.lesson-code-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 10px;
}

/* Header Chi tiết bài học */
.single-lesson-header {
  background: linear-gradient(160deg, #162454 0%, #2B1449 100%);
  border: 3px solid var(--gold-main);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 32px;
}

.lesson-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.single-lesson-title {
  font-size: calc(var(--lesson-title-size) + 4px);
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.lesson-quick-jump {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.jump-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.55);
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
}

.jump-btn:hover,
.jump-btn.jump-highlight {
  background: rgba(245, 197, 66, 0.2);
  border-color: var(--gold-main);
  color: var(--gold-main);
}
.lesson-detail-hero {
    padding: 30px 0;
}
/* Khung từng khu vực (Video / PDF / Gửi bài) */
.lesson-section-card {
  background: var(--navy-card);
  border: 3px solid rgba(245, 197, 66, 0.6);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 36px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(245, 197, 66, 0.25);
}

.card-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.card-section-sub {
  color: var(--text-cream);
}

.security-badge-pill {
  background: rgba(9, 17, 40, 0.85);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
}

/* Nút chuyển đổi Phần 1 / Phần 2 của Video */
.video-parts-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.part-tab-btn {
  min-height: 60px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: 800;
  color: var(--text-white);
  background: var(--navy-deep);
  border: 3px solid rgba(245, 197, 66, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.part-tab-btn.active,
.part-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

/* Trình phát Video Bunny.net */
.bunny-player-container {
  background: #040814;
  border: 3px solid var(--gold-main);
  border-radius: 18px;
  overflow: hidden;
    margin: 15px 0;
}

.bunny-video-stage {
  position: relative;
  min-height: 440px;
  background:
    radial-gradient(circle at center, #26174A 0%, #070D21 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}
.bunny-controls-bar {
    padding: 15px;
}

.bunny-controls-bar .control-left {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.bunny-controls-bar .control-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.video-watermark {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
}

.video-center-overlay {
  max-width: 720px;
}

.teacher-mini-badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.2);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  padding: 6px 16px;
  border-radius: 99px;
  font-weight: 700;
  margin-bottom: 14px;
}

.video-part-heading {
  font-size: 25px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.video-safe-note {
  color: var(--text-cream);
  margin-bottom: 24px;
}

.btn-play-large {
  min-height: 66px;
  padding: 18px 36px;
  font-size: 21px;
  box-shadow: 0 0 25px rgba(21, 128, 61, 0.7);
}

.bunny-player-controls {
  background: #0B1430;
  border-top: 2px solid rgba(245, 197, 66, 0.35);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.player-left-controls,
.player-right-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  min-height: 48px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-card);
  border: 2px solid var(--gold-main);
  border-radius: 10px;
  cursor: pointer;
}

.ctrl-btn.ctrl-play {
  background: var(--btn-watch-green);
  border-color: #FFFFFF;
}

.video-time-display {
  font-weight: 800;
  color: var(--gold-main);
  padding: 0 8px;
}

.ctrl-label {
  font-weight: 700;
  color: var(--gold-main);
}

.ctrl-select {
  min-height: 48px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #091128;
  background: #FFFFFF;
  border-radius: 10px;
  border: 2px solid var(--gold-main);
}

/* Trình đọc PDF bản lời nhúng trực tiếp (Chữ tối trên nền kem dịu mắt) */
.pdf-toolbar {
  background: var(--navy-deep);
  border: 2px solid var(--gold-main);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.pdf-zoom-controls,
.pdf-page-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pdf-tool-btn {
  min-height: 50px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-card);
  border: 2px solid rgba(245, 197, 66, 0.65);
  border-radius: 10px;
  cursor: pointer;
}

.pdf-tool-btn.btn-gold-outline,
.pdf-tool-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
}

.pdf-status-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--gold-main);
}

.pdf-viewer-viewport {
  background: #2A3459;
  border: 3px solid var(--gold-main);
  border-radius: 0 0 16px 16px;
  padding: 24px;
  max-height: 680px;
  overflow-y: auto;
  user-select: none;
}

.pdf-sheet-paper {
  background: #FFFDF7;
  color: #111827;
  border-radius: 12px;
  padding: 36px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  font-size: 20px;
  line-height: 1.85;
}

.pdf-legend-box {
  background: #FEF3C7;
  border: 2px solid #D97706;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #78350F;
}

.legend-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-top: 8px;
  font-size: 18px;
}

.pdf-page-header {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: #6B7280;
  border-bottom: 2px solid #E5E7EB;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.pdf-song-title {
  font-size: 28px;
  font-weight: 800;
  color: #1E1B4B;
  text-align: center;
  margin-bottom: 6px;
}

.pdf-song-meta {
  text-align: center;
  font-weight: 600;
  color: #4B5563;
  margin-bottom: 26px;
}

.lyric-section-tag {
  font-weight: 800;
  color: #6B21A8;
  margin-top: 20px;
  margin-bottom: 8px;
}

.lyric-line {
  font-size: 1.15em;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 10px;
}

.lyric-note {
  background: #EFF6FF;
  border-left: 4px solid #2563EB;
  padding: 10px 16px;
  border-radius: 8px;
  color: #1E3A8A;
  margin-bottom: 16px;
}

.sym-breath {
  color: #DC2626;
  font-weight: 800;
  background: #FEE2E2;
  padding: 2px 6px;
  border-radius: 4px;
}

.sym-vibrato {
  color: #047857;
  font-weight: 800;
  background: #D1FAE5;
  padding: 2px 6px;
  border-radius: 4px;
}

.sym-high {
  color: #B45309;
  font-weight: 800;
}

.sym-soft {
  color: #6D28D9;
  font-style: italic;
}

/* Khu vực 3: Gửi bài cho cô sửa & Tự động tính phí */
.submit-song-card {
  background: linear-gradient(155deg, #2D124D 0%, #142254 100%);
  border: 3px solid var(--gold-main);
}

.auto-detected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.meta-chip {
  background: rgba(9, 17, 40, 0.75);
  border: 1px solid rgba(245, 197, 66, 0.45);
  padding: 10px 16px;
  border-radius: 10px;
}

.fee-calculation-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.banner-free {
  background: rgba(21, 128, 61, 0.25);
  border: 2px solid #4ADE80;
}

.banner-paid {
  background: rgba(234, 88, 12, 0.25);
  border: 2px solid #FB923C;
}

.fee-banner-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.fee-banner-text h3 {
  font-size: 21px;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.price-highlight-free {
  color: #4ADE80;
  font-size: 22px;
}

.chat-style-upload-box {
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid rgba(245, 197, 66, 0.55);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 28px;
}

.upload-step-grid {
  display: grid;
  gap: 20px;
}

.btn-pick-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 24px;
  background: rgba(245, 197, 66, 0.12);
  border: 3px dashed var(--gold-main);
  border-radius: 16px;
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-main);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pick-media:hover {
  background: rgba(245, 197, 66, 0.24);
}

.pick-subtext {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-cream);
}

.selected-file-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(21, 128, 61, 0.3);
  border: 2px solid #4ADE80;
  border-radius: 12px;
  font-weight: 700;
}

.btn-remove-file {
  background: var(--btn-renew-darkorange);
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit-xl {
  min-height: 68px;
  font-size: 22px;
}

.submission-result-alert {
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 24px;
  background: rgba(21, 128, 61, 0.3);
  border: 2px solid #4ADE80;
}

.submission-result-alert h3 {
  color: #86EFAC;
  margin-bottom: 8px;
}

/* Lịch sử bài đã nộp & Phản hồi giọng nói của cô Thu Hà */
.history-heading {
  font-size: 22px;
  color: var(--gold-main);
  margin-bottom: 16px;
}

.submission-status-card {
  background: rgba(9, 17, 40, 0.75);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 16px;
  padding: 22px;
}

.sub-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sub-badge {
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 800;
}

.badge-completed {
  background: rgba(21, 128, 61, 0.3);
  border: 1px solid #4ADE80;
  color: #86EFAC;
}

.teacher-feedback-box {
  margin-top: 16px;
  background: rgba(245, 197, 66, 0.1);
  border-left: 5px solid var(--gold-main);
  padding: 18px;
  border-radius: 12px;
}

.feedback-text {
  margin: 10px 0 16px;
}

.feedback-voice-player {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(9, 17, 40, 0.85);
  padding: 14px 18px;
  border-radius: 12px;
}

/* Khung thông báo khi bị Khóa hoặc Ngừng phát hành */
.access-locked-box,
.media-locked-placeholder {
  background: rgba(9, 17, 40, 0.9);
  border: 3px dashed var(--gold-main);
  border-radius: 18px;
  padding: 44px 24px;
  text-align: center;
}

.locked-icon {
  font-size: 54px;
  margin-bottom: 12px;
}

.locked-title {
  font-size: 26px;
  color: var(--gold-main);
  margin-bottom: 12px;
}

.locked-desc {
  max-width: 680px;
  margin: 0 auto 24px;
  color: var(--text-cream);
}

.locked-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Responsive Tablet & Mobile cho Trang Chi Tiết Bài Học */
@media (max-width: 992px) {
  .lesson-quick-jump,
  .video-parts-switcher,
  .legend-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .single-lesson-header,
  .lesson-section-card,
  .chat-style-upload-box {
    padding: 20px 16px;
  }

  .bunny-video-stage {
    min-height: 320px;
    padding: 24px 14px;
  }

  .pdf-viewer-viewport {
    padding: 12px;
  }

  .pdf-sheet-paper {
    padding: 20px 16px;
  }

  .fee-calculation-banner {
    flex-direction: column;
    text-align: center;
  }

  .bunny-player-controls,
  .pdf-toolbar,
  .feedback-voice-player {
    flex-direction: column;
    align-items: stretch;
  }

  .ctrl-btn,
  .ctrl-select,
  .pdf-tool-btn,
  .btn-voice-play {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 4: MUA KHÓA HỌC & BÀI HỌC (template-04-mua-khoa-hoc.php)
   ========================================================= */
.shop-hero-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 45%),
    linear-gradient(180deg, #121E4A 0%, #091128 100%);
  padding: 46px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
  text-align: center;
}

.shop-hero-inner {
  max-width: 850px;
  margin: 0 auto;
}

.shop-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.shop-page-desc {
  font-size: calc(var(--base-font-size) + 1px);
  color: var(--text-cream);
}

.pkg-duration-tag {
  display: inline-block;
  background: rgba(245, 197, 66, 0.2);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  font-size: 15px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.comparison-table th {
  background: rgba(245, 197, 66, 0.25) !important;
  font-size: 19px;
}

.comparison-table td {
  font-size: 18px;
}

@media (max-width: 768px) {
  .shop-page-title {
    font-size: 26px;
  }
}
/* =========================================================
   TRANG SỐ 5: THANH TOÁN VIETQR & QUỐC TẾ (template-05-thanh-toan.php)
   ========================================================= */
.checkout-container {
  padding-top: 32px;
  padding-bottom: 64px;
}

.checkout-page-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 36px;
}

.checkout-main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.checkout-main-sub {
  color: var(--text-cream);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 30px;
  align-items: start;
}

.checkout-card {
  background: var(--navy-card);
  border: 3px solid rgba(245, 197, 66, 0.55);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.checkout-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(245, 197, 66, 0.25);
}

.checkout-card-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-main);
}

.order-status-pill {
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 16px;
}

.pill-pending {
  background: rgba(245, 197, 66, 0.2);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
}

.order-summary-item {
  background: rgba(9, 17, 40, 0.75);
  border: 2px solid rgba(245, 197, 66, 0.4);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.order-item-code {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.order-item-title {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.35;
}

.order-item-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-main);
  white-space: nowrap;
}

.order-total-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: rgba(245, 197, 66, 0.15);
  border: 2px solid var(--gold-main);
  border-radius: 14px;
  padding: 18px 22px;
}

.total-label {
  font-weight: 800;
  font-size: 19px;
}

.total-amount {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-main);
}

.auto-fill-tag {
  color: #4ADE80;
  font-weight: 700;
  font-size: 16px;
}

.checkout-helper-note {
  color: var(--text-cream);
  margin-bottom: 18px;
}

.student-prefilled-grid,
.stripe-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prefilled-field label {
  display: block;
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

/* Chuyển đổi tab VietQR & Quốc tế */
.gateway-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.gateway-tab-btn {
  min-height: 60px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-deep);
  border: 3px solid rgba(245, 197, 66, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gateway-tab-btn.active,
.gateway-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.vietqr-instruction-banner,
.intl-gateway-banner {
  background: rgba(9, 17, 40, 0.8);
  border-left: 5px solid var(--gold-main);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.vietqr-display-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.qr-code-frame {
  background: #FFFFFF;
  color: #091128;
  padding: 16px;
  border-radius: 16px;
  border: 4px solid var(--gold-main);
  text-align: center;
}

.qr-header-brand {
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 8px;
  font-size: 16px;
}

.qr-image {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.qr-scan-caption {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.bank-details-box {
  display: grid;
  gap: 12px;
}

.bank-detail-row {
  background: rgba(9, 17, 40, 0.75);
  border: 1px solid rgba(245, 197, 66, 0.4);
  padding: 12px 16px;
  border-radius: 12px;
}

.copyable-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.bank-label {
  display: block;
  font-size: 15px;
  color: var(--text-cream);
}

.bank-value {
  font-size: 20px;
  color: #FFFFFF;
}

.highlight-gold {
  color: var(--gold-main);
  font-size: 22px;
}

.ref-code-box {
  background: rgba(245, 197, 66, 0.14);
  border: 2px solid var(--gold-main);
}

.ref-code-text {
  font-size: 24px;
  color: #4ADE80;
  letter-spacing: 1px;
}

.btn-copy-large {
  min-height: 46px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-card);
  border: 2px solid var(--gold-main);
  border-radius: 10px;
  cursor: pointer;
}

.btn-copy-large.btn-copy-gold,
.btn-copy-large:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
}

/* Thanh lắng nghe Webhook tự động 3 giây */
.webhook-listening-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(21, 128, 61, 0.22);
  border: 2px solid #4ADE80;
  border-radius: 14px;
  padding: 16px 20px;
}

.spinner-pulse {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: thuhaPulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes thuhaPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.listening-text strong {
  display: block;
  color: #86EFAC;
}

/* Khung thông báo Đã thanh toán / Thất bại */
.payment-status-alert {
  border-radius: 22px;
  padding: 40px 28px;
  text-align: center;
  margin-bottom: 36px;
}

.status-paid-box {
  background: linear-gradient(160deg, #0E3A2F 0%, #101C42 100%);
  border: 3px solid #4ADE80;
}

.status-failed-box {
  background: linear-gradient(160deg, #4C111B 0%, #101C42 100%);
  border: 3px solid #F87171;
}

.status-alert-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.status-alert-title {
  font-size: 28px;
  color: var(--gold-main);
  margin-bottom: 12px;
}

.status-alert-desc {
  max-width: 740px;
  margin: 0 auto 24px;
}

.status-alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.intl-section-heading {
  font-size: 21px;
  color: var(--gold-main);
  margin-bottom: 14px;
}

.gateway-divider {
  text-align: center;
  margin: 24px 0;
  padding: 10px 0;
  border-top: 1px solid rgba(245, 197, 66, 0.3);
  border-bottom: 1px solid rgba(245, 197, 66, 0.3);
  font-weight: 800;
  color: var(--gold-main);
}

/* Responsive Tablet & Mobile cho Trang Thanh Toán */
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .checkout-main-title {
    font-size: 25px;
  }

  .checkout-card {
    padding: 20px 16px;
  }

  .vietqr-display-grid,
  .gateway-tabs,
  .student-prefilled-grid,
  .stripe-field-grid {
    grid-template-columns: 1fr;
  }

  .order-summary-item,
  .order-total-row,
  .copyable-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-copy-large {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   TRANG SỐ 6: ĐĂNG NHẬP / ĐĂNG KÝ & GIỚI HẠN 2 THIẾT BỊ
   (template-06-dang-nhap.php)
   ========================================================= */
.auth-container {
  padding-top: 32px;
  padding-bottom: 64px;
}

.auth-page-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 28px;
}

.auth-main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.auth-main-sub {
  color: var(--text-cream);
}

.text-center {
  text-align: center;
}

/* Thanh chọn chế độ Đăng nhập / Đăng ký */
.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 28px;
}

.auth-tab-btn {
  min-height: 62px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-card);
  border: 3px solid rgba(245, 197, 66, 0.45);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active,
.auth-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.auth-card {
  background: var(--navy-card);
  border: 3px solid var(--gold-main);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.auth-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.auth-col-social {
  padding-right: 32px;
  border-right: 2px solid rgba(245, 197, 66, 0.25);
}

.auth-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.auth-helper-text {
  color: var(--text-cream);
  margin-bottom: 22px;
}

/* Nút Đăng nhập Google & Facebook chữ lớn, độ tương phản cao */
.social-login-buttons,
.social-register-quick {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.social-register-quick {
  grid-template-columns: 1fr 1fr;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
  border-radius: 14px;
  border: 3px solid #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-social:hover {
  transform: translateY(-2px);
}

.btn-google {
  background: #FFFFFF;
  color: #091128;
  border-color: var(--gold-main);
}

.btn-facebook {
  background: #1877F2;
  color: #FFFFFF;
}

.social-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.12);
}

.device-policy-notice {
  background: rgba(9, 17, 40, 0.75);
  border-left: 5px solid var(--gold-main);
  padding: 16px 20px;
  border-radius: 12px;
}

.device-policy-notice strong {
  display: block;
  color: var(--gold-main);
  margin-bottom: 6px;
}

/* Form OTP Email */
.auth-field-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.otp-verify-box {
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid #4ADE80;
  border-radius: 16px;
  padding: 22px;
}

.otp-sent-banner {
  background: rgba(21, 128, 61, 0.25);
  border: 1px solid #4ADE80;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.otp-timer-line {
  margin-top: 8px;
  color: var(--gold-main);
}

.otp-code-input {
  text-align: center;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: 6px;
}

.btn-resend-otp {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
  background: transparent;
  color: var(--gold-main);
  border: 2px dashed var(--gold-main);
  border-radius: 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.password-fallback-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 197, 66, 0.3);
}

.btn-link-gold {
  background: none;
  border: none;
  color: var(--gold-main);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.password-login-drawer {
  margin-top: 16px;
  background: rgba(9, 17, 40, 0.75);
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(245, 197, 66, 0.4);
}

.rate-limit-note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-cream);
}

.auth-help-footer {
  margin-top: 20px;
}

.btn-help-recovery {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  background: rgba(245, 197, 66, 0.14);
  border: 2px solid var(--gold-main);
  border-radius: 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.register-form-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Màn hình 3: Quản lý giới hạn 2 thiết bị */
.device-warning-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.warning-icon-badge {
  font-size: 48px;
  flex-shrink: 0;
}

.friendly-assurance-box {
  background: rgba(21, 128, 61, 0.25);
  border: 2px solid #4ADE80;
  padding: 18px 22px;
  border-radius: 14px;
  margin-bottom: 26px;
}

.device-list-heading {
  font-size: 21px;
  color: var(--gold-main);
  margin-bottom: 16px;
}

.registered-devices-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.device-item-card {
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid rgba(245, 197, 66, 0.55);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.device-number-tag {
  display: inline-block;
  background: var(--purple-main);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 15px;
}

.device-name {
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.admin-reset-request-box {
  background: linear-gradient(135deg, #2D124D 0%, #101C42 100%);
  border: 2px dashed var(--gold-main);
  border-radius: 16px;
  padding: 24px;
}

.admin-reset-request-box h3 {
  color: var(--gold-main);
  margin-bottom: 8px;
}

.reset-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

/* Màn hình 4: Khôi phục quyền truy cập */
.recovery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.recovery-box {
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 16px;
  padding: 24px;
}

.recovery-box h3 {
  font-size: 22px;
  color: var(--gold-main);
  margin-bottom: 10px;
}

.recovery-contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

/* Responsive Tablet & Mobile cho Trang Đăng Nhập */
@media (max-width: 992px) {
  .auth-grid-2col,
  .recovery-options-grid,
  .social-register-quick {
    grid-template-columns: 1fr;
  }

  .auth-col-social {
    padding-right: 0;
    padding-bottom: 28px;
    border-right: none;
    border-bottom: 2px solid rgba(245, 197, 66, 0.25);
  }
}

@media (max-width: 768px) {
  .auth-main-title {
    font-size: 25px;
  }

  .auth-mode-tabs {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px 16px;
  }

  .device-warning-header,
  .device-item-card,
  .reset-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .device-item-card .btn-action,
  .reset-actions-row .btn-action {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 7: HỌC VIÊN CỦA TÔI (template-07-hoc-vien-cua-toi.php)
   ========================================================= */
.dashboard-hero-banner {
  background:
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 36px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.dashboard-welcome-card {
  background: linear-gradient(160deg, #1E295E 0%, #3B1654 100%);
  border: 3px solid var(--gold-main);
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.welcome-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.student-avatar-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FB565A 0%, #8A3FFC 100%);
  border: 3px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
}

.dashboard-user-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 6px;
  line-height: 1.25;
}

.dashboard-user-meta {
  color: var(--text-cream);
}

.welcome-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 4 Thẻ thống kê nhanh */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.dash-stat-box {
  background: var(--navy-card);
  border: 2px solid rgba(245, 197, 66, 0.5);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-box-green {
  border-left: 6px solid #22C55E;
}

.stat-box-gold {
  border-left: 6px solid var(--gold-main);
}

.stat-box-purple {
  border-left: 6px solid #C084FC;
}

.stat-box-blue {
  border-left: 6px solid #38BDF8;
}

.dash-stat-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-cream);
}

.dash-stat-value {
  font-size: 23px;
  font-weight: 800;
  color: var(--gold-main);
}

.dash-stat-sub {
  font-size: 15px;
  color: var(--text-cream);
}

.dashboard-main-container {
  padding-top: 36px;
  padding-bottom: 64px;
}

.dashboard-section-card {
  background: var(--navy-card);
  border: 3px solid rgba(245, 197, 66, 0.55);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 32px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Lưới 6 ô điều hướng chữ lớn 1 chạm */
.student-nav-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.nav-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid rgba(245, 197, 66, 0.5);
  transition: all 0.2s ease;
}

.nav-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold-main);
  background: rgba(245, 197, 66, 0.14);
}

.tile-green {
  border-left: 7px solid #22C55E;
}

.tile-gold {
  border-left: 7px solid var(--gold-main);
}

.tile-purple {
  border-left: 7px solid #C084FC;
}

.tile-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.tile-content {
  flex: 1;
}

.tile-content h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 4px;
}

.tile-content p {
  font-size: 16px;
  color: var(--text-cream);
}

.tile-arrow {
  background: var(--gold-main);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Khu vực 2 cột dưới cùng: Quản lý thiết bị & Thông báo */
.dashboard-bottom-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dash-device-list {
  display: grid;
  gap: 16px;
}

.dash-device-item {
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.dash-device-title {
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.notification-pref-list {
  display: grid;
  gap: 14px;
}

.pref-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.4);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
}

.pref-toggle-row input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin-top: 4px;
  accent-color: var(--gold-main);
  flex-shrink: 0;
  cursor: pointer;
}

.pref-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pref-text strong {
  font-size: 19px;
  color: var(--gold-main);
}

.pref-text small {
  font-size: 16px;
  color: var(--text-cream);
}

/* Responsive Tablet & Mobile cho Trang Học Viên Của Tôi */
@media (max-width: 1024px) {
  .dashboard-stats-grid,
  .student-nav-tiles,
  .dashboard-bottom-2col {
    grid-template-columns: 1fr 1fr;
  }

  .student-nav-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-welcome-card {
    padding: 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .welcome-user-info {
    flex-direction: column;
    text-align: center;
  }

  .welcome-quick-actions {
    flex-direction: column;
  }

  .welcome-quick-actions .btn-action {
    width: 100%;
  }

  .dashboard-stats-grid,
  .dashboard-bottom-2col {
    grid-template-columns: 1fr;
  }

  .dashboard-section-card {
    padding: 20px 16px;
  }

  .nav-tile {
    flex-direction: column;
    text-align: center;
  }

  .tile-arrow {
    width: 100%;
    text-align: center;
  }
}
/* =========================================================
   TRANG SỐ 8: CÁC BÀI HỌC ĐÃ MUA VÀ CÒN HẠN
   (template-08-bai-hoc-da-mua.php)
   ========================================================= */
.owned-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.owned-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.owned-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.owned-page-desc {
  color: var(--text-cream);
}

.voucher-slot-card {
  background: linear-gradient(160deg, #2D124D 0%, #162454 100%);
  border: 3px solid var(--gold-main);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.slot-card-badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.2);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  font-weight: 800;
  font-size: 15px;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.slot-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.slot-card-desc {
  color: var(--text-cream);
  margin-bottom: 18px;
}

.owned-tabs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 2px solid rgba(245, 197, 66, 0.25);
}

.owned-tab-btn {
  min-height: 54px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-deep);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.owned-tab-btn.active,
.owned-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.owned-source-tag {
  background: rgba(245, 197, 66, 0.18);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
}

.multi-source-notice {
  margin-top: 12px;
  background: rgba(56, 189, 248, 0.15);
  border-left: 4px solid #38BDF8;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  color: #E0F2FE;
}

.owned-card-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 1024px) {
  .owned-hero-grid {
    grid-template-columns: 1fr;
  }

  .owned-tabs-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .owned-page-title {
    font-size: 26px;
  }

  .owned-tabs-row {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   TRANG SỐ 9: LỊCH SỬ THANH TOÁN (template-09-lich-su-thanh-toan.php)
   ========================================================= */
.history-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.history-hero-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px;
}

.history-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.history-page-desc {
  color: var(--text-cream);
}

.order-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 2px solid rgba(245, 197, 66, 0.25);
}

.order-tab-btn {
  min-height: 50px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-deep);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-tab-btn.active,
.order-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.order-id-highlight {
  font-size: 20px;
  color: var(--gold-main);
}

.order-date-sub,
.order-ref-sub {
  font-size: 15px;
  color: var(--text-cream);
}

.order-cat-badge {
  display: inline-block;
  background: rgba(245, 197, 66, 0.18);
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  font-size: 14px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.order-item-name-cell {
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.order-access-note {
  display: block;
  color: #93C5FD;
  font-size: 15px;
}

.order-amount-cell {
  font-size: 21px;
  color: var(--gold-main);
  white-space: nowrap;
}

/* Huy hiệu 5 trạng thái đơn hàng */
.order-state-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
}

.state-paid {
  background: rgba(21, 128, 61, 0.28);
  border: 2px solid #4ADE80;
  color: #86EFAC;
}

.state-pending {
  background: rgba(234, 88, 12, 0.25);
  border: 2px solid #FB923C;
  color: #FDBA74;
}

.state-failed {
  background: rgba(185, 28, 28, 0.28);
  border: 2px solid #F87171;
  color: #FCA5A5;
}

.state-refunded {
  background: rgba(56, 189, 248, 0.22);
  border: 2px solid #38BDF8;
  color: #BAE6FD;
}

.state-cancelled {
  background: rgba(148, 163, 184, 0.2);
  border: 2px solid #94A3B8;
  color: #CBD5E1;
}

.btn-table-action {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 16px;
  white-space: nowrap;
}

/* Khung chi tiết biên lai thanh toán */
.receipt-detail-modal {
  margin-top: 28px;
}

.receipt-paper {
  background: linear-gradient(160deg, #1E295E 0%, #2D124D 100%);
  border: 3px solid var(--gold-main);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.receipt-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.receipt-header h3 {
  font-size: 23px;
  color: var(--gold-main);
}

.btn-close-receipt {
  background: var(--btn-renew-darkorange);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  padding: 8px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.receipt-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(9, 17, 40, 0.75);
  padding: 22px;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .history-page-title {
    font-size: 25px;
  }

  .order-status-tabs,
  .receipt-body-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .order-tab-btn {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 10: GỬI BÀI CHO CÔ SỬA (template-10-gui-bai-cho-co-sua.php)
   ========================================================= */
.submit-song-container {
  padding-top: 32px;
  padding-bottom: 64px;
}

.submit-page-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px;
}

.submit-main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.submit-main-sub {
  color: var(--text-cream);
}

.submit-song-card-main {
  background: linear-gradient(155deg, #2D124D 0%, #142254 100%);
  border: 3px solid var(--gold-main);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
  .submit-main-title {
    font-size: 25px;
  }

  .submit-song-card-main {
    padding: 22px 16px;
  }
}
/* =========================================================
   TRANG SỐ 11: THEO DÕI TRẠNG THÁI BÀI ĐÃ GỬI
   (template-11-trang-thai-bai-gui.php)
   ========================================================= */
.status-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.status-hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 30px;
}

.status-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.status-page-desc {
  color: var(--text-cream);
}

.submission-state-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 2px solid rgba(245, 197, 66, 0.25);
}

.sub-tab-btn {
  min-height: 52px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-deep);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-tab-btn.active,
.sub-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.submission-cards-list {
  display: grid;
  gap: 26px;
}

.submission-track-card {
  background: linear-gradient(180deg, #162454 0%, #0F1A3F 100%);
  border: 3px solid rgba(245, 197, 66, 0.55);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.track-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 197, 66, 0.25);
}

.track-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.track-fee-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
}

.pill-free {
  background: rgba(21, 128, 61, 0.25);
  border: 1px solid #4ADE80;
  color: #86EFAC;
}

.pill-paid {
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid #FB923C;
  color: #FDBA74;
}

.track-state-badge {
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 17px;
}

.badge-state-sent {
  background: rgba(56, 189, 248, 0.2);
  border: 2px solid #38BDF8;
  color: #BAE6FD;
}

.badge-state-waiting {
  background: rgba(245, 197, 66, 0.2);
  border: 2px solid var(--gold-main);
  color: var(--gold-main);
}

.badge-state-reviewed {
  background: rgba(192, 132, 252, 0.25);
  border: 2px solid #C084FC;
  color: #E9D5FF;
}

.badge-state-completed {
  background: rgba(21, 128, 61, 0.28);
  border: 2px solid #4ADE80;
  color: #86EFAC;
}

.track-lesson-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 16px;
  line-height: 1.35;
}

.track-details-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 22px;
}

.track-detail-box,
.track-reply-summary {
  background: rgba(9, 17, 40, 0.75);
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.track-reply-summary {
  border-left: 5px solid var(--gold-main);
}

.track-reply-summary strong {
  color: var(--gold-main);
}

/* Thanh tiến trình 4 bước (Đã gửi -> Đang chờ cô sửa -> Đã được nhận xét -> Đã hoàn thành) */
.visual-stepper-4steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stepper-item {
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.55;
}

.stepper-item.step-done {
  opacity: 1;
  border-color: #4ADE80;
  background: rgba(21, 128, 61, 0.2);
}

.stepper-item.step-current {
  opacity: 1;
  border-color: var(--gold-main);
  background: rgba(245, 197, 66, 0.22);
  box-shadow: 0 0 15px rgba(245, 197, 66, 0.35);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-card);
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.stepper-item.step-done .step-circle {
  background: #15803D;
  color: #FFFFFF;
  border-color: #4ADE80;
}

.stepper-item.step-current .step-circle {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.step-name {
  font-weight: 800;
  font-size: 17px;
}

.track-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1024px) {
  .track-details-grid {
    grid-template-columns: 1fr;
  }

  .visual-stepper-4steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .status-page-title {
    font-size: 25px;
  }

  .submission-track-card {
    padding: 20px 16px;
  }

  .submission-state-tabs,
  .visual-stepper-4steps {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sub-tab-btn,
  .track-card-actions .btn-action {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 12: THÔNG BÁO BÀI MỚI & NHẮC LỊCH HỌC
   (template-12-thong-bao-bai-moi.php)
   ========================================================= */
.notif-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.notif-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.notif-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.notif-page-desc {
  color: var(--text-cream);
}

.notif-channel-card {
  background: linear-gradient(160deg, #1E295E 0%, #3B1654 100%);
  border: 3px solid var(--gold-main);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.channel-card-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.channel-card-sub {
  font-size: 16px;
  color: var(--text-cream);
  margin-bottom: 14px;
}

.channel-status-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.channel-item {
  background: rgba(9, 17, 40, 0.75);
  border: 1px solid rgba(245, 197, 66, 0.4);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.notif-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 2px solid rgba(245, 197, 66, 0.25);
}

.notif-tab-btn {
  min-height: 52px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-deep);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-tab-btn.active,
.notif-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.notif-cards-list {
  display: grid;
  gap: 24px;
}

.notif-card {
  background: linear-gradient(180deg, #162454 0%, #0F1A3F 100%);
  border: 2px solid rgba(245, 197, 66, 0.45);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.notif-card.notif-unread {
  border: 3px solid var(--gold-main);
  background: linear-gradient(180deg, #23184E 0%, #142254 100%);
}

.notif-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245, 197, 66, 0.25);
}

.notif-meta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.unread-pill {
  background: #DC2626;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 99px;
}

.notif-date {
  color: var(--gold-main);
  font-weight: 700;
}

.notif-title {
  font-size: 25px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.35;
}

.notif-intro-text {
  background: rgba(9, 17, 40, 0.7);
  border-left: 5px solid var(--gold-main);
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--text-cream);
  margin-bottom: 16px;
}

.notif-access-line {
  font-weight: 700;
  color: var(--gold-main);
  margin-bottom: 18px;
}

.notif-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1024px) {
  .notif-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .notif-page-title {
    font-size: 25px;
  }

  .notif-card {
    padding: 20px 16px;
  }

  .notif-type-tabs,
  .notif-card-actions {
    flex-direction: column;
  }

  .notif-tab-btn,
  .notif-card-actions .btn-action {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 13: BÀI PHẢN HỒI CÔ ĐÃ SỬA
   (template-13-phan-hoi-co-da-sua.php)
   ========================================================= */
.feedback-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.feedback-hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 30px;
}

.feedback-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feedback-page-desc {
  color: var(--text-cream);
}

.feedback-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feedback-cards-list {
  display: grid;
  gap: 30px;
}

.feedback-detail-card {
  background: linear-gradient(180deg, #162454 0%, #0F1A3F 100%);
  border: 3px solid rgba(245, 197, 66, 0.55);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.feedback-detail-card.feedback-card-new {
  border-color: var(--gold-main);
  background: linear-gradient(180deg, #251652 0%, #142254 100%);
}

.fb-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(245, 197, 66, 0.25);
}

.fb-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.fb-lesson-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.fb-dates-line {
  color: var(--text-cream);
  margin-bottom: 22px;
}

.fb-comparison-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 24px;
  margin-bottom: 24px;
}

.fb-student-submission-box {
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.4);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.fb-teacher-response-box {
  background: rgba(9, 17, 40, 0.9);
  border: 3px solid var(--gold-main);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.fb-box-heading {
  font-size: 21px;
  font-weight: 800;
  color: var(--gold-main);
}

.fb-written-comment {
  background: #FFFDF7;
  color: #111827;
  border-left: 6px solid var(--gold-main);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
  font-size: calc(var(--base-font-size) + 1px);
  line-height: 1.75;
}

.fb-voice-player-card {
  background: linear-gradient(135deg, #0E3A2F 0%, #101C42 100%);
  border: 2px solid #4ADE80;
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.voice-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-badge {
  color: #86EFAC;
  font-weight: 800;
  font-size: 16px;
}

.voice-filename {
  font-size: 19px;
  color: #FFFFFF;
}

.btn-listen-teacher {
  min-height: 64px;
  font-size: 20px;
}

.fb-card-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 197, 66, 0.25);
}

@media (max-width: 1024px) {
  .feedback-summary-grid,
  .fb-comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .feedback-page-title {
    font-size: 25px;
  }

  .feedback-detail-card {
    padding: 20px 16px;
  }

  .fb-card-footer-actions {
    flex-direction: column;
  }

  .fb-card-footer-actions .btn-action {
    width: 100%;
  }
}
/* =========================================================
   TRANG SỐ 14: HƯỚNG DẪN SỬ DỤNG CHỮ LỚN KÈM VIDEO
   (template-14-huong-dan-su-dung.php)
   ========================================================= */
.guide-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 40px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.guide-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.guide-page-desc {
  color: var(--text-cream);
}

.guide-download-card {
  background: linear-gradient(160deg, #1E295E 0%, #3B1654 100%);
  border: 3px solid var(--gold-main);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.guide-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.guide-card-sub {
  color: var(--text-cream);
  margin-bottom: 16px;
}

.guide-card-actions {
  display: grid;
  gap: 12px;
}

/* Khu vực Video hướng dẫn thao tác trên điện thoại Android */
.guide-video-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.guide-vtab-btn {
  min-height: 58px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-deep);
  border: 2px solid rgba(245, 197, 66, 0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-vtab-btn.active,
.guide-vtab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.guide-video-stage {
  min-height: 360px;
}

/* Lưới 12 mục hướng dẫn từng bước */
.guide-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.guide-step-card {
  background: linear-gradient(180deg, #162454 0%, #0F1A3F 100%);
  border: 2px solid rgba(245, 197, 66, 0.5);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.guide-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-topic-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-main);
  line-height: 1.35;
}

.screenshot-mockup-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 197, 66, 0.14);
  border: 2px dashed var(--gold-main);
  border-radius: 12px;
  padding: 14px 16px;
  color: #FFFFFF;
}

.mockup-cam-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.guide-steps-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.guide-steps-list li {
  background: rgba(9, 17, 40, 0.75);
  border-left: 4px solid #4ADE80;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-cream);
}

@media (max-width: 1024px) {
  .guide-hero-grid,
  .guide-video-tabs,
  .guide-topics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guide-page-title {
    font-size: 25px;
  }

  .guide-step-card {
    padding: 20px 16px;
  }
}
/* =========================================================
   TRANG SỐ 15: LIÊN HỆ VÀ HỖ TRỢ HỌC VIÊN
   (template-15-lien-he-ho-tro.php)
   ========================================================= */
.contact-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 42px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.contact-hero-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 32px;
}

.contact-page-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.contact-page-desc {
  color: var(--text-cream);
}

.direct-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-channel-box {
  background: var(--navy-card);
  border: 3px solid rgba(245, 197, 66, 0.55);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.channel-big-icon {
  font-size: 46px;
  line-height: 1;
}

.channel-box-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-main);
}

.channel-box-desc {
  color: var(--text-cream);
  font-size: 17px;
}

.channel-phone-number {
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(9, 17, 40, 0.8);
  border: 1px solid rgba(245, 197, 66, 0.45);
  padding: 10px 14px;
  border-radius: 12px;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: start;
}

.support-topic-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.topic-pill {
  min-height: 60px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(9, 17, 40, 0.85);
  border: 2px solid rgba(245, 197, 66, 0.5);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.topic-pill.active,
.topic-pill:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.support-textarea {
  min-height: 110px;
  resize: vertical;
}

.faq-accordion-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: rgba(9, 17, 40, 0.8);
  border: 2px solid rgba(245, 197, 66, 0.4);
  border-left: 6px solid var(--gold-main);
  border-radius: 14px;
  padding: 18px 20px;
}

.faq-question {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 8px;
}

.faq-answer {
  color: var(--text-cream);
}

@media (max-width: 1024px) {
  .direct-contact-cards,
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-page-title {
    font-size: 25px;
  }

  .support-topic-pills {
    grid-template-columns: 1fr;
  }

  .contact-channel-box {
    padding: 20px 16px;
  }
}
/* =========================================================
   TRANG SỐ 16: CHÍNH SÁCH & ĐIỀU KHOẢN SỬ DỤNG
   (template-16-chinh-sach-dieu-khoan.php)
   ========================================================= */
.policy-hero-banner {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #13204E 0%, #091128 100%);
  padding: 42px 0;
  border-bottom: 2px solid rgba(245, 197, 66, 0.35);
}

.policy-hero-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
}

.policy-page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-main);
  margin-bottom: 14px;
  line-height: 1.35;
}

.policy-page-desc {
  color: var(--text-cream);
}

.policy-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.policy-tab-btn {
  min-height: 54px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--navy-card);
  border: 2px solid rgba(245, 197, 66, 0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.policy-tab-btn.active,
.policy-tab-btn:hover {
  background: var(--gold-main);
  color: var(--navy-deep);
  border-color: #FFFFFF;
}

.policy-content-container {
  max-width: 1080px;
}

.policy-section-card {
  background: var(--navy-card);
  border: 3px solid rgba(245, 197, 66, 0.55);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.policy-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(245, 197, 66, 0.3);
}

.policy-section-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--gold-main);
  line-height: 1.35;
}

.policy-text-body h3 {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 20px 0 12px;
}

.policy-text-body h3:first-child {
  margin-top: 0;
}

.policy-bullet-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.policy-bullet-list li {
  background: rgba(9, 17, 40, 0.8);
  border-left: 5px solid var(--gold-main);
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--text-cream);
}

.policy-bullet-list li strong {
  color: var(--gold-main);
}

.policy-bottom-support {
  background: linear-gradient(160deg, #1E295E 0%, #3B1654 100%);
  border: 3px solid var(--gold-main);
  border-radius: 22px;
  padding: 32px;
  text-align: center;
  margin-top: 36px;
}

.policy-bottom-support h3 {
  font-size: 25px;
  color: var(--gold-main);
  margin-bottom: 10px;
}

.policy-bottom-support p {
  color: var(--text-cream);
  margin-bottom: 22px;
}

.policy-support-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .policy-page-title {
    font-size: 24px;
  }

  .policy-nav-tabs,
  .policy-support-buttons {
    flex-direction: column;
  }

  .policy-tab-btn,
  .policy-support-buttons .btn-action {
    width: 100%;
  }

  .policy-section-card,
  .policy-bottom-support {
    padding: 20px 16px;
  }
}