/* --- PHẦN FORM & CHUNG (GIAO DIỆN MỚI) --- */

/* BẮT ĐẦU: BỔ SUNG BIẾN MÀU VÀ THEMES */
.numerology-container {
  /* Biến màu mặc định (Theme Galaxy) */
  --primary-color: #5a3a9a;
  --primary-color-rgb: 90, 58, 154;
  --primary-dark: #482d7a;
  --primary-light: #f3effb;
  --gradient-start: #6a11cb;
  --gradient-end: #2575fc;
  --heading-color: #641acf;
  --hero-bg-start: #0f0c29;
  --hero-bg-end: #24243e;
  --hero-bg-mid: #302b63;
  --hero-text: #fff;
  --hero-highlight-text: #a1c4fd;
  --accent-color: #ff9800;
  --success-bg: #e8f5e9;
  --success-border: #4caf50;
  --danger-bg: #ffebee;
  --danger-border: #f44336;
  --rating-high: #28a745;
  --rating-medium: #ffc107;
  --rating-low: #dc3545;
  --bg-color: #fff;
  --border-color: #e9e9e9;
  --text-color-primary: #333;
  --text-color-secondary: #666;
  --button-text-color: #fff;
}

/* Các theme khác sẽ ghi đè các biến này */
.theme-sunrise { --primary-color: #ff8c00; --primary-color-rgb: 255, 140, 0; --primary-dark: #e67e22; --primary-light: #fff5e6; --gradient-start: #f4791f; --gradient-end: #f1c40f; --heading-color: #d35400; --hero-bg-start: #ff7e5f; --hero-bg-end: #feb47b; --hero-bg-mid: #ff8c6b; --accent-color: #3498db; --hero-highlight-text: #f9d423;}
.theme-ocean { --primary-color: #0077b6; --primary-color-rgb: 0, 119, 182; --primary-dark: #023e8a; --primary-light: #e0f7fa; --gradient-start: #00b4d8; --gradient-end: #48cae4; --heading-color: #005f73; --hero-bg-start: #03045e; --hero-bg-end: #0077b6; --hero-bg-mid: #023e8a; --accent-color: #fca311; --hero-highlight-text: #90e0ef;}
.theme-forest { --primary-color: #2d6a4f; --primary-color-rgb: 45, 106, 79; --primary-dark: #1b4332; --primary-light: #d8f3dc; --gradient-start: #40916c; --gradient-end: #74c69d; --heading-color: #1b4332; --hero-bg-start: #081c15; --hero-bg-end: #2d6a4f; --hero-bg-mid: #1b4332; --accent-color: #ffb703; --hero-highlight-text: #b7e4c7;}
.theme-classic { --primary-color: #343a40; --primary-color-rgb: 52, 58, 64; --primary-dark: #212529; --primary-light: #f8f9fa; --gradient-start: #495057; --gradient-end: #6c757d; --heading-color: #000; --hero-bg-start: #212529; --hero-bg-end: #495057; --hero-bg-mid: #343a40; --accent-color: #c29958; --bg-color: #fdfdfd; --hero-highlight-text: #dee2e6;}
.theme-rose { --primary-color: #b07d62; --primary-color-rgb: 176, 125, 98; --primary-dark: #8a5a44; --primary-light: #f7ede2; --gradient-start: #c38e70; --gradient-end: #e6b8a2; --heading-color: #7f5539; --hero-bg-start: #6d4c41; --hero-bg-end: #a1887f; --hero-bg-mid: #8a5a44; --accent-color: #a3b18a; --hero-highlight-text: #fde2e4;}
.theme-midnight { --primary-color: #4a4e69; --primary-color-rgb: 74, 78, 105; --primary-dark: #22223b; --primary-light: #f2e9e4; --gradient-start: #6b708b; --gradient-end: #9a8c98; --heading-color: #22223b; --hero-bg-start: #141318; --hero-bg-end: #2f324e; --hero-bg-mid: #22223b; --accent-color: #c9ada7; --hero-highlight-text: #e0e1dd;}
.theme-mint { --primary-color: #00a896; --primary-color-rgb: 0, 168, 150; --primary-dark: #028090; --primary-light: #e0f2f1; --gradient-start: #00bfa5; --gradient-end: #05c2a7; --heading-color: #028090; --hero-bg-start: #006d77; --hero-bg-end: #48bca6; --hero-bg-mid: #028090; --accent-color: #f79f79; --hero-highlight-text: #edfffa;}
.theme-coral { --primary-color: #ff6f61; --primary-color-rgb: 255, 111, 97; --primary-dark: #e65c50; --primary-light: #fff0ef; --gradient-start: #ff8e84; --gradient-end: #ffb3ac; --heading-color: #d94b3d; --hero-bg-start: #d1495b; --hero-bg-end: #edae49; --hero-bg-mid: #e07a5f; --accent-color: #00798c; --hero-highlight-text: #f9dcc4;}
.theme-lavender { --primary-color: #9d81b3; --primary-color-rgb: 157, 129, 179; --primary-dark: #7b5e91; --primary-light: #f3eef7; --gradient-start: #a389b8; --gradient-end: #b39dc5; --heading-color: #6a4c82; --hero-bg-start: #4a306d; --hero-bg-end: #8e6ab8; --hero-bg-mid: #6b4d90; --accent-color: #f7c59f; --hero-highlight-text: #e5d9f2;}
/* KẾT THÚC BỔ SUNG */

.numerology-container { max-width: 1000px; padding: 10px; margin: 20px auto; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.numerology-container h1 { text-align: center; color: var(--heading-color); font-size: 2em; padding: 25px 25px 15px 25px; margin: 0; font-weight: bold; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #444; font-size: 15px; }
.form-control { width: 100%; padding: 12px 15px; border-radius: 8px; border: 1px solid #ddd; box-sizing: border-box; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.form-control:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.btn-calculate { display: block; width: 100%; padding: 14px; background: linear-gradient(45deg, var(--gradient-start) 0%, var(--gradient-end) 100%); color: var(--button-text-color); border: none; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; margin-top: 15px; transition: transform 0.2s, box-shadow 0.2s; }
.btn-calculate:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-calculate:disabled { background: #ccc; cursor: not-allowed; }
.compatibility-form-container { display: flex; flex-wrap: wrap; gap: 20px; }
.person-form { flex: 1; min-width: 250px; padding: 20px; border: 1px solid var(--border-color); border-radius: 8px; background-color: #fcfcfc; }
.person-form h4 { margin-top: 0; color: var(--primary-dark); border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; font-size: 16px; font-weight: 600; }
.loader { 
    border: 5px solid #f3f3f3; 
    border-radius: 50%; 
    border-top: 5px solid var(--primary-color); 
    width: 40px; 
    height: 40px; 
    animation: spin 1s linear infinite; 
    /* Bỏ margin: 20px auto; */
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* --- BỔ SUNG: STYLE CHO LOADER MỚI VỚI TEXT --- */
.loader-wrapper {
    display: flex; /* Sửa ở đây để hiển thị đúng */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
}

#loader-text {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
    margin: 0;
    animation: fadeIn 0.5s ease-in-out;
}

/* --- PHẦN KẾT QUẢ --- */
.result-wrapper { margin-top: 25px; padding: 0; background-color: transparent; border: none; transition: opacity 0.8s ease-in-out; }
.report-layout { display: flex; gap: 10px; align-items: flex-start; }
.report-content { flex: 1; min-width: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- 1. MỤC LỤC (Table of Contents) --- */
.report-toc { position: -webkit-sticky; position: sticky; top: 20px; width: 250px; flex-shrink: 0; }
.toc-title { font-size: 1.1em; font-weight: 600; color: var(--text-color-primary); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item a { display: block; padding: 8px 12px; color: var(--text-color-secondary); text-decoration: none; border-radius: 6px; font-size: 15px; border-left: 3px solid transparent; transition: all 0.2s ease-in-out; }
.toc-item a:hover { background-color: #f5f5f5; color: var(--primary-color); }
.toc-item a.active { background-color: var(--primary-light); color: var(--primary-color); font-weight: 600; border-left-color: var(--primary-color); }

/* --- GIAO DIỆN HERO MỚI --- */
.report-hero-galaxy { padding: 30px 20px; border-radius: 12px; background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-mid) 50%, var(--hero-bg-end) 100%); color: var(--hero-text); text-align: center; margin-bottom: 20px; animation: fadeIn 1s ease-in-out; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.hero-main-number { width: 180px; height: 180px; margin: 0 auto 25px auto; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.3); display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); }
.hero-main-number-value { font-size: 4.5em; font-weight: 700; line-height: 1; color: var(--hero-text); }
.hero-main-number-label { font-size: 1em; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.8; }
.hero-sub-numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 15px; max-width: 700px; margin: 0 auto 30px auto; }
.hero-sub-item { display: flex; flex-direction: column; justify-content: center; padding: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 8px; }
.hero-sub-item span { font-size: 0.8em; opacity: 0.7; }
.hero-sub-item strong { font-size: 2em; font-weight: 600; line-height: 1.2; }
.hero-chart-container { height: 200px; margin-bottom: 20px; }
.hero-summary-text { max-width: 650px; margin: 20px auto 0 auto; padding: 20px; background: rgba(0,0,0,0.25); border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); text-align: left; }
.hero-summary-text h4 { margin-top: 0; margin-bottom: 15px; text-align: center; font-size: 1.2em; font-weight: bold; }
.hero-summary-text p { margin-bottom: 0; opacity: 0.9; line-height: 1.7; text-align: justify; }
.hero-summary-text p strong { color: var(--hero-highlight-text); }

/* -- 4. NÂNG CẤP Giao diện Tab cho KẾT QUẢ Chi Tiết -- */
.detailed-report { background: var(--bg-color); padding: 20px; border: 1px solid #ddd; border-radius: 8px; }
.result-tabs-nav { display: flex; flex-wrap: wrap; margin-bottom: 20px; background-color: #f9f9f9; border-radius: 8px; padding: 5px; }
.result-tab-item { padding: 10px 18px; cursor: pointer; border: none; background-color: transparent; color: var(--text-color-secondary); border-radius: 6px; font-size: 15px; font-weight: 500; transition: all 0.2s ease-in-out; flex-grow: 1; text-align: center; }
.result-tab-item:hover { color: var(--primary-color); background-color: var(--primary-light); }
.result-tab-item.active { color: var(--button-text-color); background-color: var(--primary-color); font-weight: 600; box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.3); }
.result-tab-content { display: none; padding-top: 15px; }
.result-tab-content.active { display: block; animation: fadeIn 0.5s ease-in-out; }

/* -- 3. ĐỒNG BỘ HEADING & CHUNG -- */
.report-section { margin-bottom: 30px; }
.report-section-title { font-size: 1.5em; color: var(--primary-dark); border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; margin-bottom: 18px; margin-top: 0; font-weight: 700; }

/* -- 2. ACCORDION (THU/MỞ) cho number-card -- */
.number-card { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.number-card-header { display: flex; align-items: center; gap: 15px; padding: 15px 20px; cursor: pointer; background-color: #fcfcfc; transition: background-color 0.2s; }
.number-card-header:hover { background-color: #f5f5f5; }
.number-card-header::after { content: '▼'; margin-left: auto; font-size: 0.8em; transition: transform 0.3s ease; color: #888; }
.number-card.is-open > .number-card-header::after { transform: rotate(180deg); }
.number-card-value { font-size: 2.8em; font-weight: bold; color: var(--primary-color); line-height: 1; }
.number-card-title { font-size: 1.2em; font-weight: 700; color: var(--text-color-primary); }
.number-card-interpretation { font-size: 1em; line-height: 1.7; color: var(--text-color-primary); max-height: 0; transition: max-height 0.4s ease, padding 0.4s ease; overflow: hidden; }
.number-card-interpretation-inner { padding: 0 20px 20px 20px; }
.number-card.is-open > .number-card-interpretation { max-height: 10000px; }
.number-card-interpretation p:first-child { margin-top: 0; }

/* -- Style các mục con trong tab khác -- */
.charts-display-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; justify-items: center; font-size: 15px; }
.chart-block { text-align: center; }
.numerology-grid-chart { width: 180px; height: 180px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background-color: #fff; padding: 4px; border-radius: 4px; border: 1px solid #ddd; }
.grid-cell { background-color: #e3f2fd; color: #0d47a1; display: flex; align-items: center; justify-content: center; font-size: 1.3em; font-weight: bold; border-radius: 2px; }
.grid-cell.filled { background-color: #0288d1; color: #fff; }
.chart-block-title { margin-top: 10px; font-weight: 600; color: #444; font-size: 18px; }
.cycles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.cycle-card { background-color: #f9f9f9; border: 1px solid #eee; padding: 15px; border-radius: 6px; text-align: center; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; cursor: pointer; }
.cycle-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.cycle-card-value { font-size: 2.5em; font-weight: bold; color: var(--danger-border); margin-bottom: 5px; }
.cycle-card-label { font-size: 1em; font-weight: 600; color: var(--text-color-primary); margin-bottom: 5px; }
.cycle-card-age { font-size: 0.9em; color: var(--text-color-secondary); }
.cycles-chart-container { position: relative; height: 300px; margin-bottom: 30px; }
.arrows-interpretation-list ul { list-style-type: none; padding: 0; margin: 0; }
.arrows-interpretation-list li { padding: 15px; margin-bottom: 10px; border-radius: 4px; line-height: 1.6; }
.arrows-interpretation-list .strength { background-color: var(--success-bg); border-left: 5px solid var(--success-border); }
.arrows-interpretation-list .weakness { background-color: var(--danger-bg); border-left: 5px solid var(--danger-border); }
.arrows-interpretation-list li strong { display: inline; margin-right: 5px; color: var(--text-color-primary); }
.arrows-interpretation-list li p { display: inline; margin: 0; padding: 0; }
.career-chart-container { position: relative; height: 350px; max-width: 400px; margin: 0 auto; }
#career-analysis-container { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.career-analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.career-list-suitable h5, .career-list-consider h5 { font-size: 1.1em; margin-top: 0; margin-bottom: 15px; display: flex; align-items: center; font-weight: 600; }
.career-list-suitable h5 { color: var(--rating-high); } .career-list-consider h5 { color: var(--rating-low); }
.career-analysis-grid ul { list-style-type: none; padding: 0; margin: 0; }
.career-analysis-grid li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.career-analysis-grid li:last-child { border-bottom: none; }
.career-name { font-weight: 500; } .career-score { font-weight: bold; }
.career-list-suitable .career-score { color: var(--rating-high); } .career-list-consider .career-score { color: var(--rating-low); }
.icon-check::before, .icon-warning::before { font-family: Arial, sans-serif; margin-right: 8px; font-size: 1.2em; line-height: 1; }
.icon-check::before { content: '✓'; } .icon-warning::before { content: '⚠️'; }

/* --- CSS CHO GIAO DIỆN DỰ BÁO --- */
.forecast-section { border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 25px; background-color: #fcfcfc; }
.forecast-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.forecast-nav-item { padding: 8px 16px; border: 1px solid #ccc; background-color: #fff; border-radius: 20px; cursor: pointer; font-size: 14px; transition: all 0.2s ease-in-out; color: var(--text-color-secondary); }
.forecast-nav-item:hover { background-color: #f0f0f0; border-color: #999; }
.forecast-nav-item.active { background-color: var(--accent-color); color: var(--button-text-color); border-color: var(--accent-color); font-weight: bold; }
.forecast-content { display: none; animation: fadeIn 0.4s ease-in-out; }
.forecast-content.active { display: block; }
.forecast-content h4 { margin-top: 0; font-size: 1.1em; font-weight: 700; color: var(--primary-color); }
.forecast-interpretation { font-size: 1em; line-height: 1.7; color: var(--text-color-primary); }
.forecast-interpretation p:first-child { margin-top: 0; }
.forecast-chart-container { position: relative; height: 250px; margin-bottom: 20px; }

/* 5. LÀM NỔI BẬT KẾT QUẢ SỐ */
.forecast-result-value { background-color: var(--primary-color); color: var(--button-text-color); padding: 2px 8px; border-radius: 4px; font-weight: bold; display: inline-block; margin-left: 5px; }

/* --- CSS CHO MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; padding: 20px; box-sizing: border-box; }
.modal-content { background-color: var(--bg-color); padding: 25px 30px; border-radius: 8px; max-width: 600px; width: 100%; box-shadow: 0 5px 20px rgba(0,0,0,0.2); animation: fadeInModal 0.3s ease-out; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.modal-title { margin: 0; font-size: 1.4em; color: var(--primary-color); font-weight: 700; }
.modal-close { font-size: 2em; font-weight: bold; color: #aaa; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--text-color-primary); }
.modal-body { line-height: 1.7; color: var(--text-color-primary); }
@keyframes fadeInModal { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* --- 6. RESPONSIVE --- */
@media (max-width: 960px) {
    .report-layout { flex-direction: column; }
    .report-toc { position: static; width: 100%; margin-bottom: 25px; }
    .toc-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .toc-item a { padding: 6px 10px; font-size: 14px; background: #f5f5f5; }
    .toc-title { display: none; }
}

@media (max-width: 768px) {
    .result-tabs-nav { justify-content: space-around; }
    .hero-main-number { width: 140px; height: 140px; }
    .hero-main-number-value { font-size: 4em; }
    .numerology-container { margin: 10px; max-width: calc(100% - 20px); }
    .nrc-tab-content { padding: 15px; }
}

@media (max-width: 600px) {
    .career-analysis-grid { grid-template-columns: 1fr; }
    .result-tab-item { padding: 8px 10px; font-size: 14px; }
}

/* --- CSS CHO KẾT QUẢ TƯƠNG HỢP --- */
.compatibility-result-wrapper { padding: 25px; border: 1px solid #e0e0e0; border-radius: 12px; background-color: #fcfdff; animation: fadeIn 0.8s ease-in-out; }
.compatibility-result-wrapper h2 { text-align: center; color: var(--primary-dark); font-size: 1.8em; margin-top: 0; margin-bottom: 25px; font-weight: bold; }
.compatibility-score-display { text-align: center; margin-bottom: 20px; }
.compatibility-score-value { font-size: 5em; font-weight: 700; color: var(--gradient-start); line-height: 1; }
.compatibility-score-label { font-size: 1.2em; font-weight: 600; color: var(--text-color-primary); margin-top: 5px; }
.compatibility-summary { text-align: center; max-width: 600px; margin: 0 auto 25px auto; font-size: 1.1em; line-height: 1.6; padding: 15px; background-color: var(--primary-light); border-radius: 8px; }
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.comparison-table th, .comparison-table td { padding: 12px 15px; text-align: center; border-bottom: 1px solid #eee; }
.comparison-table th { background-color: #f9f9f9; font-weight: 600; color: var(--text-color-secondary); }
.comparison-table .number-label { font-weight: 500; text-align: left; color: var(--primary-dark); }
.comparison-table .number-value { font-size: 1.5em; font-weight: bold; }
.comparison-table .rating-icon { font-size: 1.2em; }
.rating-high { color: var(--rating-high); }
.rating-medium { color: var(--rating-medium); }
.rating-low { color: var(--rating-low); }

@media (max-width: 600px) {
    .comparison-table th, .comparison-table td { padding: 8px; font-size: 14px; }
    .comparison-table .number-value { font-size: 1.2em; }
}

/* --- PHẦN 7: TỐI ƯU GIAO DIỆN MOBILE --- */
@media (max-width: 960px) { .report-toc { display: none; } }
@media (max-width: 768px) {
    .result-tabs-nav { display: none; }
    .result-tab-content { display: block !important; padding-top: 0; border-top: 1px solid #eee; margin-top: 20px; }
    .numerology-container h1 { font-size: 1.2em; padding: 20px 15px 10px 15px; }
    .report-hero-galaxy { padding: 20px 15px; }
    .detailed-report, .compatibility-result-wrapper { padding: 15px; }
    .report-section-title { font-size: 1.15em; padding-bottom: 8px; margin-bottom: 15px; }
    body { font-size: 15px; }
    span.career-name { font-size: 14px; }
    .nrc-nav-item { font-size: 14px; }
    .hero-main-number { width: 110px; height: 110px; font-size: 11px; }
    .hero-main-number-value { font-size: 3.2em; }
    .hero-sub-item strong { font-size: 1.5em; }
    .hero-summary-text { padding: 15px; line-height: 1.6; font-size: 14px; }
    .number-card-header { padding: 10px 15px; gap: 12px; }
    .number-card-value { font-size: 2.0em; }
    .number-card-title { font-size: 1.0em; font-weight: 700; }
    .number-card-interpretation-inner { padding: 0 15px 15px 15px; }
    .cycle-card { padding: 12px; }
    .cycle-card-value { font-size: 2.2em; }
    .cycle-card-label { font-size: 0.9em; }
    .hero-chart-container { height: 160px; }
    .numerology-grid-chart { width: 140px; height: 140px; }
    .grid-cell { font-size: 1.0em; }
    .cycles-chart-container { height: 200px; }
    .career-chart-container { height: 280px; }
    .forecast-chart-container { height: 180px; }
    .forecast-nav-item { padding: 6px 12px; font-size: 13px; }
    .forecast-result-value { font-size: 0.9em; padding: 2px 6px; }
    .forecast-content h4 { font-size: 1.0em; }
    .number-card-interpretation { font-size: 14px; line-height: 1.65; }
    .number-card-interpretation h3, .number-card-interpretation h4 { font-size: 1.2em; margin-bottom: 8px; }
    .cycles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cycle-card { padding: 10px 8px; }
    .cycle-card-value { font-size: 1.8em; margin-bottom: 2px; }
    .cycle-card-label { font-size: 0.8em; }
    .cycle-card-age { font-size: 0.75em; }
    .numerology-grid-chart { width: 120px; height: 120px; }
    .grid-cell { font-size: 0.9em; }
    .chart-block-title { font-size: 14px; margin-top: 8px; }
    .arrows-interpretation-list li { font-size: 14px; padding: 12px; line-height: 1.6; }
    .arrows-interpretation-list li strong { display: block; margin-bottom: 5px; font-size: 20px; }
    .arrows-interpretation-list li p { display: block; }
    .forecast-interpretation { font-size: 14px; line-height: 1.6; }
    .forecast-interpretation h3, .forecast-interpretation h4 { font-size: 1.2em; }
}

/* Áp dụng cho các màn hình rất nhỏ (< 480px) */
@media (max-width: 480px) {
    .numerology-container { padding: 0; margin: 5px; max-width: calc(100% - 10px); border: none; box-shadow: none; }
    .nrc-tab-content { padding: 10px; }
    .hero-sub-numbers-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; }
    .charts-display-grid { grid-template-columns: 1fr; gap: 20px; font-size: 14px; }
    .numerology-grid-chart { width: 160px; height: 160px; }
    .comparison-table { font-size: 13px; }
    .comparison-table th, .comparison-table td { padding: 8px 5px; }
    .comparison-table .number-value { font-size: 1.2em; }
    .career-analysis-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Bổ sung tối ưu hiển thị text */
.number-card-interpretation-inner p,
.forecast-interpretation p,
.arrows-interpretation-list li,
.hero-summary-text p,
.modal-body p {
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
.arrows-interpretation-list li strong { text-align: left; }

/* --- PHẦN 9: ĐỊNH DẠNG HƯỚNG DẪN NGƯỜI DÙNG --- */
.user-prompt { font-size: 14px; color: var(--text-color-secondary); font-style: italic; margin-top: -12px; margin-bottom: 18px; padding-left: 5px; text-align: left; }

/* --- PHẦN 10: GHIM (STICKY) THANH TAB TRÊN DESKTOP --- */
@media (min-width: 769px) {
    .result-tabs-nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0px;
        z-index: 500;
        background-color: rgba(249, 249, 249, 0.95);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        transition: top 0.3s ease-in-out;
    }
}

/* --- BỔ SUNG: CSS CHO GIAO DIỆN TƯƠNG HỢP V2 --- */

.compatibility-result-wrapper.v2 {
    background: linear-gradient(160deg, #fff1f8 0%, #edf6ff 100%);
    padding: 20px;
}

.comp-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
}
.person-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1.1em;
}
.person-info span {
    font-size: 0.9em;
    color: var(--text-color-secondary);
}
.heart-icon {
    font-size: 3em;
    color: #ff4d6d;
    animation: pulse 1.5s infinite;
    margin-left: 28px;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
/* --- HIỆU ỨNG TRÁI TIM V3 (DÙNG SVG) --- */
.heart-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 20px auto 40px auto;
}

.heart-anim-left, .heart-anim-right {
    position: absolute;
    top: 0;
    width: calc(50% + 1px); /* SỬA Ở ĐÂY: Làm mỗi nửa rộng hơn một chút để chồng lên nhau */
    height: 100%;
    overflow: hidden; /* Cực kỳ quan trọng, để cắt SVG */
}

.heart-anim-left {
    left: 0;
    transform: translateX(-100vw); /* Bắt đầu từ rất xa bên trái */
    animation: joinLeft 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.heart-anim-right {
    right: 0;
    transform: translateX(100vw); /* Bắt đầu từ rất xa bên phải */
    animation: joinRight 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.heart-svg {
    position: absolute;
    top: 0;
    width: 150px; /* Bằng kích thước container */
    height: 150px; /* Bằng kích thước container */
    fill: var(--primary-color);
}

.heart-anim-left .heart-svg {
    left: 0;
}

.heart-anim-right .heart-svg {
    right: 0;
}

@keyframes joinLeft {
    to { transform: translateX(0); }
}
@keyframes joinRight {
    to { transform: translateX(0); }
}

.heart-percentage {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--button-text-color);
    font-size: 2em;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.8);
    animation: showPercent 0.8s 1.5s ease-out forwards;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
@keyframes showPercent {
    to { opacity: 1; transform: scale(1); }
}

.compatibility-summary.v2 {
    max-width: 700px;
    margin-bottom: 30px;
}
.compatibility-summary.v2 h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: var(--primary-dark);
}
.compatibility-summary.v2 p {
    margin-bottom: 0;
    font-size: 1em;
}

.comp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.comp-details-col {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.col-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: var(--primary-dark);
}
.col-title span {
    font-size: 0.8em;
    font-weight: normal;
    color: var(--text-color-secondary);
}

/* Biểu đồ cột so sánh */
.trait-comparison-chart { margin-bottom: 20px; }
.trait-comparison-row { margin-bottom: 10px; }
.trait-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-color-secondary);
}
.trait-label span:nth-child(2) { color: var(--text-color-primary); font-weight: 500; }
.trait-bars {
    display: flex;
    height: 12px;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
}
.bar { height: 100%; transition: width 0.5s ease-out; }
.bar-p1 { background-color: var(--primary-color); border-radius: 6px 0 0 6px; }
.bar-p2 { background-color: #ff9ab3; border-radius: 0 6px 6px 0; margin-left: auto; }
.reverse-bars .bar-p1 { margin-left: auto; order: 2; border-radius: 0 6px 6px 0; }
.reverse-bars .bar-p2 { margin-left: 0; order: 1; background-color: var(--primary-color); border-radius: 6px 0 0 6px;}

.personality-summary h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1em;
    color: var(--primary-dark);
}
.personality-summary p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color-secondary);
    margin-bottom: 0;
    text-align: justify;
}
.btn-view-person-report {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}
.btn-view-person-report:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.final-analysis {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.final-analysis h3 {
    text-align: center;
    margin-top: 0;
    color: var(--primary-dark);
}
.final-analysis p {
    text-align: justify;
    line-height: 1.8;
}

.share-section { text-align: center; }
.share-section p { font-size: 15px; color: var(--text-color-secondary); margin-bottom: 10px; }
.share-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}
#share-link-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 8px 10px;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    background-color: #f9f9f9;
}
#copy-share-link-btn {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--button-text-color);
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .comp-details-grid { grid-template-columns: 1fr; }
    .compatibility-result-wrapper.v2 { padding: 15px; }
    .comp-details-col { padding: 15px; }
    .final-analysis { padding: 20px; }
}

/* Style cho bảng so sánh các chỉ số V2 */
.comparison-table.v2 {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 15px;
}
.comparison-table.v2 th, .comparison-table.v2 td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid var(--primary-light);
}
.comparison-table.v2 th {
    background-color: var(--primary-light);
    font-weight: 600;
    color: var(--primary-dark);
}
.comparison-table.v2 .number-label {
    font-weight: 500;
    text-align: left;
    color: var(--text-color-primary);
}
.comparison-table.v2 .number-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
}
.comparison-table.v2 .rating-icon {
    font-size: 1.2em;
}

/* --- NÂNG CẤP: LÀM NỔI BẬT CÁC KHỐI KẾT QUẢ --- */

/* Style chung cho các thẻ nổi bật */
.compatibility-summary.v2,
.final-analysis {
    background-color: var(--bg-color);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.08);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.compatibility-summary.v2:hover,
.final-analysis:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(var(--primary-color-rgb), 0.12);
}

/* Style cho các tiêu đề bên trong thẻ */
.compatibility-summary.v2 h3,
.final-analysis h3, /* Giữ lại style chung */
#comp-detailed-text h3 /* Thêm style cụ thể hơn */ {
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center; 
    font-size: 1.1em; 
    font-weight: 700; 
    margin-top: 0;
    margin-bottom: 20px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid var(--primary-light); 
    color: var(--primary-dark);
}

/* Thêm icon cho từng tiêu đề */
.compatibility-summary.v2 h3::before,
.final-analysis h3::before {
    margin-right: 12px;
    font-size: 1.2em;
    line-height: 1;
}

/* Icon riêng cho từng thẻ */
.compatibility-summary.v2 h3::before {
    content: '💖'; /* Icon cho tóm tắt tổng quan */
}
#comp-core-numbers h3::before {
    content: '📊'; /* Icon cho bảng so sánh */
}

/* Style cho nội dung văn bản trong thẻ */
.compatibility-summary.v2 p,
.final-analysis p {
    font-size: 1.05em; /* Tăng nhẹ cỡ chữ cho dễ đọc */
    line-height: 1.8;
    color: var(--text-color-primary);
    text-align: justify;
    
}

/* Ghi đè lại một vài style cũ của .compatibility-summary.v2 */
.compatibility-summary.v2 {
    background-color: var(--primary-light); /* Giữ lại màu nền nhạt đặc trưng */
    border: none; /* Bỏ border cũ */
    border-left: 5px solid var(--primary-color);
}

/* --- BỔ SUNG: NÚT QUAY LẠI TRANG TRA CỨU --- */
.back-to-tool-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed var(--border-color);
}

.btn-back-to-tool {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--button-text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-back-to-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* --- BỔ SUNG: RESPONSIVE CHO BẢNG SO SÁNH TƯƠNG HỢP --- */

/* Áp dụng cho màn hình nhỏ (mobile) */
@media (max-width: 600px) {
    .comparison-table.v2 {
        border: none;
    }
    
    /* Ẩn đi phần header của bảng */
    .comparison-table.v2 thead {
        display: none;
    }

    /* Biến mỗi hàng <tr> thành một thẻ card */
    .comparison-table.v2 tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 10px;
        background-color: var(--bg-color);
    }
    
    /* Sắp xếp các ô <td> bên trong thẻ */
    .comparison-table.v2 td {
        display: block;
        text-align: right; /* Căn phải cho nội dung */
        position: relative;
        padding: 8px 10px 8px 50%; /* Tạo khoảng trống bên trái cho tiêu đề */
        border-bottom: 1px solid #f5f5f5;
    }
    
    .comparison-table.v2 td:last-child {
        border-bottom: none;
    }

    /* Dùng pseudo-element để tạo tiêu đề cho mỗi dòng */
    .comparison-table.v2 td::before {
        content: attr(data-label); /* Lấy nội dung từ thuộc tính data-label */
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        text-align: left;
        color: var(--text-color-primary);
    }

    /* Chỉnh lại các ô có style riêng */
    .comparison-table.v2 .number-label {
        background-color: var(--primary-light);
        font-size: 1.1em;
        font-weight: 700;
        text-align: center;
        padding: 12px;
        color: var(--primary-dark);
        border-radius: 4px;
    }

    /* Ẩn tiêu đề của ô đầu tiên vì nó đã là tiêu đề của thẻ */
    .comparison-table.v2 .number-label::before {
        display: none;
    }
    
    .comparison-table.v2 .number-value,
    .comparison-table.v2 .rating-icon {
        font-size: 1.2em; /* Giữ kích thước chữ */
    }
}

/* --- BỔ SUNG: RESPONSIVE CHO BẢNG SO SÁNH VÀ TOÀN BỘ GIAO DIỆN MOBILE (V2 - GỌN HƠN) --- */

@media (max-width: 600px) {
    /* --- TINH CHỈNH CHUNG --- */
    .compatibility-result-wrapper.v2 {
        padding: 10px 8px; /* Giảm padding tối đa */
    }
    
    /* --- TINH CHỈNH HEADER & TRÁI TIM --- */
    .comp-header .person-info {
        font-size: 0.9em; /* Giảm cỡ chữ tên */
        gap: 2px;
    }
    .heart-icon {
        font-size: 1.3em; 
    }
    .heart-container {
        width: 120px; /* Giảm kích thước trái tim */
        height: 120px;
        margin-bottom: 20px;
    }
    .heart-percentage {
        font-size: 2em; /* Giảm cỡ chữ % */
    }

    /* --- TINH CHỈNH CÁC THẺ CARD --- */
    .compatibility-summary.v2,
    .final-analysis {
        padding: 12px; /* Giảm padding trong card */
        border-left-width: 4px; /* Làm đường viền mảnh hơn */
    }

    .compatibility-summary.v2 h3,
    .final-analysis h3 {
        font-size: 1.1em; /* <-- GIẢM MẠNH CỠ CHỮ TIÊU ĐỀ */
        margin-bottom: 12px;
        padding-bottom: 8px;
        flex-direction: column; /* <-- Chuyển icon và chữ thành cột */
        gap: 8px; /* Khoảng cách giữa icon và chữ */
    }
    
    .compatibility-summary.v2 h3::before,
    .final-analysis h3::before {
        font-size: 1.5em; /* <-- Tăng nhẹ cỡ icon so với chữ */
        margin-right: 0; /* Xóa margin cũ */
    }

    .compatibility-summary.v2 p,
    .final-analysis p {
        font-size: 0.9em; /* Giảm cỡ chữ nội dung */
        line-height: 1.65;
    }
    
    /* --- TINH CHỈNH KHỐI SO SÁNH CHI TIẾT --- */
    .comp-details-grid {
        gap: 12px;
    }
    .comp-details-col {
        padding: 12px;
    }
    .col-title {
        font-size: 1em;
    }
     .personality-summary p {
        font-size: 0.85em;
    }
    .btn-view-person-report {
        padding: 8px;
        font-size: 13px;
    }

    /* --- SỬA LỖI HIỂN THỊ BẢNG SO SÁNH --- */
    .comparison-table.v2 {
        border: none;
    }
    
    .comparison-table.v2 thead {
        display: none;
    }

    .comparison-table.v2 tr {
        display: block;
        margin-bottom: 12px; 
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        padding: 8px;
        background-color: var(--bg-color);
    }
    
    .comparison-table.v2 td {
        display: block;
        text-align: right; 
        position: relative;
        padding: 6px 8px 6px 50%; 
        border-bottom: 1px solid #f5f5f5;
        font-size: 14px;
    }
    
    .comparison-table.v2 td:last-child {
        border-bottom: none;
    }

    .comparison-table.v2 td::before {
        content: attr(data-label); 
        position: absolute;
        left: 8px;
        width: 45%;
        padding-right: 8px;
        font-weight: 600;
        text-align: left;
        color: var(--text-color-primary);
    }
    
    .comparison-table.v2 .number-label {
        background-color: var(--primary-light);
        font-size: 1em;
        font-weight: 700;
        text-align: center;
        padding: 8px;
        color: var(--primary-dark);
        border-radius: 4px;
    }

    .comparison-table.v2 .number-label::before {
        display: none;
    }
    
    .comparison-table.v2 .number-value,
    .comparison-table.v2 .rating-icon {
        font-size: 1em;
    }
}

/* --- BỔ SUNG: STYLE CHO ICON TRONG FORM --- */

.nrc-icon {
    margin-right: 8px; /* Tạo khoảng cách giữa icon và chữ */
    display: inline-block;
    line-height: 1; /* Đảm bảo icon không làm thay đổi chiều cao dòng */
}

/* Căn giữa icon và chữ trong các nút bấm và tiêu đề */
.btn-calculate,
.person-form h4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* SỬA LỖI CĂN GIỮA TIÊU ĐỀ CHÍNH */
.numerology-container h1 {
    display: flex; /* <-- SỬA TỪ inline-flex THÀNH flex */
    align-items: center;
    justify-content: center;
}

/* Căn giữa icon và chữ trong các label */
.form-group label {
    display: inline-flex;
    align-items: center;
}

/* Căn giữa icon và chữ trong các label */
.form-group label {
    display: inline-flex;
    align-items: center;
}

/* --- BỔ SUNG: STYLE CHO MỤC LỤC CON & CÁC SECTION MỚI --- */

.toc-submenu {
    list-style: none;
    margin-top: 5px;
    margin-bottom: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.toc-item.has-submenu > a {
    position: relative;
}

.toc-item.has-submenu > a::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.2em;
    transition: transform 0.3s ease-out;
}

/* Khi mục cha active, mở menu con */
.toc-item.has-submenu.is-open > .toc-submenu {
    max-height: 500px; /* Số lớn để chứa hết menu con */
}

.toc-item.has-submenu.is-open > a::after {
    transform: translateY(-50%) rotate(-90deg);
}

.toc-submenu .toc-item a {
    font-size: 14px;
    color: #777;
    padding: 6px 10px;
}

.toc-submenu .toc-item a.active {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 500;
    border-left-color: var(--primary-color);
}

.report-sub-section {
    margin-bottom: 30px;
}

.report-sub-section-title {
    font-size: 1.15em; /* Tăng cỡ chữ */
    font-weight: 700; /* Tăng độ đậm */
    color: var(--primary-dark); /* Dùng màu nhấn */
    padding: 10px 15px; /* Thêm padding */
    margin: 0 -20px 20px -20px; /* Căng ra sát lề của card cha */
    background-color: var(--primary-light); /* Thêm màu nền */
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

/* Điều chỉnh lại trên mobile để không bị quá sát lề */
@media (max-width: 768px) {
    .report-sub-section-title {
        margin-left: -15px;
        margin-right: -15px;
        font-size: 1em;
    }
}

/* --- BỔ SUNG: THU NHỎ CON SỐ TRONG ACCORDION --- */
.number-card-value {
    font-size: 2.2em; /* Giảm cỡ chữ từ 2.8em */
}
.number-card-title {
    font-size: 1em; /* Giảm cỡ chữ từ 1.2em */
}

/* Điều chỉnh thêm trên mobile */
@media (max-width: 768px) {
    .number-card-value {
        font-size: 1.8em; /* Giảm từ 2.0em */
    }
    .number-card-title {
        font-size: 0.95em; /* Giảm từ 1.0em */
    }
}

/* --- BỔ SUNG: TÍNH NĂNG TẢI PDF & CHIA SẺ CÁ NHÂN --- */

/* 1. Style cho khu vực hành động (nút tải PDF) */
/* Ẩn nút tải PDF cũ trên desktop, chỉ hiện trên tablet ngang */
.report-actions {
    display: none;
    justify-content: center;
    padding: 0 20px 20px;
    margin-top: -10px;
}
@media (min-width: 769px) and (max-width: 960px) {
    .report-actions {
        display: flex;
    }
}

/* BỔ SUNG: Thanh công cụ cố định trên Desktop */
.report-actions-desktop-sticky {
    display: none; /* Ẩn trên mobile */
}
@media (min-width: 961px) {
    .report-actions-desktop-sticky {
        display: flex;
        flex-direction: column;
        gap: 15px;
        position: fixed;
        top: 150px;
        left: 365px; /* Hoặc right: 20px; nếu bạn muốn bên phải */
        z-index: 1000;
    }
    .report-actions-desktop-sticky .btn-action {
        flex-direction: column;
        width: 85px;
        height: 90px;
        padding: 10px 5px;
        border-radius: 12px;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid #eee;
        font-size: 12px;
        text-align: center;
    }
    .report-actions-desktop-sticky .btn-action .nrc-icon {
        font-size: 2em;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.btn-action:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.btn-action .nrc-icon {
    font-size: 1.2em;
}

/* 2. Style cho khu vực chia sẻ */
.share-section.personal {
    margin-top: 30px;
    padding: 25px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    background-color: #fcfcfc;
}

/* --- BỔ SUNG NÂNG CẤP: GIAO DIỆN PDF & UX MOBILE --- */

/* 1. Thanh hành động ghim trên Mobile */
.report-actions-mobile-sticky {
    display: none; /* Mặc định ẩn trên desktop */
}

@media (max-width: 768px) {
    .report-actions {
        display: none; /* Ẩn nút tải PDF gốc trên mobile */
    }

    .report-actions-mobile-sticky {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 10px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid #eee;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        
        /* === BẮT ĐẦU PHẦN THAY ĐỔI === */
        position: fixed; /* Thay 'sticky' bằng 'fixed' */
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1001; 
        /* === KẾT THÚC PHẦN THAY ĐỔI === */
    }
  }


/* 2. Tối ưu giao diện Form Chia Sẻ */
.share-section.personal {
    margin-top: 30px;
    padding: 20px;
    border: none; /* Bỏ border đứt nét */
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fefefe 100%);
}

.share-section.personal h4 {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 15px;
}

.share-section.personal p {
    font-size: 15px;
    color: var(--text-color-secondary);
    margin-top: 0;
    margin-bottom: 15px;
}

#copy-share-link-btn-personal { /* Sửa lại nút bấm */
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: var(--button-text-color);
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s;
}

#copy-share-link-btn-personal:hover {
    background-color: var(--primary-dark);
}

#share-link-input-personal { /* Sửa lại ô input */
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Điều chỉnh cỡ chữ nội dung */
span.\\\"ng-star-inserted\\\" {
    font-size: 15px;
}

span.ng-star-inserted { font-size: 15px; }

.number-card-interpretation-inner {
    font-size: 15px;
}

/* 3. Tái cấu trúc CSS cho việc xuất PDF (PHIÊN BẢN HOÀN THIỆN V2) */
.pdf-export-view {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 800px;
    background: #fff;
    font-family: 'Times New Roman', Times, serif;
}

/* Reset chung */
.pdf-export-view * {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Ép 100% chữ thành màu đen */
.pdf-export-view, .pdf-export-view *,
.pdf-export-view p, .pdf-export-view li, .pdf-export-view h1, .pdf-export-view h2,
.pdf-export-view h3, .pdf-export-view h4, .pdf-export-view span, .pdf-export-view div,
.pdf-export-view strong, .pdf-export-view .number-card-title, .pdf-export-view .number-card-value,
.pdf-export-view .hero-sub-item, .pdf-export-view .hero-sub-item span, .pdf-export-view .hero-sub-item strong {
    color: #000 !important;
}

/* Ẩn các thành phần không cần thiết */
.pdf-export-view .report-toc, .pdf-export-view .result-tabs-nav,
.pdf-export-view .report-actions, .pdf-export-view .report-actions-mobile-sticky,
.pdf-export-view .report-actions-desktop-sticky, .pdf-export-view .share-section,
.pdf-export-view .user-prompt, .pdf-export-view #back-to-tool-container-personal,
.pdf-export-view .number-card-header::after, .pdf-export-view .hero-chart-container,
.pdf-export-view #section-hero, /* BỎ PHẦN TỔNG QUAN */
.pdf-export-view #section-cycles,
.pdf-export-view #section-forecast, /* BỎ TOÀN BỘ PHẦN DỰ BÁO */
.pdf-export-view .career-chart-container /* BỎ BIỂU ĐỒ NGHỀ NGHIỆP */
{
    display: none !important;
}

/* Hiển thị lại biểu đồ lưới 3x3 */
.pdf-export-view #section-charts { display: block !important; }
.pdf-export-view .charts-display-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pdf-export-view .numerology-grid-chart { border: 2px solid #000 !important; padding: 2px; }
.pdf-export-view .grid-cell { border: 1px solid #ccc !important; font-size: 1.2em; font-weight: bold; }
.pdf-export-view .grid-cell.filled { background-color: #e0e0e0 !important; }

/* Bố cục chung */
.pdf-export-view .detailed-report,
.pdf-export-view .result-tab-content { display: block !important; padding: 0; }
.pdf-export-view .number-card-interpretation-inner p { text-align: justify; line-height: 1.6; }

/* Định dạng thẻ & tiêu đề */
.pdf-export-view .number-card { margin-bottom: 20px; page-break-inside: avoid; border: 1px solid #ddd !important; }
.pdf-export-view .number-card-header { padding: 10px; background-color: #eee !important; }
.pdf-export-view .number-card-interpretation { max-height: none !important; }
.pdf-export-view .number-card-interpretation-inner { padding: 15px; }

/* XỬ LÝ PHÂN TRANG: JS sẽ xử lý việc này, CSS chỉ hỗ trợ */
.pdf-export-view .number-card,
.pdf-export-view .report-section {
    page-break-inside: avoid; /* Cố gắng không ngắt giữa chừng một phần tử */
}

.pdf-export-view .report-section-title { font-size: 2em; font-weight: bold; border-bottom: 2px solid #000 !important; padding-bottom: 8px; margin-bottom: 20px; }
.pdf-export-view .report-sub-section-title { font-size: 1.5em; font-weight: bold; margin: 20px 0 15px 0; padding: 0; }

/* BỔ SUNG: Định dạng Header cho PDF */
.pdf-export-view .pdf-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000 !important;
    page-break-after: avoid; /* Tránh ngắt trang ngay sau header */
}
.pdf-export-view .pdf-header h1 {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
}
.pdf-export-view .pdf-header p {
    font-size: 1.2em;
    line-height: 1.5;
    margin: 5px 0;
}

/* BỔ SUNG: Tăng độ dài cho Số Chủ Đạo trong file PDF */
.pdf-export-view #section-core-numbers .number-card:first-child .number-card-interpretation-inner {
    font-size: 18px !important; /* Tăng cỡ chữ lên đáng kể */
    line-height: 2.2 !important;  /* Giãn dòng ra rất nhiều */
}

/* CSS cho khu vực bị khóa (không dùng overlay) */
.nrc-section-is-locked {
    position: relative; /* Cần thiết để định vị banner */
}

/* Class làm mờ chỉ áp dụng cho nội dung bên dưới, không phải cho cả khu vực */
.nrc-content-is-blurred {
    filter: blur(4px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Khi di chuột vào khu vực bị khóa, nội dung bên dưới sẽ đỡ mờ hơn một chút */
.nrc-section-is-locked:hover .nrc-content-is-blurred {
    filter: blur(2px);
}

.nrc-lock-banner {
    /* Banner sẽ không bị mờ và luôn ở trên cùng */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
    
    background-color: rgba(30, 30, 45, 0.95);
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 450px;
}

/* Thêm CSS cho icon khóa trên Tab */
/* CSS mới cho icon khóa trên Tab */
.nrc-tab-lock-icon {
    font-size: 13px;       /* Tăng kích thước cho cân đối */
    margin-left: 6px;      /* Tinh chỉnh lại khoảng cách cho đẹp hơn */
    vertical-align: middle;/* Đây là thay đổi quan trọng nhất, giúp căn icon vào giữa dòng chữ */
    display: inline-block;
    opacity: 0.9;          /* Giảm độ nổi bật một chút so với chữ, trông sẽ tinh tế hơn */
    
    /* Các thuộc tính cũ làm xấu icon đã được loại bỏ. 
       Icon giờ sẽ tự động nhận màu của chữ trên nút (trắng khi active, xám khi inactive) */
}

.nrc-lock-banner {
    /* Đặt banner lên trên cùng và cho phép click */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto; /* Cho phép tương tác với banner */
    
    /* Style cho banner */
    background-color: rgba(30, 30, 45, 0.9);
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 500px;
}

.nrc-lock-banner .nrc-lock-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.nrc-lock-banner .nrc-lock-text {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
}

.nrc-lock-banner-btn {
    background-color: #4e73df;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.nrc-lock-banner-btn:hover {
    background-color: #365abd;
}

/* --- BỔ SUNG: CSS CHO BIỂU ĐỒ SO SÁNH TÍNH CÁCH TƯƠNG HỢP --- */
#trait-comparison-section {
    padding: 20px 25px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary-light);
}

.person-name {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-dark);
    width: 48%;
    text-align: center;
}
.person-name span {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-color-secondary);
}

.trait-comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trait-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trait-label {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color-primary);
}

.trait-bars-container {
    display: flex;
    justify-content: space-between;
    height: 28px;
    background-color: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.trait-bar-p1, .trait-bar-p2 {
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 13px;
    transition: width 0.8s ease-out;
    animation: growBar 0.8s 0.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.trait-bar-p1 {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border-radius: 6px 0 0 6px;
    justify-content: flex-end;
    padding-right: 8px;
    transform-origin: right;
    animation-name: growBarRight;
}

.trait-bar-p2 {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 0 6px 6px 0;
    justify-content: flex-start;
    padding-left: 8px;
}

.trait-percent {
    opacity: 0;
    animation: fadeInText 0.5s 0.8s ease-out forwards;
}

@keyframes growBar {
    to { transform: scaleX(1); }
}
@keyframes growBarRight {
    to { transform: scaleX(1); }
}
@keyframes fadeInText {
    to { opacity: 1; }
}

/* --- CSS CHO PHẦN LUẬN GIẢI TỰ ĐỘNG --- */
#trait-analysis-section .analysis-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#trait-analysis-section .analysis-content li {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}
#trait-analysis-section .analysis-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--primary-dark);
}
#trait-analysis-section .analysis-content li strong {
    color: var(--primary-dark);
}
#trait-analysis-section .analysis-content ul:first-of-type h4 {
    margin-top: 0;
}
/* Màu cho từng loại luận giải */
#trait-analysis-section .analysis-content h4:nth-of-type(1) + ul li { border-color: #28a745; } /* Tương đồng */
#trait-analysis-section .analysis-content h4:nth-of-type(2) + ul li { border-color: #17a2b8; } /* Bù trừ */
#trait-analysis-section .analysis-content h4:nth-of-type(3) + ul li { border-color: #ffc107; } /* Thách thức */


/* Responsive */
@media(max-width: 600px) {
    #trait-comparison-section {
        padding: 15px;
    }
    .person-name {
        font-size: 1em;
    }
    .trait-label {
        font-size: 13px;
    }
    .trait-bars-container {
        height: 24px;
    }
    .trait-bar-p1, .trait-bar-p2 {
        font-size: 12px;
    }
}

/* --- BỔ SUNG: CSS CHO PHẦN CTA KÍCH THÍCH TÒ MÒ --- */
.cta-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    font-size: 14px;
    text-align: left;
    color: var(--text-color-secondary);
}

.cta-details p {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color-primary);
}

.cta-details ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: '✓ '; /* Sử dụng dấu tick làm icon */
}

.cta-details li {
    margin-bottom: 5px;
}

.cta-details li strong {
    color: var(--primary-color);
}

/* --- BỔ SUNG: STYLE CHO TAGS TỪ KHÓA --- */

.number-card-header {
    align-items: center; /* Căn giữa theo chiều dọc, đẹp hơn khi có nhiều tag */
    padding-top: 20px;
    padding-bottom: 20px;
}

.number-card-title-area {
    flex: 1; /* Cho phép vùng title và tag chiếm hết không gian còn lại */
}

.number-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px; /* Khoảng cách giữa title và tags */
}

.number-card-tag {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px; /* Bo tròn để tạo hình con nhộng */
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.number-card-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
}

/* Tinh chỉnh trên mobile */
@media (max-width: 768px) {
    .number-card-header {
        padding: 12px 15px;
    }
    .number-card-tags {
        gap: 6px;
    }
    .number-card-tag {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* --- BỔ SUNG: STYLE CHO KHỐI TỔNG KẾT & LỜI KHUYÊN --- */

.final-summary-section {
    margin-top: 30px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fefefe 100%);
    padding: 25px;
    border-radius: 12px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 25px rgba(var(--primary-color-rgb), 0.1);
}

.final-summary-section .report-section-title {
    text-align: center;
    border-bottom: none;
    font-size: 1.6em;
    margin-bottom: 20px;
}

.summary-text {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 25px;
    color: var(--text-color-primary);
}

.summary-text strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.summary-advice {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.summary-advice h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.summary-advice p {
    margin-bottom: 0;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-color-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .final-summary-section {
        padding: 20px;
    }
    .final-summary-section .report-section-title {
        font-size: 1.3em;
    }
    .summary-text {
        font-size: 1em;
    }
    .summary-advice h4 {
        font-size: 1.1em;
    }
    .summary-advice p {
        font-size: 1em;
    }
}

/* --- BỔ SUNG: STYLE CHO THÔNG TIN CÁ NHÂN TRONG HERO SECTION --- */

.hero-user-info {
    text-align: center;
    margin-bottom: 25px; /* Khoảng cách đến vòng tròn Số Chủ Đạo */
    color: var(--hero-text);
}

.hero-user-name {
    font-size: 2em; /* Cỡ chữ lớn cho tên */
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.hero-user-dob {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.85; /* Hơi mờ hơn so với tên */
}

/* Tinh chỉnh lại khoảng cách của vòng tròn chính */
.hero-main-number {
    margin: 0 auto 25px auto;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .hero-user-name {
        font-size: 1.6em;
    }
    .hero-user-dob {
        font-size: 1em;
    }
}

/* --- BỔ SUNG: CTA KHÁM PHÁ CÁ NHÂN TRONG TRANG TƯƠNG HỢP --- */

#individual-cta-section {
    background: linear-gradient(160deg, #f7f3ff 0%, #f3f8ff 100%);
    border-top: 3px solid var(--primary-color);
    padding: 25px;
}

.cta-intro {
    text-align: center;
    max-width: 600px;
    margin: -10px auto 30px auto;
    color: var(--text-color-secondary);
    font-size: 1.05em;
    line-height: 1.7;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cta-person-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.1);
}

.cta-person-card h4 {
    margin-top: 0;
    font-size: 1.2em;
    color: var(--primary-dark);
}

.cta-person-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    flex-grow: 1; /* Đẩy nút xuống dưới */
}

.cta-person-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-color-primary);
    font-size: 15px;
}

.cta-person-card li .nrc-icon {
    color: var(--primary-color);
    font-size: 1.2em;
}

.cta-person-card .btn-view-person-report {
    width: 100%;
    margin-top: auto; /* Đảm bảo nút luôn ở dưới cùng */
    padding: 12px;
    font-size: 15px;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-person-card {
        padding: 20px;
    }
}

/* --- BỔ SUNG: HƯỚNG DẪN NGƯỜI DÙNG KHI CHUYỂN TRANG --- */
.nrc-user-guide-notification {
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px dashed var(--primary-color);
    background-color: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: fadeInDown 0.5s ease-out;
}

.nrc-user-guide-notification .nrc-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 0;
}

.nrc-user-guide-notification div {
    font-size: 15px;
    line-height: 1.6;
    color: var(--primary-dark);
    text-align: left;
}

.person-form.highlight-form {
    box-shadow: 0 0 0 3px var(--primary-color), 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
    transition: box-shadow 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BỔ SUNG: STYLE CHO PHÂN TÍCH NHÓM TÍNH CÁCH --- */

.trait-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Khoảng cách giữa các hàng */
}

.trait-row-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Hiệu ứng xuất hiện lần lượt cho từng hàng */
.trait-row-v2:nth-child(1) { animation-delay: 0.1s; }
.trait-row-v2:nth-child(2) { animation-delay: 0.2s; }
.trait-row-v2:nth-child(3) { animation-delay: 0.3s; }
.trait-row-v2:nth-child(4) { animation-delay: 0.4s; }
.trait-row-v2:nth-child(5) { animation-delay: 0.5s; }
.trait-row-v2:nth-child(6) { animation-delay: 0.6s; }
.trait-row-v2:nth-child(7) { animation-delay: 0.7s; }
.trait-row-v2:nth-child(8) { animation-delay: 0.8s; }
.trait-row-v2:nth-child(9) { animation-delay: 0.9s; }


.trait-title-v2 {
    font-size: 1em;
    font-weight: 500;
    color: var(--text-color-primary);
}

.trait-progress-bar-container-v2 {
    width: 100%;
    height: 28px;
    background-color: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
}

.trait-progress-bar-v2 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Căn % về bên phải */
    padding-right: 10px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;

    /* Hiệu ứng thanh tiến trình chạy */
    transform: scaleX(0);
    transform-origin: left;
    animation: growBar 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: inherit; /* Thừa hưởng delay từ cha */
}

/* Ghi đè lại class .trait-lock-message để phù hợp hơn */
.trait-row-v2 .trait-lock-message {
    color: #e74a3b;
    font-style: italic;
    font-size: 14px;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .trait-list-v2 {
        gap: 15px;
    }
    .trait-title-v2 {
        font-size: 15px;
    }
    .trait-progress-bar-container-v2 {
        height: 24px;
    }
}

/* --- BỔ SUNG: STYLE CHO KHỐI GIẢI THÍCH CHỈ SỐ --- */

.number-card-explanation {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 0 0 20px 0; /* Khoảng cách với phần luận giải bên dưới */
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color-secondary);
    border-radius: 0 4px 4px 0;
}

/* Gỡ bỏ margin-top mặc định của thẻ p bên trong editor */
.number-card-specific-interpretation .wp-editor-content p:first-child,
.number-card-specific-interpretation p:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .number-card-explanation {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* --- BỔ SUNG: STYLE CHO PHẦN GIẢI THÍCH KHU VỰC (TAB) --- */

.report-section-explanation {
    font-size: 15px;
    font-style: italic;
    color: var(--text-color-secondary);
    line-height: 1.7;
    margin: -10px 0 20px 0;
    padding: 0 5px 15px 5px;
    border-bottom: 1px dashed var(--border-color);
    text-align: justify;
}

/* Điều chỉnh lại trên mobile */
@media (max-width: 768px) {
    .report-section-explanation {
        font-size: 14px;
        margin-top: -5px;
        margin-bottom: 15px;
        text-align: justify;
    }
}
/* --- BỔ SUNG: STYLE CHO CHU KỲ ĐƯỜNG ĐỜI (3 GIAI ĐOẠN) --- */

.life-cycles-display-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.cycle-item-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cycle-circle-v2 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}
.cycle-circle-v2::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 50%;
    border: 1px solid;
    opacity: 0.3;
}

.cycle-circle-v2 span {
    font-size: 3em;
    font-weight: 700;
    color: var(--text-color-primary);
}

/* Màu sắc cho từng chu kỳ */
.cycle-circle-v2.color-1 { border-color: #f06a9d; }
.cycle-circle-v2.color-1::before { border-color: #f06a9d; }
.cycle-details-v2 .cycle-phase-v2.color-1 { color: #f06a9d; }

.cycle-circle-v2.color-2 { border-color: #9066f0; }
.cycle-circle-v2.color-2::before { border-color: #9066f0; }
.cycle-details-v2 .cycle-phase-v2.color-2 { color: #9066f0; }

.cycle-circle-v2.color-3 { border-color: #55d2f7; }
.cycle-circle-v2.color-3::before { border-color: #55d2f7; }
.cycle-details-v2 .cycle-phase-v2.color-3 { color: #55d2f7; }


.cycle-details-v2 .cycle-name-v2 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color-primary);
}
.cycle-details-v2 .cycle-phase-v2 {
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px 0;
}
.cycle-details-v2 .cycle-age-v2,
.cycle-details-v2 .cycle-years-v2 {
    font-size: 0.9em;
    color: var(--text-color-secondary);
}

.life-cycles-interpretation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.cycle-interpretation-item {
    margin-bottom: 20px;
}

.cycle-interpretation-item h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 10px;
}
.cycle-interpretation-item p {
    margin: 0;
    line-height: 1.7;
    text-align: justify;
}

@media (max-width: 768px) {
    .life-cycles-display-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cycle-circle-v2 {
        width: 100px;
        height: 100px;
    }
    .cycle-circle-v2 span {
        font-size: 2.5em;
    }
}

/* --- BỔ SUNG: STYLE CHO PHẦN DIỄN GIẢI BIỂU ĐỒ --- */

#section-chart-interpretations {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.chart-interpretation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-interpretation-card {
    background-color: #fcfcfc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-interpretation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.chart-interpretation-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.chart-interpretation-count {
    font-size: 1em;
    color: var(--text-color-secondary);
}

.chart-interpretation-body {
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
    color: var(--text-color-primary);
}
.chart-interpretation-body p:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .chart-interpretation-card {
        padding: 15px;
    }
}

/* --- BỔ SUNG: NÂNG CẤP GIAO DIỆN DIỄN GIẢI BIỂU ĐỒ --- */

.chart-interpretation-details {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Khoảng cách giữa dòng "xuất hiện" và các tag */
    align-items: flex-start; /* Căn các tag về bên trái */
}

/* Tái sử dụng style của number-card-tags đã có */
.chart-interpretation-details .number-card-tags {
    margin-top: 0;
}

/* --- BỔ SUNG: STYLE CHO HIGHLIGHT DIỄN GIẢI SỐ LẦN LẶP (PHIÊN BẢN DOM) --- */

.chart-common-content,
.chart-interpretation-body > h3,
.chart-interpretation-body > p {
    margin-bottom: 20px;
}
.chart-interpretation-body > *:last-child {
    margin-bottom: 0;
}


.interpretation-by-count-title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-dark);
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Định dạng lại danh sách ul */
.interpretation-by-count-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Định dạng cho mỗi mục li */
.interpretation-by-count-list .interpretation-item {
    padding: 15px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.6; /* Làm mờ các mục không active */
    background-color: #f8f9fa; /* Thêm nền nhạt cho các mục bị mờ */
}

.interpretation-by-count-list .interpretation-item.is-active {
    opacity: 1; /* Hiển thị rõ mục active */
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.1);
}

/* Dọn dẹp các thẻ p, strong, span thừa bên trong li */
.interpretation-item p,
.interpretation-item strong,
.interpretation-item span {
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.interpretation-item p {
    margin: 0;
}

/* --- BỔ SUNG: TỐI ƯU TOÀN DIỆN GIAO DIỆN MOBILE VÀ SỬA LỖI TRÀN --- */

/* 1. Áp dụng box-sizing cho toàn bộ plugin để kiểm soát kích thước tốt hơn */
.numerology-container, .numerology-container * {
    box-sizing: border-box;
}

/* 2. Tối ưu lại cách xử lý padding và margin gây tràn */
@media (max-width: 768px) {
    /* Loại bỏ padding ở container cha */
    .detailed-report {
        padding: 0;
        border: none;
        background: transparent;
    }

    /* Thêm padding vào từng tab content con để dễ kiểm soát */
    .result-tab-content {
        padding: 0 15px; /* Thêm padding ngang thay cho parent */
    }

    /* Reset lại margin âm của các tiêu đề con vì không còn cần thiết */
    .report-sub-section-title {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px; /* Bo tròn vì giờ nó nằm trong vùng padding */
    }

    /* Tinh chỉnh lại khoảng cách của khu vực diễn giải biểu đồ */
    #section-chart-interpretations {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px dashed var(--border-color); /* Dùng dashed cho đẹp hơn */
    }
}

/* 3. Tối ưu cho màn hình rất nhỏ (dưới 480px) */
@media (max-width: 480px) {
    .result-tab-content {
        padding: 0 10px; /* Giảm padding cho màn hình nhỏ hơn */
    }

    /* Làm cho các thẻ diễn giải biểu đồ chỉ còn 1 cột */
    .chart-interpretation-grid {
        grid-template-columns: 1fr;
    }

    .numerology-container {
        margin: 0; /* Xóa margin ngoài cùng */
        border-radius: 0;
    }
}

/* --- BỔ SUNG: CĂN CHỮ 2 BÊN VÀ TỐI ƯU TOÀN DIỆN MOBILE (V2) --- */

/* 1. CĂN ĐỀU 2 BÊN CHO CÁC KHỐI VĂN BẢN DIỄN GIẢI */
.number-card-explanation,
.number-card-interpretation-inner,
.chart-interpretation-body,
.cycle-interpretation-item p,
.report-section-explanation p,
.summary-advice p,
.user-prompt p,
.interpretation-item-content {
    text-align: justify;
    font-size: 14px;
    hyphens: auto; /* Tự động ngắt từ nếu cần */
    line-height: 1.65;
}


/* 2. TỐI ƯU TOÀN DIỆN TRÊN MOBILE */
@media (max-width: 768px) {

    /* --- TỐI ƯU CHU KỲ ĐƯỜNG ĐỜI --- */
    .life-cycles-display-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
        gap: 40px; /* Tăng khoảng cách cho dễ nhìn */
    }
    .cycle-circle-v2 {
        width: 110px;
        height: 110px;
    }
    .cycle-circle-v2 span {
        font-size: 2.8em;
    }

    /* --- TỐI ƯU 9 NHÓM TÍNH CÁCH --- */
    .trait-progress-bar-container-v2 {
        height: 24px;
    }
    .trait-progress-bar-v2 {
        font-size: 12px;
    }

    /* --- TỐI ƯU DIỄN GIẢI BIỂU ĐỒ --- */
    .chart-interpretation-grid {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
    .chart-interpretation-card {
        padding: 15px;
    }
    .chart-interpretation-number {
        font-size: 2.2em;
    }
    .chart-interpretation-body {
        font-size: 14px;
    }
    
    /* --- TỐI ƯU HIGHLIGHT SỐ LẦN LẶP --- */
    .interpretation-item {
        padding: 12px;
        opacity: 0.5; /* Giảm độ mờ các mục không active */
    }
    .interpretation-item-content {
        font-size: 14px;
    }
    .interpretation-by-count-list ul {
        gap: 12px;
    }
    
    /* --- TINH CHỈNH CHUNG KHÁC --- */
    .hero-user-name {
        font-size: 1.8em; /* Tăng nhẹ cỡ chữ tên */
    }
    .final-summary-section .report-section-title {
        font-size: 1.4em;
    }
}

/* --- BỔ SUNG: TỐI ƯU HIỂN THỊ CHỈ SỐ NHIỀU SỐ TRÊN MOBILE --- */

@media (max-width: 768px) {
    .number-card-header {
        flex-direction: column;      /* Chuyển bố cục từ hàng ngang sang cột dọc */
        align-items: flex-start;     /* Căn chỉnh các mục về phía bên trái */
        gap: 12px;                   /* Tạo khoảng cách giữa khối số và khối tiêu đề/tag */
    }
}

/* --- BỔ SUNG: GHI ĐÈ STYLE CHO BLOCKQUOTE --- */

/* 
 * Ghi đè lại style mặc định của theme cho thẻ blockquote 
 * để đảm bảo giao diện đồng nhất bên trong plugin.
*/
.numerology-container blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 1em; /* Sử dụng kích thước chữ của nội dung xung quanh */
    font-style: normal; /* Bỏ in nghiêng mặc định */
    background-color: var(--primary-light);
    border-radius: 0 8px 8px 0;
    position: relative;
    color: var(--primary-dark);
}

/* Ghi đè cho thẻ <p> bên trong để không có margin thừa */
.numerology-container blockquote p {
    margin: 0;
}

/* Tối ưu trên mobile */
@media (max-width: 768px) {
    .numerology-container blockquote {
        padding: 12px 15px;
        margin: 15px 0;
        font-size: 14px;
    }
}

/* Căn 2 bên cho chữ bên xem tương thích */
.analysis-content {
    text-align: justify;
}

/* --- BỔ SUNG: STYLE CHO PHẦN LUẬN GIẢI LÝ SỐ PHƯƠNG ĐÔNG --- */

.eastern-analysis-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
}

.eastern-analysis-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.eastern-analysis-item h5 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 10px;
}

.eastern-analysis-item > p {
    margin-bottom: 15px;
}

.eastern-result {
    border-left: 4px solid var(--accent-color, #ff9800);
    padding: 15px 20px;
    margin: 15px 0 0 0;
    background-color: #fcfcfc;
    border-radius: 0 8px 8px 0;
}

.eastern-result p {
    margin: 0 0 10px 0;
}

.eastern-result p:last-child {
    margin-bottom: 0;
}

/* --- BẮT ĐẦU: STYLE RIÊNG CHO PHẦN LUẬN GIẢI LÝ SỐ PHƯƠ-NG ĐÔNG --- */

/* 1. Tùy chỉnh khối .final-analysis chính */
#comp-eastern-astrology,
#comp-eastern-summary {
    background: linear-gradient(160deg, #f8f8f8 0%, #fdfcfa 100%);
    border-top: 4px solid #8B4513; /* Màu nâu đất (SaddleBrown) */
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* 2. Tùy chỉnh Tiêu đề chính của khu vực */
#comp-eastern-astrology .report-section-title,
#comp-eastern-summary .report-section-title {
    color: #8B4513; /* Cùng màu nâu đất */
    border-bottom: 1px solid #e0d9d1;
}

/* 3. Tùy chỉnh các tiêu đề con (h4, h5) */
#comp-eastern-astrology h4,
#comp-eastern-astrology h5 {
    color: #A0522D; /* Màu nâu nhạt hơn (Sienna) */
}

/* 4. Tùy chỉnh bảng thông tin cung cấp */
#comp-eastern-astrology .comparison-table.v2 thead {
    background-color: #f7f2ec; /* Màu nền nhạt cho header của bảng */
}
#comp-eastern-astrology .comparison-table.v2 th {
    color: #8B4513; /* Chữ màu nâu đậm */
}

/* 5. Tùy chỉnh khối blockquote chứa kết quả luận giải */
#comp-eastern-astrology .eastern-result {
    border-left-color: #CD853F; /* Màu vàng đất (Peru) */
    background-color: #fffbf5; /* Màu nền vàng rất nhạt */
}

/* 6. Tùy chỉnh kết luận cuối cùng */
#comp-eastern-astrology h4[style*="text-align: center"] {
    color: #8B4513 !important; /* Ghi đè để đảm bảo màu nâu */
}

/* 7. Tùy chỉnh bài thơ trong Cao Ly Đầu Hình */
#comp-eastern-astrology pre {
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    color: #666;
}

