/**
 * ==========================================================================
 * BÁT TỰ MANH PHÁI — SUBPAGES STYLES (CSS DÙNG RIÊNG CÁC TRANG CON)
 * Áp dụng cho: tuong_hop, phong_thuy_so, luan_giai_vip, thanh_toan, tai_khoan,
 * các trang bài viết (bai_viet_*.html) và chính sách (hoan_tien, bao_mat, dieu_khoan).
 * ==========================================================================
 */

/* ==========================================================================
   QUY CHUẨN TYPOGRAPHY: CHỈ TRANG CHỦ DÙNG PLAYFAIR DISPLAY,
   TẤT CẢ CÁC TRANG CON DÙNG 100% BE VIETNAM PRO
   ========================================================================== */
:root {
    --font-royal: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
}

body:not(.home-page) {
    font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
}

body:not(.home-page) .font-royal,
body:not(.home-page) [class*="font-royal"],
body:not(.home-page) h1,
body:not(.home-page) h2,
body:not(.home-page) h3,
body:not(.home-page) h4,
body:not(.home-page) h5,
body:not(.home-page) h6 {
    font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
}

body:not(.home-page) footer h4 {
    font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
}

/* ==========================================================================
   1. TRANG TƯƠNG HỢP ĐÔI LỨA (tuong_hop.html)
   Đã chuyển sang battu-form.css và Unified Design System chuẩn chung
   ========================================================================== */

#bao-cao-tuong-hop {
    color: var(--text-title, #302822);
}

#bao-cao-tuong-hop p {
    color: var(--text-desc, #46556A) !important;
}

/* Các box so sánh trụ Bát Tự */
#bao-cao-tuong-hop .bg-slate-50 {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

#bao-cao-tuong-hop .bg-\[\#FFFDF5\],
#bao-cao-tuong-hop .tuonghop-highlight-pillar {
    background-color: rgba(181, 18, 36, 0.04) !important;
    border-color: #B51224 !important;
}

/* Radar Chart 5 Trục */
#bao-cao-tuong-hop svg polygon[fill*="181, 18, 36"] {
    fill: rgba(181, 18, 36, 0.12) !important;
    stroke: #B51224 !important;
}

#bao-cao-tuong-hop svg circle[fill="#B51224"] {
    fill: #B51224 !important;
}

#bao-cao-tuong-hop svg text {
    font-family: var(--font-sans), sans-serif !important;
}

/* Nút Submit & Thẻ Gói 150.000đ */
form:has(#input-name-male) button[type="submit"],
button[onclick*="openPayOSModalTuongHop"] {
    background: var(--color-primary, #B51224) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(181, 18, 36, 0.25) !important;
}

form:has(#input-name-male) button[type="submit"]:hover,
button[onclick*="openPayOSModalTuongHop"]:hover {
    background: var(--color-primary-hover, #981020) !important;
}

/* Badge Độ Hợp Tổng Quan & Giá */
.tuonghop-compat-tag {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #FFF1F2 !important;
    color: #B51224 !important;
    border: 1px solid #FECDD3 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 14px !important;
    border-radius: 0px !important;
}

.tuonghop-price-badge {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #B51224 !important;
    color: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 3px 12px !important;
    border-radius: 0px !important;
    box-shadow: 0 1px 3px rgba(181, 18, 36, 0.2) !important;
}

/* ==========================================================================
   2. TRANG PHONG THỦY SỐ (SIM & BIỂN SỐ) (phong_thuy_so.html)
   ========================================================================== */
#phong-thuy-section {
    max-width: 64rem !important;
    /* max-w-5xl */
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
}

#phong-thuy-form input:not(#input-num-q1):not(#input-num-q2):not(#input-num-q3),
#phong-thuy-form select {
    background-color: #FFFFFF !important;
    border: 1px solid #C8BBAE !important;
    color: #1E293B !important;
}

#phong-thuy-form input:focus,
#phong-thuy-form select:focus {
    border-color: #B51224 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(181, 18, 36, 0.15) !important;
}

#input-number {
    background-color: #FFFDFB !important;
    border: 1px solid #B51224 !important;
    color: #B51224 !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

#input-number:focus {
    border-color: #B51224 !important;
    box-shadow: 0 0 0 3px rgba(181, 18, 36, 0.2) !important;
}

#phong-thuy-form button[type="submit"] {
    background-color: #B51224 !important;
    color: #FFFFFF !important;
}

#phong-thuy-form button[type="submit"]:hover {
    background-color: #8F0E1D !important;
}

#bao-cao-so-dep {
    max-width: 64rem !important;
    width: 100% !important;
}

#bao-cao-so-dep>div {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Thẻ nâng cấp 150k Hoàng Gia */
#bao-cao-so-dep .card-upgrade-numerology {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F6 100%) !important;
    border: 2px solid #B51224 !important;
    box-shadow: 0 10px 30px rgba(181, 18, 36, 0.1) !important;
    color: #302822 !important;
}

#bao-cao-so-dep .card-upgrade-numerology h4 {
    color: #302822 !important;
}

#bao-cao-so-dep .card-upgrade-numerology button {
    background-color: #B51224 !important;
    color: #FFFFFF !important;
}

#bao-cao-so-dep .card-upgrade-numerology button:hover {
    background-color: #8F0E1D !important;
}

/* ==========================================================================
   3. TRANG BÁO CÁO VIP & CHATBOT (luan_giai_vip.html)
   ========================================================================== */
#col-chatbot {
    background-color: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
}

#chat-history {
    background-color: transparent !important;
}

#input-question {
    background-color: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
}

#input-question:focus {
    border-color: #B51224 !important;
    box-shadow: 0 0 0 2px rgba(181, 18, 36, 0.15) !important;
}

/* Modal VietQR mua thêm câu hỏi */
#modal-mua-them-cau-hoi>div {
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
}

/* ==========================================================================
   4. TRANG BÀI VIẾT CHUYÊN SÂU & CHÍNH SÁCH PHÁP LÝ (bai_viet_*.html)
   ========================================================================== */
main article {
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
    color: #1E293B !important;
}

main article h1,
main article h2,
main article h3,
main article h4 {
    color: #302822 !important;
    font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
}

main article p,
main article li {
    color: #334155 !important;
    line-height: 1.75 !important;
}

main article strong {
    color: #302822 !important;
}

main article time {
    color: #64748B !important;
}

/* Mục lục TOC */
main article div:has(> ul.list-none) {
    background: #FAF8F5 !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
}

main article div:has(> ul.list-none) ul li a {
    color: #475569 !important;
}

main article div:has(> ul.list-none) ul li a:hover {
    color: #B51224 !important;
}

/* Bảng phân tích trong bài viết */
main article table {
    border: 1px solid #EAE2D5 !important;
    background: #FFFFFF !important;
}

main article table thead th {
    background: #FAF6F0 !important;
    color: #302822 !important;
    border-bottom: 1px solid #EAE2D5 !important;
}

main article table tbody tr:nth-child(odd) {
    background: #FFFFFF !important;
}

main article table tbody tr:nth-child(even) {
    background: #FAF8F5 !important;
}

main article details {
    background: #FAF8F5 !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
}

main article details summary {
    color: #302822 !important;
}

/* ==========================================================================
   5. TRANG THANH TOÁN & QUẢN LÝ TÀI KHOẢN (thanh_toan.html, tai_khoan.html)
   ========================================================================== */
#order-summary-card,
#payment-card,
#account-card {
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

#vietqr-image-container {
    background: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
}