/* ===================================================================
   THIÊN BÀN TỬ VI - CORE STYLESHEET
   Phong cách Á Đông Cổ Điển Sang Trọng (Imperial Gold & Paper Silk)
   Font chữ: 'Be Vietnam Pro' & 'Playfair Display'
   Tối ưu hóa UI/UX: Form tối giản, Tabbed Navigation, 
   Table of Contents sticky, Reader Controls (A+/A-) và Thematic Hub.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&display=swap');

:root {
  /* Bảng màu Hoàng Gia Cổ Điển */
  --bg-primary: #0d0f14;
  --bg-secondary: #141821;
  --bg-card: rgba(24, 29, 41, 0.92);
  --bg-paper: #1c2230;
  
  --gold-primary: #e6ca65;
  --gold-light: #f7e7a9;
  --gold-dark: #b89837;
  --gold-gradient: linear-gradient(135deg, #f7e7a9 0%, #e6ca65 50%, #b89837 100%);
  
  --crimson-royal: #c92a2a;
  --crimson-glow: rgba(201, 42, 42, 0.35);
  --jade-green: #2b8a3e;
  --cyan-celestial: #15aabf;
  
  --text-main: #f1f3f5;
  --text-muted: #909296;
  --text-gold: #f7e7a9;
  
  --border-gold: rgba(230, 202, 101, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-gold: 0 8px 32px rgba(230, 202, 101, 0.15);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(230, 202, 101, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(201, 42, 42, 0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30 L60 60 M0 60 L30 30 M30 30 L60 0 M0 0 L30 30' stroke='rgba(230, 202, 101, 0.02)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-attachment: fixed;
  min-height: 100vh;
}

/* ================= CONTAINER & HEADER ================= */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.site-header {
  text-align: center;
  padding: 28px 0 20px;
  position: relative;
}

.header-badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(230, 202, 101, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.badge-tag-highlight {
  background: rgba(43, 138, 62, 0.2);
  border-color: var(--jade-green);
  color: #8ce99a;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.sub-title {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= INPUT FORM SECTION (CHUẨN TỐI GIẢN) ================= */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  margin: 30px auto;
  max-width: 1000px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  font-size: 1.2rem;
}

.form-hint {
  font-size: 0.8rem;
  color: #8ce99a;
  background: rgba(43, 138, 62, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(43, 138, 62, 0.3);
}

.req-star {
  color: #ff6b6b;
  font-weight: bold;
}

.form-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.form-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.form-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 11px 13px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(230, 202, 101, 0.25);
  background: #191f2c;
}

.form-control::placeholder {
  color: rgba(160, 174, 192, 0.65);
  font-size: 0.9rem;
  font-style: italic;
}

select.form-control option[disabled] {
  color: #718096;
}

.select-canchi {
  cursor: pointer;
  color: var(--gold-light);
}

/* Form Validation Error Styles */
.form-error-summary {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  color: #fca5a5;
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.18);
  animation: shakeError 0.3s ease-in-out;
}

.form-error-summary strong {
  display: block;
  color: #f87171;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.form-error-summary ul {
  margin: 0;
  padding-left: 20px;
}

.form-error-summary li {
  margin-bottom: 4px;
}

.form-control.field-has-error,
select.form-control.field-has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  background-color: rgba(239, 68, 68, 0.04) !important;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.time-dual-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-sep {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.radio-pill-group {
  display: flex;
  gap: 8px;
}

.pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ced4da;
  transition: all 0.2s ease;
}

.pill-btn input {
  display: none;
}

.pill-btn:hover {
  border-color: rgba(230, 202, 101, 0.5);
  color: #fff;
}

.pill-btn.active {
  border-color: var(--gold-primary);
  background: rgba(230, 202, 101, 0.15);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(230, 202, 101, 0.15);
}

/* ================= TÙY CHỌN NÂNG CAO (ACCORDION) ================= */
.advanced-options-wrapper {
  margin: 16px 0 24px;
  background: rgba(15, 18, 25, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.btn-toggle-advanced {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-toggle-advanced:hover {
  background: rgba(255, 255, 255, 0.03);
}

.adv-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adv-chevron {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.btn-toggle-advanced.expanded .adv-chevron {
  transform: rotate(180deg);
}

.advanced-panel-content {
  padding: 18px;
  border-top: 1px solid var(--border-subtle);
}

.adv-sub-section {
  margin-bottom: 16px;
}

.adv-sub-section:last-child {
  margin-bottom: 0;
}

.adv-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.adv-label small {
  color: #adb5bd;
  font-weight: 400;
}

.persona-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.persona-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.persona-mini-card input {
  display: none;
}

.persona-mini-card:hover {
  border-color: rgba(230, 202, 101, 0.4);
}

.persona-mini-card.active {
  border-color: var(--gold-primary);
  background: rgba(230, 202, 101, 0.12);
}

.mini-avatar {
  font-size: 1.4rem;
  line-height: 1;
}

.mini-info {
  display: flex;
  flex-direction: column;
}

.mini-info strong {
  font-size: 0.82rem;
  color: #fff;
}

.mini-info span {
  font-size: 0.72rem;
  color: var(--gold-light);
}

.adv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .adv-grid-2 {
    grid-template-columns: 1fr;
  }
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: #12151c;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(230, 202, 101, 0.35);
  filter: brightness(1.08);
}

/* ================= THANH TESTER TOOLBAR ================= */
.tester-toolbar {
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.tester-status-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.tester-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 8px #ff6b6b;
  animation: pulse 1.5s infinite;
}

.tester-pulse-dot.dot-unlocked {
  background: #51cf66;
  box-shadow: 0 0 8px #51cf66;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.tester-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-status-locked {
  background: rgba(201, 42, 42, 0.2);
  border: 1px solid var(--crimson-royal);
  color: #ffa8a8;
}

.badge-status-unlocked {
  background: rgba(43, 138, 62, 0.2);
  border: 1px solid var(--jade-green);
  color: #8ce99a;
}

.badge-status-free {
  background: rgba(21, 170, 191, 0.2);
  border: 1px solid var(--cyan-celestial);
  color: #99e9f2;
}

.tester-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-tester {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-tester-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #ced4da;
  border: 1px solid var(--border-subtle);
}

.btn-tester-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-tester-simulate {
  background: rgba(43, 138, 62, 0.25);
  border: 1px solid var(--jade-green);
  color: #8ce99a;
}

.btn-tester-simulate:hover {
  background: rgba(43, 138, 62, 0.4);
}

/* ===================================================================
   THANH ĐIỀU HƯỚNG TAB KẾT QUẢ (STICKY RESULT TABS NAVIGATION)
   Giải quyết triệt để vấn đề cuộn chuột vô tận mỏi tay
   =================================================================== */
.result-tabs-nav {
  position: sticky;
  top: 12px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  margin-bottom: 28px;
}

.result-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #adb5bd;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.result-tab-btn .tab-icon {
  font-size: 1.15rem;
}

.result-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.result-tab-btn.active {
  background: rgba(230, 202, 101, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(230, 202, 101, 0.15);
}

.tab-badge-free {
  background: rgba(21, 170, 191, 0.25);
  border: 1px solid var(--cyan-celestial);
  color: #99e9f2;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

.tab-badge-pkg {
  background: rgba(230, 202, 101, 0.2);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .result-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= CÁC TAB CONTENT PANELS ================= */
.tab-content-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}

.tab-content-panel.active {
  display: block;
}

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

/* ================= TAB 2: TRUST HOOK (BẮT MẠCH ĐỜI NGƯỜI) ================= */
.hook-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.hook-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.hook-badge {
  background: var(--crimson-royal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Các phân khu lớn trong Tab 2 */
.trust-section-block {
  margin-bottom: 34px;
  background: rgba(14, 17, 24, 0.6);
  border: 1px solid rgba(230, 202, 101, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.trust-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.trust-sec-num {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-sec-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #f8fafc;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.trust-sec-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Phân khu 1: Chân dung Mệnh - Thân */
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.trust-card {
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(230, 202, 101, 0.15);
}

.trust-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.trust-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 10px;
  flex-shrink: 0;
}

.trust-card-top strong {
  display: block;
  font-size: 1rem;
  color: #f1f5f9;
  font-weight: 700;
  margin-bottom: 2px;
}

.trust-card-top small {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

.trust-card-body {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  flex-grow: 1;
}

/* ================= BẢO MẬT ANTI-F12 BACKEND MASKING ================= */
.secure-mask-container {
  margin-top: 14px;
}

.secure-mask-wrapper {
  position: relative;
  border: 1px solid rgba(230, 202, 101, 0.3);
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.85);
  overflow: hidden;
  padding: 12px;
  min-height: 95px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.6);
}

.secure-blur-text {
  filter: blur(5px);
  opacity: 0.28;
  user-select: none;
  pointer-events: none;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  letter-spacing: 1px;
  word-break: break-all;
}

.secure-mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 14px;
  background: radial-gradient(circle at center, rgba(16, 20, 29, 0.88) 0%, rgba(10, 12, 18, 0.96) 100%);
}

.secure-lock-icon {
  font-size: 1.25rem;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 6px rgba(230, 202, 101, 0.6));
}

.secure-teaser-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fde047;
  margin-bottom: 8px;
  max-width: 95%;
  line-height: 1.4;
}

.btn-secure-unlock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #e6ca65 0%, #aa7c11 100%);
  color: #0f121a;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(230, 202, 101, 0.35);
}

.btn-secure-unlock:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 18px rgba(230, 202, 101, 0.55);
}

.btn-secure-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-secure-unlock:hover .btn-secure-arrow {
  transform: translateX(3px);
}

/* Khối bảo mật cho Cung vị 12 Cung */
.secure-cung-box {
  position: relative;
  border: 1px dashed rgba(230, 202, 101, 0.35);
  border-radius: 6px;
  background: rgba(10, 12, 18, 0.6);
  overflow: hidden;
  margin-bottom: 12px;
  padding: 8px;
  min-height: 52px;
}

.secure-cung-blur {
  filter: blur(4px);
  opacity: 0.25;
  user-select: none;
  pointer-events: none;
  font-size: 0.75rem;
  color: #94a3b8;
  word-break: break-all;
  line-height: 1.3;
}

.secure-cung-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 8px;
  background: rgba(12, 15, 22, 0.85);
}

.secure-cung-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  line-height: 1.3;
}

/* Phân khu 2: Nghiệm chứng quá khứ */
.trust-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.timeline-verify-card {
  background: rgba(22, 27, 38, 0.85);
  border: 1px solid rgba(230, 202, 101, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.timeline-verify-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
}

.timeline-card-header {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.timeline-badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  margin-bottom: 6px;
}

.timeline-pill-recent {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.35);
}

.timeline-pill-health {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #f8fafc;
  line-height: 1.4;
}

.timeline-card-body {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
}

/* Phân khu 3: Chấm điểm 12 Cung */
.cung-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.cung-score-card {
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cung-score-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 202, 101, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cung-score-card.score-alert-pulse {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(28, 20, 24, 0.85);
}

.cung-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cung-score-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cung-score-tag {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.cung-score-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  width: fit-content;
}

.cung-score-number {
  font-family: var(--font-mono, monospace);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.cung-score-number .score-max {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.cung-score-progress-wrap {
  margin-bottom: 12px;
}

.cung-score-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.cung-score-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease-out;
}

.cung-score-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.btn-cung-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  color: #fde047;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cung-action:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-primary);
  transform: translateX(2px);
}

.btn-cung-tron-doi {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-cung-tron-doi:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

.btn-cung-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn-cung-action:hover .btn-cung-arrow {
  transform: translateX(4px);
}

.hook-actions-callout {
  background: linear-gradient(135deg, rgba(230, 202, 101, 0.12) 0%, rgba(20, 24, 34, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.callout-text h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.callout-text p {
  font-size: 0.9rem;
  color: #ced4da;
}

.callout-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-goto-reading, .btn-goto-thematic {
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-goto-reading {
  background: var(--gold-gradient);
  color: #12151c;
  box-shadow: 0 4px 16px rgba(230, 202, 101, 0.35);
}

.btn-goto-thematic {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}

.btn-goto-thematic:hover {
  background: rgba(230, 202, 101, 0.15);
}

/* ================= TAB 3: LUẬN GIẢI TRỌN ĐỜI 6 CHƯƠNG ================= */

/* Paywall CTA Banner */
.cta-banner {
  background: radial-gradient(circle at center, rgba(35, 25, 20, 0.95) 0%, rgba(20, 16, 16, 0.98) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 0 40px rgba(230, 202, 101, 0.25);
}

.cta-badge-pill {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(201, 42, 42, 0.25);
  border: 1px solid var(--crimson-royal);
  color: #ffa8a8;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: #fff;
  margin-bottom: 8px;
}

.cta-banner p {
  color: #ced4da;
  font-size: 0.96rem;
  max-width: 720px;
  margin: 0 auto 18px;
}

.cta-bundle-perk {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin: 0 auto 18px;
  font-size: 0.88rem;
  color: #ffd43b;
  max-width: 680px;
  text-align: center;
}

.price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.price-old {
  font-size: 1.15rem;
  text-decoration: line-through;
  color: #868e96;
}

.price-new {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffd43b;
}

.price-discount {
  color: #8ce99a;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-unlock {
  background: var(--gold-gradient);
  border: none;
  padding: 16px 36px;
  border-radius: 40px;
  color: #12151c;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(230, 202, 101, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-unlock:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 36px rgba(230, 202, 101, 0.6);
}

/* Locked Preview Grid */
.locked-preview-section {
  background: rgba(18, 22, 31, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}

.locked-preview-header {
  text-align: center;
  margin-bottom: 24px;
}

.lock-icon-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 42, 42, 0.15);
  border: 1px solid var(--crimson-royal);
  color: #ff8787;
  margin-bottom: 10px;
}

.locked-preview-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.locked-preview-header p {
  font-size: 0.85rem;
  color: #adb5bd;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.locked-item {
  background: rgba(13, 16, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.locked-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.locked-num {
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.locked-item-top h4 {
  font-size: 0.95rem;
  color: #fff;
  flex: 1;
}

.lock-pill {
  font-size: 0.68rem;
  background: rgba(201, 42, 42, 0.25);
  color: #ff8787;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.locked-desc {
  font-size: 0.82rem;
  color: #868e96;
  margin-bottom: 12px;
  line-height: 1.5;
}

.blur-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* ===================================================================
   GIAO DIỆN ĐỌC 6 CHƯƠNG MỞ KHÓA (CÓ MỤC LỤC & READER TOOLBAR)
   Trải nghiệm đọc xuất sắc như một cuốn sách điện tử thượng phẩm
   =================================================================== */

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(20, 24, 34, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.reader-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reader-meta-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}

.reading-est-time {
  font-size: 0.8rem;
  color: #adb5bd;
}

.reader-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.font-resizer-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.font-label {
  font-size: 0.75rem;
  color: #868e96;
  margin-right: 4px;
}

.btn-font-size {
  background: transparent;
  border: none;
  color: #ced4da;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-font-size:hover {
  color: #fff;
}

.btn-font-size.active {
  background: var(--gold-gradient);
  color: #12151c;
}

.btn-reader-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reader-action:hover {
  background: rgba(230, 202, 101, 0.15);
  color: #fff;
}

/* Bố cục 2 Cột: Sidebar Sticky + Nội Dung Đọc */
.reading-layout-with-toc {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .reading-layout-with-toc {
    grid-template-columns: 1fr;
  }
  .reading-sidebar {
    position: static !important;
  }
}

.reading-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.sidebar-expert-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.expert-box-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.expert-box-avatar {
  font-size: 2rem;
  line-height: 1;
}

.expert-box-info {
  display: flex;
  flex-direction: column;
}

.expert-box-label {
  font-size: 0.7rem;
  color: #868e96;
}

.expert-box-name {
  font-size: 0.95rem;
  color: var(--gold-light);
}

.expert-box-style {
  font-size: 0.75rem;
  color: #ffd43b;
}

.expert-switch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-expert-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ced4da;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-expert-chip:hover {
  border-color: var(--gold-primary);
  color: #fff;
}

.btn-expert-chip.active {
  background: var(--gold-gradient);
  color: #12151c;
  font-weight: 700;
  border-color: var(--gold-primary);
}

/* Sidebar Table of Contents */
.sidebar-toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.toc-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #adb5bd;
  text-decoration: none;
  font-size: 0.84rem;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.toc-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.toc-link.active {
  background: rgba(230, 202, 101, 0.12);
  color: var(--gold-light);
  border-left-color: var(--gold-primary);
  font-weight: 600;
}

.toc-num {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.toc-text {
  line-height: 1.35;
}

/* Nội dung đọc chính */
.reading-main-content {
  min-width: 0;
}

.reading-header-banner {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(20, 24, 34, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.reading-main-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-primary);
  margin: 6px 0;
}

.reading-main-sub {
  font-size: 0.95rem;
  color: #ced4da;
}

/* Cỡ chữ điều chỉnh linh hoạt */
.font-size-sm .chapter-body { font-size: 0.88rem !important; line-height: 1.7 !important; }
.font-size-md .chapter-body { font-size: 0.98rem !important; line-height: 1.85 !important; }
.font-size-lg .chapter-body { font-size: 1.12rem !important; line-height: 1.95 !important; }

.chapter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
  scroll-margin-top: 90px;
}

.chapter-card:hover {
  border-color: rgba(230, 202, 101, 0.4);
}

.chapter-title-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.chapter-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Core Traits Bento Grid */
.core-traits-bento {
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.9) 0%, rgba(13, 18, 30, 0.95) 100%);
  border: 1px solid rgba(230, 202, 101, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.bento-header {
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(230, 202, 101, 0.15);
  padding-bottom: 12px;
}

.bento-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(230, 202, 101, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(230, 202, 101, 0.25);
}

.bento-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  margin: 4px 0 0 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.bento-item:hover {
  border-color: rgba(230, 202, 101, 0.3);
  background: rgba(20, 30, 52, 0.7);
}

.bento-item.bento-full {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
  border-left: 3px solid var(--gold-primary);
}

.bento-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 4px;
  font-weight: 600;
}

.bento-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.bento-val.val-gold {
  color: #fde047;
}

.bento-val.val-star {
  color: #e2e8f0;
}

.bento-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Chapter Summary Banner */
.chapter-summary-banner {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(230, 202, 101, 0.06);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.chapter-summary-banner .summary-icon {
  color: var(--gold-primary);
  font-weight: bold;
  flex-shrink: 0;
}

.chapter-summary-banner .summary-text {
  color: #f1f5f9;
  font-weight: 500;
}

/* Chapter Body & Typography (High Readability) */
.chapter-body {
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.chapter-body strong {
  color: #ffffff;
  font-weight: 600;
}

.chapter-divider {
  border: none;
  border-top: 1px dashed rgba(230, 202, 101, 0.2);
  margin: 30px 0;
}

.chapter-section-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fef08a;
  margin: 28px 0 14px;
  border-left: 3px solid var(--gold-primary);
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(230, 202, 101, 0.1) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.4;
}

.chapter-section-heading.scenario-heading {
  color: #7dd3fc;
  border-left: 3px solid #38bdf8;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, transparent 100%);
}

.chapter-sub-heading {
  font-size: 1.06rem;
  color: #f8fafc;
  margin: 20px 0 12px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.55);
  border-left: 3px solid #60a5fa;
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.45;
}

.reading-para {
  margin-bottom: 16px;
  color: #e2e8f0;
}

.reading-list, .reading-ordered-list {
  margin: 12px 0 18px 0;
  padding-left: 0;
  list-style: none;
}

.reading-bullet {
  position: relative;
  margin: 8px 0 10px 22px;
  color: #e2e8f0;
  line-height: 1.75;
}

.reading-bullet::before {
  content: "✦";
  position: absolute;
  left: -20px;
  top: 0;
  color: var(--gold-primary);
  font-size: 0.75rem;
}

.reading-scenario-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 3px solid #38bdf8;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 14px 0 14px 10px;
}

.reading-scenario-item::before {
  content: "💡";
  position: absolute;
  left: -12px;
  top: 10px;
  font-size: 0.95rem;
}

.reading-numbered-item {
  margin: 8px 0 10px 26px;
  color: #e2e8f0;
  line-height: 1.75;
  list-style-type: decimal;
}

/* ===================================================================
 * PHÂN ĐỊNH 2 TẦNG NGÔN NGỮ: CHUYÊN NGÀNH TỬ VI VS THỰC TẾ ĐỜI SỐNG
 * =================================================================== */
.astro-layer-box {
  border-radius: var(--radius-md);
  margin: 20px 0 24px 0;
  padding: 20px 24px;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.astro-layer-box .layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.astro-layer-box .layer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.astro-layer-box .layer-badge .badge-icon {
  font-size: 1rem;
  line-height: 1;
}

.astro-layer-box .layer-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  font-style: italic;
}

/* TẦNG 1: NGÔN NGỮ CHUYÊN NGÀNH TỬ VI (TÔNG MÀU VÀNG KIM CỔ ĐIỂN & SLATE NAVY) */
.astro-layer-box.box-tech {
  background: linear-gradient(135deg, rgba(26, 34, 52, 0.85) 0%, rgba(16, 22, 36, 0.95) 100%);
  border: 1px solid rgba(230, 202, 101, 0.35);
  border-left: 4px solid var(--gold-primary);
}

.astro-layer-box.box-tech .layer-badge.badge-tech {
  background: rgba(230, 202, 101, 0.15);
  color: #fef08a;
  border: 1px solid rgba(230, 202, 101, 0.45);
}

.astro-layer-box.box-tech .reading-bullet {
  color: #f1f5f9;
  font-size: 0.96rem;
  margin: 10px 0 10px 24px;
}

.astro-layer-box.box-tech .reading-bullet::before {
  content: "✦";
  color: var(--gold-primary);
  font-size: 0.8rem;
  left: -20px;
}

.astro-layer-box.box-tech .reading-bullet strong {
  color: #ffd43b;
  font-weight: 600;
  display: inline-block;
  margin-right: 4px;
}

/* TẦNG 2: NGÔN NGỮ ĐỜI THƯỜNG / THỰC TẾ (TÔNG MÀU XANH CYAN HIỆN ĐẠI & THOÁNG ĐÃNG) */
.astro-layer-box.box-practical {
  background: linear-gradient(135deg, rgba(14, 28, 48, 0.85) 0%, rgba(10, 20, 36, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid #38bdf8;
}

.astro-layer-box.box-practical .layer-badge.badge-practical {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.astro-layer-box.box-practical .reading-bullet {
  color: #f8fafc;
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 12px 0 12px 28px;
}

.astro-layer-box.box-practical .reading-bullet::before {
  content: "💬";
  left: -26px;
  top: 1px;
  font-size: 0.9rem;
}

.astro-layer-box.box-practical .reading-bullet strong {
  color: #38bdf8;
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
}

.expert-quote-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(230, 202, 101, 0.3);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
  color: #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.7;
}

.expert-quote-card strong {
  color: #fde047;
}

.expert-quote-card em {
  color: #cbd5e1;
  font-style: italic;
}

.reading-quote-callout {
  background: rgba(230, 202, 101, 0.05);
  border-left: 3px solid var(--gold-primary);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.7;
}

.phu-quote-box {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.15) 0%, rgba(30, 15, 25, 0.5) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-left: 4px solid #f43f5e;
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #ffe4e6;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.7;
}

.phu-quote-box strong {
  color: #fecdd3;
  letter-spacing: 0.02em;
}

.remedy-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 78, 59, 0.3) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #d1fae5;
  font-size: 0.96rem;
  line-height: 1.7;
}

.remedy-box strong {
  color: #6ee7b7;
}

/* ================= TAB 4: 5 CHUYÊN ĐỀ CHỌN LỌC ================= */
.thematic-tab-header {
  text-align: center;
  margin-bottom: 24px;
}

/* Combo notice banner in Tab 4 */
.thematic-vip-combo-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(184, 151, 40, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 16px auto 0;
  max-width: 860px;
  text-align: left;
}

.thematic-vip-combo-banner .combo-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.thematic-vip-combo-banner .combo-text {
  flex: 1;
}

.thematic-vip-combo-banner .combo-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 3px;
  font-weight: 700;
}

.thematic-vip-combo-banner .combo-text span {
  display: block;
  font-size: 0.82rem;
  color: #ced4da;
  line-height: 1.45;
}

.thematic-vip-combo-banner .btn-combo-upgrade {
  background: linear-gradient(135deg, #d4af37 0%, #b89728 100%);
  color: #0b0f19;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.thematic-vip-combo-banner .btn-combo-upgrade:hover {
  background: linear-gradient(135deg, #e6ca65 0%, #d4af37 100%);
  transform: translateY(-1px);
}

/* Thematic Persona Bar */
.thematic-persona-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 22px;
}

.thematic-persona-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thematic-persona-avatar {
  font-size: 1.9rem;
  line-height: 1;
}

.thematic-persona-meta {
  display: flex;
  flex-direction: column;
}

.thematic-persona-label {
  font-size: 0.72rem;
  color: #868e96;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.thematic-persona-name {
  font-size: 1rem;
  color: var(--gold-light);
  font-weight: 700;
}

.thematic-persona-tagline {
  font-size: 0.78rem;
  color: #adb5bd;
}

.thematic-persona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-unlock-thematic-bundle:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.thematic-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.thematic-select-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
}

.thematic-select-card .thm-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.thematic-select-card .thm-text strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 2px;
}

.thematic-select-card .thm-text small {
  display: block;
  font-size: 0.75rem;
  color: #868e96;
}

.thematic-select-card .thm-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffd43b;
  background: rgba(230, 202, 101, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.thematic-select-card:hover {
  border-color: rgba(230, 202, 101, 0.5);
  transform: translateY(-2px);
}

.thematic-select-card.active {
  border-color: var(--gold-primary);
  background: rgba(230, 202, 101, 0.12);
  box-shadow: 0 4px 18px rgba(230, 202, 101, 0.2);
}

.thematic-display-container {
  margin-top: 10px;
}

.thematic-locked-banner {
  background: radial-gradient(circle at center, rgba(35, 25, 20, 0.95) 0%, rgba(20, 16, 16, 0.98) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 0 30px rgba(230, 202, 101, 0.2);
  margin-bottom: 24px;
}

.thm-locked-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201, 42, 42, 0.2);
  border: 1px solid var(--crimson-royal);
  color: #ff8787;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.thm-locked-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 8px;
}

.thm-locked-desc {
  color: #ced4da;
  font-size: 0.95rem;
  max-width: 650px;
  margin: 0 auto 16px;
}

.thm-locked-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.thm-locked-price .old-p {
  font-size: 1.05rem;
  text-decoration: line-through;
  color: #868e96;
}

.thm-locked-price .new-p {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #ffd43b;
}

.thm-locked-price .disc-p {
  color: #8ce99a;
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-unlock-thematic {
  background: var(--gold-gradient);
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  color: #12151c;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(230, 202, 101, 0.35);
  transition: all 0.2s;
}

.btn-unlock-thematic:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.thematic-report-content {
  margin-bottom: 24px;
}

.thematic-card-report {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.thematic-expert-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(230, 202, 101, 0.2);
  margin-bottom: 20px;
}

.thematic-expert-avatar {
  font-size: 2.6rem;
}

.thematic-expert-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.thematic-expert-tagline {
  font-size: 0.82rem;
  color: #ffd43b;
}

.thematic-report-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 10px;
}

.thematic-report-summary {
  font-size: 0.95rem;
  color: var(--gold-light);
  background: rgba(230, 202, 101, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

.thematic-upgrade-callout {
  background: linear-gradient(135deg, rgba(230, 202, 101, 0.15) 0%, rgba(20, 25, 36, 0.9) 100%);
  border: 1px dashed var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.thematic-upgrade-callout .callout-left h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.thematic-upgrade-callout .callout-left p {
  font-size: 0.86rem;
  color: #ced4da;
  max-width: 680px;
}

.btn-upgrade-full {
  background: var(--gold-gradient);
  color: #12151c;
  font-weight: 800;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(230, 202, 101, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-upgrade-full:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ================= MODAL THANH TOÁN VIETQR ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vietqr-modal {
  background: var(--bg-paper);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #868e96;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-package-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(230, 202, 101, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.qr-image-container {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  margin: 14px auto;
  display: inline-block;
}

.qr-image {
  width: 220px;
  height: 220px;
  display: block;
}

.payment-info-box {
  background: rgba(13, 16, 23, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  text-align: left;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ced4da;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--gold-primary);
  color: #12151c;
}

.payment-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #ffd43b;
  margin-top: 10px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-simulate {
  margin-top: 14px;
  background: rgba(43, 138, 62, 0.25);
  border: 1px solid var(--jade-green);
  color: #8ce99a;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.btn-simulate:hover {
  background: rgba(43, 138, 62, 0.4);
}

.btn-export-pdf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 22px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 40px;
  color: #12151c;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-export-pdf:hover {
  transform: translateY(-2px);
}

/* ===================================================================
   CHẾ ĐỘ IN ẤN & XUẤT FILE PDF ĐỒNG NHẤT MÀU SẮC NỘI DUNG VỚI WEBSITE
   Phong cách Á Đông Cổ Điển Sang Trọng (Imperial Gold & Obsidian Dark)
   Đồng bộ 100% màu sắc trang web trên tất cả các màn hình
   =================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 12mm 12mm 12mm;
  }

  /* 1. ÉP BUỘC TRÌNH DUYỆT GIỮ NGUYÊN 100% MÀU NỀN & MÀU CHỮ CỦA TRANG WEB */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    background-color: #0d0f14 !important;
    background-image: none !important;
    color: #f1f3f5 !important;
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 10pt !important;
    line-height: 1.6 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* 2. ẨN TẤT CẢ CÁC THÀNH PHẦN KHÔNG PHẢI NỘI DUNG KẾT QUẢ ĐANG XEM */
  .site-header,
  .form-card,
  #formCard,
  .cta-banner,
  .btn-export-pdf,
  #btnExportPdf,
  .modal-overlay,
  #paymentModal,
  .tester-toolbar,
  #testerToolbar,
  .result-tabs-nav,
  #resultTabsNav,
  .reader-toolbar,
  .reading-sidebar,
  .thematic-selector-grid,
  .thematic-tab-intro,
  .thematic-upgrade-callout,
  .thematic-locked-banner,
  #thematicLockedBanner,
  .paywall-card,
  #readingLockedView,
  .btn-reader-action,
  .btn-font-size,
  .font-resizer-group,
  .laso-tab-intro .intro-guide,
  .inspector-aspects-quick,
  .btn-aspect-inspect,
  .cung-inspector-card,
  .hook-actions-callout,
  .btn-thematic-print,
  .btn-laso-print {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* 3. ĐIỀU HƯỚNG HIỂN THỊ: CHỈ IN TAB ĐANG ACTIVE */
  #resultArea {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .tab-content-panel {
    display: none !important;
  }

  .tab-content-panel.active {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
  }

  .reading-layout-with-toc {
    display: block !important;
    width: 100% !important;
  }

  .reading-main-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 4. QUẢN LÝ NGẮT TRANG (PAGE BREAKS) & CHỐNG TRANG RỖNG */
  .chapter-card {
    page-break-inside: auto !important;
    break-inside: auto !important;
    margin-bottom: 24px !important;
  }

  /* Mỗi chương bắt đầu ở trang mới để giữ sự trang trọng như sách xuất bản */
  .chapter-card + .chapter-card {
    page-break-before: always !important;
    break-before: page !important;
  }

  /* Tránh ngắt trang ngay sau tiêu đề */
  h1, h2, h3, h4, h5, h6,
  .chapter-title-box,
  .layer-header,
  .bento-header,
  .reading-header-banner,
  .thematic-report-title,
  .hook-header {
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  /* Tránh ngắt trang giữa chừng bên trong các khối tóm tắt hoặc hộp trích dẫn */
  .phu-quote-box,
  .remedy-box,
  .reading-quote-callout,
  .expert-quote-card,
  .bento-item,
  .reading-scenario-item,
  .chapter-summary-banner,
  .thematic-expert-header {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* 5. ĐỒNG BỘ 100% MÀU SẮC VỚI TRANG WEB: TAB 3 - LUẬN GIẢI TRỌN ĐỜI */
  .reading-header-banner {
    background-color: #141824 !important;
    border: 1px solid rgba(230, 202, 101, 0.4) !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    margin-bottom: 22px !important;
    text-align: center !important;
    page-break-inside: avoid !important;
  }

  .reading-header-banner .badge-tag {
    display: inline-block !important;
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    color: #f7e7a9 !important;
    background-color: rgba(230, 202, 101, 0.15) !important;
    border: 1px solid rgba(230, 202, 101, 0.35) !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
  }

  .reading-main-heading {
    font-size: 17pt !important;
    font-weight: 800 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e6ca65 !important;
    -webkit-text-fill-color: #e6ca65 !important;
    margin: 6px 0 !important;
  }

  .reading-main-sub {
    font-size: 9.5pt !important;
    color: #ced4da !important;
    margin: 0 !important;
  }

  /* Bento Grid Cốt Cách Bản Mệnh */
  .core-traits-bento {
    background: linear-gradient(135deg, #141b2d 0%, #0d121e 100%) !important;
    border: 1px solid rgba(230, 202, 101, 0.35) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    page-break-inside: avoid !important;
  }

  .bento-header {
    margin-bottom: 12px !important;
    border-bottom: 1px solid rgba(230, 202, 101, 0.2) !important;
    padding-bottom: 8px !important;
  }

  .bento-badge {
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #f7e7a9 !important;
    background-color: rgba(230, 202, 101, 0.15) !important;
    border: 1px solid rgba(230, 202, 101, 0.3) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
  }

  .bento-title {
    font-size: 13pt !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 6px 0 0 0 !important;
  }

  .bento-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .bento-item {
    background-color: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
  }

  .bento-item.bento-full {
    grid-column: 1 / -1 !important;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    border-left: 3px solid #e6ca65 !important;
  }

  .bento-label {
    font-size: 8pt !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    margin-bottom: 2px !important;
  }

  .bento-val {
    font-size: 11pt !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
  }

  .bento-val.val-gold {
    color: #fde047 !important;
    -webkit-text-fill-color: #fde047 !important;
  }

  .bento-val.val-star {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
  }

  .bento-sub {
    font-size: 8.5pt !important;
    color: #cbd5e1 !important;
    line-height: 1.4 !important;
  }

  /* Thẻ Chương (Chapter Card) */
  .chapter-card {
    background-color: #141822 !important;
    border: 1px solid rgba(230, 202, 101, 0.25) !important;
    border-radius: 14px !important;
    padding: 22px 26px !important;
    color: #e2e8f0 !important;
  }

  .chapter-title-box {
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
    border-bottom: 1px solid rgba(230, 202, 101, 0.25) !important;
    padding-bottom: 10px !important;
    margin-bottom: 14px !important;
  }

  .chapter-num {
    font-size: 18pt !important;
    font-weight: 900 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e6ca65 !important;
    -webkit-text-fill-color: #e6ca65 !important;
  }

  .chapter-title {
    font-size: 14.5pt !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  .chapter-summary-banner {
    background-color: rgba(230, 202, 101, 0.08) !important;
    border-left: 3px solid #e6ca65 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 14px !important;
    margin-bottom: 18px !important;
    color: #f1f5f9 !important;
  }

  .chapter-summary-banner .summary-icon {
    color: #e6ca65 !important;
  }

  .chapter-summary-banner .summary-text {
    font-size: 9.8pt !important;
    color: #f1f5f9 !important;
    line-height: 1.55 !important;
  }

  /* Nội dung chương & Typography */
  .chapter-body {
    font-size: 10pt !important;
    line-height: 1.7 !important;
    color: #e2e8f0 !important;
  }

  .chapter-body strong {
    color: #ffffff !important;
    font-weight: 700 !important;
  }

  .chapter-divider {
    border: none !important;
    border-top: 1px dashed rgba(230, 202, 101, 0.25) !important;
    margin: 20px 0 !important;
  }

  .chapter-section-heading {
    font-size: 12pt !important;
    font-weight: 700 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #fef08a !important;
    -webkit-text-fill-color: #fef08a !important;
    border-left: 3px solid #e6ca65 !important;
    background: linear-gradient(90deg, rgba(230, 202, 101, 0.12) 0%, transparent 100%) !important;
    padding: 6px 14px !important;
    margin: 18px 0 12px 0 !important;
    border-radius: 0 6px 6px 0 !important;
  }

  .chapter-section-heading.scenario-heading {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
    border-left: 3px solid #38bdf8 !important;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.14) 0%, transparent 100%) !important;
  }

  .chapter-sub-heading {
    font-size: 10.5pt !important;
    font-weight: 600 !important;
    color: #f8fafc !important;
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-left: 3px solid #60a5fa !important;
    padding: 8px 12px !important;
    margin: 14px 0 10px 0 !important;
    border-radius: 0 6px 6px 0 !important;
  }

  /* Hai Tầng Ngôn Ngữ: Chuyên Ngành vs Đời Thường */
  .astro-layer-box {
    border-radius: 8px !important;
    padding: 14px 18px !important;
    margin: 16px 0 !important;
    backdrop-filter: none !important;
  }

  .astro-layer-box.box-tech {
    background-color: rgba(26, 24, 48, 0.85) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    border-left: 4px solid #6366f1 !important;
    color: #e2e8f0 !important;
  }

  .astro-layer-box.box-practical {
    background-color: rgba(13, 38, 30, 0.85) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    border-left: 4px solid #10b981 !important;
    color: #e2e8f0 !important;
  }

  .layer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .layer-badge {
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
  }

  .badge-tech { color: #a5b4fc !important; }
  .badge-practical { color: #6ee7b7 !important; }

  .layer-desc {
    font-size: 8pt !important;
    color: #94a3b8 !important;
    font-style: italic !important;
  }

  /* Danh sách & Bullet */
  .reading-list, .reading-ordered-list {
    margin: 10px 0 !important;
    padding-left: 0 !important;
  }

  .reading-bullet {
    margin: 6px 0 6px 20px !important;
    color: #e2e8f0 !important;
    line-height: 1.6 !important;
  }

  .reading-bullet::before {
    color: #e6ca65 !important;
  }

  .reading-bullet.bullet-tech::before {
    color: #818cf8 !important;
  }

  .reading-bullet.bullet-practical::before {
    color: #34d399 !important;
  }

  .reading-scenario-item {
    background-color: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-left: 3px solid #38bdf8 !important;
    padding: 10px 14px !important;
    margin: 10px 0 10px 12px !important;
    border-radius: 6px !important;
    color: #e2e8f0 !important;
  }

  .reading-numbered-item {
    margin: 6px 0 6px 24px !important;
    color: #e2e8f0 !important;
    line-height: 1.6 !important;
  }

  /* Hộp Phú Cổ Điển & Cẩm Nang Hành Động */
  .phu-quote-box {
    background-color: rgba(245, 159, 0, 0.12) !important;
    border: 1px solid rgba(245, 159, 0, 0.3) !important;
    border-left: 4px solid #f59f00 !important;
    padding: 12px 16px !important;
    margin: 14px 0 !important;
    border-radius: 6px !important;
    color: #ffe066 !important;
    font-size: 9.5pt !important;
  }

  .phu-quote-box strong {
    color: #ffd43b !important;
  }

  .remedy-box {
    background-color: rgba(43, 138, 62, 0.16) !important;
    border: 1px solid rgba(43, 138, 62, 0.35) !important;
    border-left: 4px solid #40c057 !important;
    padding: 12px 16px !important;
    margin: 14px 0 !important;
    border-radius: 6px !important;
    color: #b2f2bb !important;
    font-size: 9.5pt !important;
  }

  .remedy-box strong {
    color: #69db7c !important;
  }

  .reading-quote-callout, .expert-quote-card {
    background-color: rgba(230, 202, 101, 0.08) !important;
    border: 1px solid rgba(230, 202, 101, 0.25) !important;
    border-left: 4px solid #e6ca65 !important;
    padding: 12px 16px !important;
    margin: 14px 0 !important;
    border-radius: 6px !important;
    color: #f1f3f5 !important;
    font-style: italic !important;
  }

  .evidence-tags-container {
    border-top: 1px dashed rgba(230, 202, 101, 0.2) !important;
    padding-top: 8px !important;
    margin-top: 12px !important;
  }

  .evidence-label {
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-right: 6px !important;
  }

  .evidence-tag {
    display: inline-block !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    font-size: 8pt !important;
    color: #cbd5e1 !important;
    margin-right: 4px !important;
    margin-bottom: 3px !important;
  }

  /* 6. ĐỒNG BỘ 100% MÀU SẮC VỚI TRANG WEB: TAB 1 - BẢN ĐỒ 12 CUNG & THIÊN BÀN */
  .laso-tab-intro {
    background-color: rgba(20, 24, 34, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
  }

  .panel-section-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e6ca65 !important;
    -webkit-text-fill-color: #e6ca65 !important;
  }

  .panel-section-desc {
    color: #909296 !important;
  }

  .laso-container {
    width: 100% !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
  }

  .laso-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    background-color: rgba(10, 12, 17, 0.98) !important;
    border: 2px solid #e6ca65 !important;
    border-radius: 12px !important;
    padding: 8px !important;
  }

  .laso-cell {
    background-color: rgba(20, 24, 34, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    min-height: 120px !important;
    color: #f1f3f5 !important;
  }

  .cung-name {
    color: #e6ca65 !important;
    font-weight: 800 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
  }

  .thien-ban {
    background: radial-gradient(circle at center, rgba(30, 38, 56, 0.98) 0%, rgba(15, 18, 26, 0.98) 100%) !important;
    border: 1px solid rgba(230, 202, 101, 0.45) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    color: #f1f3f5 !important;
  }

  .thien-ban-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e6ca65 !important;
    font-weight: 800 !important;
  }

  .solar-time-banner {
    background-color: rgba(230, 202, 101, 0.12) !important;
    border: 1px solid #e6ca65 !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 6px !important;
    color: #f1f3f5 !important;
  }

  .bazi-balance-box {
    background-color: rgba(20, 24, 34, 0.9) !important;
    border: 1px solid rgba(230, 202, 101, 0.3) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    color: #f1f3f5 !important;
    page-break-inside: avoid !important;
  }

  /* 7. ĐỒNG BỘ 100% MÀU SẮC VỚI TRANG WEB: TAB 2 - BẮT MẠCH ĐỜI NGƯỜI */
  .hook-header {
    border-bottom: 1px solid rgba(230, 202, 101, 0.3) !important;
    padding-bottom: 10px !important;
    margin-bottom: 16px !important;
  }

  .hook-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e6ca65 !important;
    -webkit-text-fill-color: #e6ca65 !important;
  }

  .trust-section-block {
    background-color: rgba(14, 17, 24, 0.95) !important;
    border: 1px solid rgba(230, 202, 101, 0.25) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
  }

  .trust-section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-bottom: 8px !important;
    margin-bottom: 14px !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  .trust-cards-grid,
  .trust-timeline-grid,
  .cung-scores-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .trust-card,
  .timeline-verify-card,
  .cung-score-card {
    background-color: rgba(20, 24, 34, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    color: #f1f3f5 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .cung-score-progress-bar {
    background-color: rgba(255, 255, 255, 0.15) !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .cung-score-progress-fill {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .btn-cung-action {
    display: none !important;
  }

  /* 8. ĐỒNG BỘ 100% MÀU SẮC VỚI TRANG WEB: TAB 4 - 5 CHUYÊN ĐỀ */
  .thematic-card-report {
    background-color: #141822 !important;
    border: 1px solid rgba(230, 202, 101, 0.35) !important;
    border-radius: 14px !important;
    padding: 22px 26px !important;
    color: #e2e8f0 !important;
    page-break-inside: auto !important;
  }

  .thematic-expert-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    border-bottom: 1px solid rgba(230, 202, 101, 0.25) !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
  }

  .thematic-expert-avatar {
    font-size: 2rem !important;
  }

  .thematic-expert-info h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #f7e7a9 !important;
    margin: 0 !important;
  }

  .thematic-expert-tagline {
    color: #e6ca65 !important;
    font-size: 8.5pt !important;
  }

  .thematic-report-title {
    font-size: 16pt !important;
    font-weight: 800 !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #e6ca65 !important;
    -webkit-text-fill-color: #e6ca65 !important;
    border-bottom: 1px solid rgba(230, 202, 101, 0.25) !important;
    padding-bottom: 8px !important;
    margin: 12px 0 16px 0 !important;
  }

  .thematic-report-summary {
    background-color: rgba(230, 202, 101, 0.08) !important;
    border-left: 3px solid #e6ca65 !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 14px !important;
    margin-bottom: 18px !important;
    color: #f1f5f9 !important;
  }
}

/* ===================================================================
 * 11. BẢO MẬT BẢN QUYỀN & CHỐNG CLONE (ANTI-COPY & ANTI-INSPECT)
 * =================================================================== */
/* Chống bôi đen sao chép trên các khu vực nội dung bài luận và bản đồ lá số */
.reading-layout-with-toc,
.thematic-report-content,
.trust-preview-section,
.laso-board-container,
.bazi-balance-card,
.solar-time-banner,
.cung-inspector-panel,
.cung-cell,
.star-tag {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Luôn cho phép thao tác văn bản trong form nhập liệu và thông tin thanh toán */
input,
textarea,
select,
.payment-info-box,
.copy-btn,
#qrOrderCode,
#qrAccountNo {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Toast thông báo bảo mật bản quyền */
.security-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(13, 17, 23, 0.95);
  color: #e6ca65;
  border: 1px solid rgba(230, 202, 101, 0.4);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.security-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Footer bản quyền đóng dấu thương hiệu */
.site-footer-copyright {
  margin-top: 48px;
  padding: 24px 16px 36px 16px;
  text-align: center;
  border-top: 1px solid rgba(230, 202, 101, 0.15);
  color: #868e96;
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer-copyright strong {
  color: #f7e7a9;
}

.site-footer-copyright a {
  color: #e6ca65;
  text-decoration: none;
}

.site-footer-copyright a:hover {
  text-decoration: underline;
}