/* --- KẾT THÚC: STYLE RIÊNG --- */

/* --- BẮT ĐẦU: STYLE CHO PHẦN CUNG HOÀNG ĐẠO --- */
#comp-zodiac-analysis {
    background: linear-gradient(160deg, #f3f4ff 0%, #fbf3ff 100%);
    border-top: 4px solid #6f42c1; /* Màu tím sẫm */
}

#comp-zodiac-analysis .report-section-title {
    color: #6f42c1;
    border-bottom-color: #e3d9f3;
}

.zodiac-intro {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #dcd3e9;
    text-align: center;
}

.zodiac-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.zodiac-icon {
    font-size: 3em;
    color: #8a63d2;
    line-height: 1;
}

.zodiac-details {
    font-size: 1.1em;
}

.zodiac-scores p {
    margin: 0 0 10px;
}

.zodiac-stars {
    color: #ffc107; /* Màu vàng của sao */
    font-size: 1.2em;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    .zodiac-intro {
        flex-direction: column;
        gap: 15px;
    }
}
/* --- KẾT THÚC: STYLE CHO PHẦN CUNG HOÀNG ĐẠO --- */

/* Bổ sung style cho giải thích điểm Cung Hoàng Đạo */
.zodiac-scores .score-explanation {
    font-size: 14px;
    font-style: italic;
    color: #777;
    padding-left: 10px;
}

/* --- BẮT ĐẦU: STYLE RIÊNG CHO PHẦN CUNG HOÀNG ĐẠO (PHIÊN BẢN 2) --- */

/* 1. Tùy chỉnh khối .final-analysis chính */
#comp-zodiac-analysis {
    background: linear-gradient(160deg, #f0f4f8 0%, #f7f9fb 100%); /* Màu nền xám xanh nhạt */
    border-top: 4px solid #191970; /* Màu xanh Navy đậm (MidnightBlue) */
}

/* 2. Tùy chỉnh Tiêu đề chính của khu vực */
#comp-zodiac-analysis .report-section-title {
    color: #191970;
    border-bottom-color: #d1d9e1;
}
/* Thêm icon ổ khóa vào sau heading nếu bị khóa */
#comp-zodiac-analysis.nrc-section-is-locked .report-section-title::after {
    content: '🔒';
    margin-left: 10px;
    font-size: 0.8em;
    vertical-align: middle;
}


/* 3. Tùy chỉnh các tiêu đề con (h4, h5) */
#comp-zodiac-analysis h4,
#comp-zodiac-analysis h5 {
    color: #4682B4; /* Màu xanh thép (SteelBlue) */
}

/* 4. Tùy chỉnh khối blockquote chứa kết quả luận giải */
#comp-zodiac-analysis .eastern-result {
    border-left-color: #4682B4; 
    background-color: #f5f8fa;
}

/* 5. Tùy chỉnh icon cung hoàng đạo */
.zodiac-icon {
    color: #191970;
}

/* 6. Style chung cho các tiêu đề bị khóa */
.final-analysis.nrc-section-is-locked .report-section-title::after {
    content: '🔒';
    margin-left: 10px;
    font-size: 0.8em;
    vertical-align: middle;
    opacity: 0.7;
}
/* --- KẾT THÚC STYLE RIÊNG --- */

/* --- BỔ SUNG: STYLE CHO CÔNG CỤ ĐẶT TÊN CON --- */

#naming-tool-app .nrc-input-section {
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.naming-result-section {
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fcfcfc;
}

.naming-result-section h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.missing-numbers-list {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

.number-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--danger-bg);
    color: var(--danger-border);
    font-weight: bold;
    border: 1px solid var(--danger-border);
}

.suggestions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.suggestions-table th,
.suggestions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.suggestions-table thead th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.suggestions-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.suggestions-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Responsive cho bảng gợi ý tên trên mobile */
@media (max-width: 600px) {
    .suggestions-table thead {
        display: none;
    }
    .suggestions-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
    }
    .suggestions-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
    }
    .suggestions-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
    }
}

/* --- BỔ SUNG: CẢI TIẾN GIAO DIỆN CÔNG CỤ ĐẶT TÊN --- */
.nrc-header-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 10px;
    margin-top: -5px;
}

.nrc-label-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.form-group.naming-tool-options {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    background-color: #fcfcfc;
}

.form-group-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: var(--text-color-primary);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.date-select-group {
    display: flex;
    gap: 10px;
}

.date-select {
    flex: 1;
}

/* --- BỔ SUNG: STYLE CHO BÁO CÁO ĐẶT TÊN CHI TIẾT --- */

.suggestion-name-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.suggestion-name-list li {
    padding: 8px 0;
    font-size: 1.1em;
    font-weight: 500;
}
.chart-notes {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.color-dot.dob { background-color: #e74a3b; }
.color-dot.name { background-color: #4e73df; }

.indices-table-container {
    flex: 1;
    min-width: 300px;
}
.indices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    height: 100%;
}
.index-cell {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.index-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color-secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.index-value {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-dark);
}
.name-evaluation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}
.name-evaluation h4 {
    margin-top: 0;
    margin-bottom: 10px;
}
.name-evaluation ul {
    list-style-type: '• ';
    padding-left: 20px;
    line-height: 1.8;
}

/* --- BỔ SUNG: STYLE CHO PHẦN PHÂN TÍCH MŨI TÊN (CÔNG CỤ ĐẶT TÊN) --- */

.dob-analysis-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.dob-analysis-summary .summary-title {
    padding: 10px 15px;
    background-color: #f0f2f5;
    border-radius: 4px;
    font-weight: 600;
    color: var(--text-color-primary);
    margin-bottom: 15px;
}

.dob-analysis-summary h4 {
    font-size: 1.1em;
    color: var(--primary-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}
.dob-analysis-summary h4:first-of-type {
    margin-top: 0;
}

.arrow-item p {
    margin-top: 0;
    margin-bottom: 10px;
}

.arrow-interpretation {
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

/* Ghi đè lại các thẻ p bên trong editor để không có margin thừa */
.arrow-interpretation p:first-child {
    margin-top: 0;
}
.arrow-interpretation p:last-child {
    margin-bottom: 0;
}

.grid-cell .dob-number { color: #e74a3b; }
.grid-cell .name-number { color: #4e73df; }
.naming-detailed-grid { display: flex; gap: 30px; flex-wrap: wrap; }
@media(max-width: 600px) {
    .naming-detailed-grid { flex-direction: column; }
}

/* --- BỔ SUNG: NÂNG CẤP GIAO DIỆN CÔNG CỤ ĐẶT TÊN CON --- */

#naming-tool-app .naming-tool-form-container {
    max-width: 650px;
    margin: 0 auto 25px auto;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #fcfdff;
}

#naming-tool-app .form-group-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    display: block;
}

#naming-tool-app .radio-group {
    gap: 15px;
}

#naming-tool-app .radio-group label {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    flex-grow: 1;
    text-align: center;
}

#naming-tool-app .radio-group label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#naming-tool-app .radio-group input[type="radio"]:checked + label,
#naming-tool-app .radio-group label:has(input[type="radio"]:checked) {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.1);
}

#naming-tool-app .radio-group input[type="radio"] {
    display: none;
}

/* Giao diện kết quả */
.naming-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.naming-card-header {
    padding: 15px 20px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.naming-card-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--primary-dark);
    font-weight: 700;
}

.naming-card-body {
    padding: 20px;
}

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 5px solid;
    background-color: #fff;
}

.score-value {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-color-secondary);
}

.evaluation-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evaluation-details li {
    font-size: 15px;
    line-height: 1.6;
}

.evaluation-details li strong {
    color: var(--primary-dark);
}

.naming-card-accordion .number-card {
    margin-bottom: 10px;
}

.name-suggestion-list {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.name-suggestion-list h4 {
    margin-top: 0;
}

.name-suggestion-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.name-suggestion-list li {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    #naming-tool-app .naming-tool-form-container {
        padding: 15px;
    }
    .naming-card-body {
        padding: 15px;
    }
    .evaluation-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .evaluation-details ul {
        text-align: left;
    }
}

/* --- BỔ SUNG: STYLE CHO GHI CHÚ "BẤM ĐỂ XEM CHI TIẾT" --- */

.number-card-prompt {
    display: block;
    font-size: 13px;
    font-style: italic;
    color: var(--text-color-secondary);
    margin-top: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
    max-height: 20px; /* Chiều cao ban đầu */
}

/* Khi thẻ được mở, ẩn ghi chú đi một cách mượt mà */
.number-card.is-open .number-card-prompt {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
}

/* --- BỔ SUNG: CSS CHO TÍNH NĂNG KHÓA CÔNG CỤ ĐẶT TÊN --- */

/* Style cho các radio button bị khóa */
#naming-tool-app .radio-group label.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
    position: relative;
}

#naming-tool-app .radio-group label.is-disabled::after {
    content: '🔒';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2em;
    color: var(--primary-color);
}

/* Style cho thẻ kết quả bị khóa */
.naming-card.is-locked .naming-card-body {
    position: relative;
    min-height: 200px; /* Chiều cao tối thiểu để hiển thị overlay */
}

.locked-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.locked-content-overlay .lock-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.locked-content-overlay h4 {
    margin: 0 0 10px 0;
    color: var(--primary-dark);
}
.locked-content-overlay p {
    margin: 0 0 15px 0;
    color: var(--text-color-secondary);
    font-size: 14px;
}

/* Style cho nút CTA xem báo cáo chi tiết */
.btn-view-full-report {
    display: inline-block;
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.btn-view-full-report:hover {
    background-color: var(--primary-color);
    color: var(--button-text-color);
}

.locked-content-overlay .btn-view-full-report {
    margin-top: 0;
    background: var(--primary-color);
    color: var(--button-text-color);
}

/* --- BỔ SUNG: CSS CHO TÍNH NĂNG KHÓA VÀ LINK ĐẶT TÊN (V2) --- */

/* Style cho link trong danh sách tên gợi ý */
.name-suggestion-list ul li a.scroll-to-name {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.2s;
}
.name-suggestion-list ul li:has(a.scroll-to-name):hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    cursor: pointer;
}
.name-suggestion-list ul li:has(a.scroll-to-name):hover a.scroll-to-name {
    color: var(--primary-dark);
}
/* Style cho thẻ <li> cha, chỉ định layout chung */
.name-suggestion-list li.is-locked-suggestion {
    opacity: 0.7;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: opacity 0.3s ease;
    display: inline-flex; /* Dùng flex để căn chỉnh tên và icon */
    align-items: center;  /* Căn giữa theo chiều dọc */
    gap: 6px;             /* Khoảng cách giữa tên và icon */
}

/* Chỉ áp dụng hiệu ứng mờ cho phần text */
.locked-suggestion-text {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

/* Icon thì không bị mờ */
.locked-suggestion-icon {
    filter: none; /* Đảm bảo icon luôn sắc nét */
    font-size: 1.1em; /* Làm icon to hơn một chút cho nổi bật */
}

/* Khi di chuột vào thẻ <li> cha */
.name-suggestion-list li.is-locked-suggestion:hover {
    opacity: 0.9;
}

/* ...thì chỉ giảm độ mờ của phần text con */
.name-suggestion-list li.is-locked-suggestion:hover .locked-suggestion-text {
    filter: blur(2px);
}

/* Style cho nút CTA bị khóa */
.btn-view-full-report.is-locked-cta {
    opacity: 0.7;
    cursor: pointer; /* Giữ con trỏ để người dùng biết có thể click */
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}
.btn-view-full-report.is-locked-cta:hover {
    background-color: #e9ecef;
    color: #495057;
}