/* =========================================================================
   APP-UX LAYER — Trải nghiệm "như App" trên di động cho lap_la_so.html
   - Chỉ áp dụng ở màn hình < 640px (mobile). Desktop giữ nguyên 100%.
   - Chỉ CSS: KHÔNG đổi ID, class JS, logic. An toàn tuyệt đối (zero regression).
   - Nguyên tắc: ít box lồng nhau, nhiều khoảng trắng, chữ tối thiểu 10.5px,
     tiêu đề đồng nhất, chạm mượt.
   ========================================================================= */

:root {
    --ux-bg: #F7F3EC;
    --ux-surface: #FFFFFF;
    --ux-ink: #2B231D;
    --ux-ink-soft: #6B6158;
    --ux-line: rgba(48, 40, 34, 0.08);
    --ux-accent: #B51224;
    --ux-radius: 0px;
    --ux-shadow: 0 1px 2px rgba(48, 40, 34, 0.04), 0 8px 24px -12px rgba(48, 40, 34, 0.12);
}

@media (max-width: 639px) {

    /* ---------- 1. Nền & chạm mượt ---------- */
    html, body {
        -webkit-tap-highlight-color: transparent;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    body.home-page {
        background: var(--ux-bg) !important;
    }

    /* Giảm "nhiễu" tinh vân phía sau để nội dung nổi bật */
    #cosmic-canvas {
        opacity: 0.35;
    }

    main {
        padding-left: 12px !important;
        padding-right: 12px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    #la-so-chuan-full,
    #phan-tich-chuyen-sau {
        row-gap: 0;
    }

    #la-so-chuan-full > * + *,
    #phan-tich-chuyen-sau > * + * {
        margin-top: 20px !important;
    }

    /* ---------- 2. Card cấp 1: góc phẳng hoàng gia, viền 1px mảnh ---------- */
    #sec-tu-tru,
    #sec-luu-nguyet,
    #sec-ngu-hanh,
    #sec-free-reading,
    #sec-chu-de,
    #card-chon-goi {
        border: 1px solid #EAE2D5 !important;
        border-radius: 0px !important;
        background: var(--ux-surface) !important;
        box-shadow: 0 4px 15px rgba(48, 40, 34, 0.05) !important;
        padding: 18px 14px !important;
    }

    /* Bảng tứ trụ & lưu nguyệt cần sát mép hơn để đủ chỗ 5-6 cột */
    #sec-tu-tru {
        padding: 16px 8px !important;
    }
    #sec-luu-nguyet {
        padding: 16px 8px !important;
    }
    .laso-than-sat-chip-pc {
        font-size: 8.5px !important;
        line-height: 1.2 !important;
        padding: 1.5px 0.5px !important;
        margin: 1.5px 0 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        text-overflow: clip !important;
        overflow: visible !important;
        letter-spacing: -0.015em !important;
    }

    /* ---------- 3. Tiêu đề section đồng nhất ---------- */
    #la-so-chuan-full .la-so-card-title,
    #sec-chu-de h3,
    #card-chon-goi h3 {
        font-size: 14px !important;
        line-height: 1.35 !important;
        letter-spacing: 0.02em !important;
        font-weight: 800 !important;
        color: var(--ux-accent) !important;
    }

    #la-so-chuan-full .la-so-card-subtitle {
        font-size: 12.5px !important;
        color: var(--ux-ink-soft) !important;
        margin-top: 4px;
    }

    /* Header card: dùng khoảng trắng thay vì đường kẻ đậm */
    #sec-chu-de > div:first-child,
    #card-chon-goi > div:first-child {
        border-bottom-color: var(--ux-line) !important;
        padding-bottom: 12px !important;
    }

    /* ---------- 4. Bỏ box lồng box (flatten nested boxes) ---------- */

    /* 4a. Khối "Đương Số" trong header lá số */
    #sec-tu-tru > div:first-child {
        border-bottom-color: var(--ux-line) !important;
    }

    #sec-tu-tru > div:first-child > div.rounded-xl {
        min-width: 0 !important;
        border: 1px solid #EAE2D5 !important;
        box-shadow: none !important;
        background: #FBF8F3 !important;
        border-radius: 0px !important;
        padding: 12px 14px !important;
        font-size: 13px !important;
    }

    #sec-tu-tru > div:first-child > div.rounded-xl > div:first-child {
        border-bottom: 0 !important;
        margin-bottom: 4px !important;
    }

    #sec-tu-tru > div:first-child > div.rounded-xl .w-22 {
        min-width: 86px;
        display: inline-block;
    }

    /* 4b. Khối "Chọn thời vận" & "Chọn gói" bên trong #sec-chu-de */
    #sec-chu-de > div.rounded-xl {
        border: 1px solid #EAE2D5 !important;
        box-shadow: none !important;
        background: #FBF8F3 !important;
        border-radius: 0px !important;
        padding: 14px 12px !important;
    }

    #sec-chu-de > div.rounded-xl > div:first-child {
        border-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    #sec-chu-de select {
        height: 46px !important;
        border-radius: 0px !important;
        font-size: 14px !important;
        border: 1px solid #EAE2D5 !important;
        box-shadow: none !important;
    }

    #sec-chu-de label {
        font-size: 13px !important;
    }

    /* 4c. Khối điểm Nhật Chủ trong Ngũ Hành */
    #sec-ngu-hanh div.rounded-xl {
        box-shadow: none !important;
    }

    /* ---------- 5. Lưới 10 chủ đề: 1 Cột trên mobile chống vỡ chữ và rớt dòng, 2 cột trên PC ---------- */
    #topics-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    @media (min-width: 640px) {
        #topics-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 10px !important;
        }
    }

    #topics-grid .topic-item {
        min-height: 48px !important;
        height: auto !important;
        padding: 8px 10px !important;
        border-radius: 0px !important;
        gap: 8px !important;
        align-items: flex-start !important;
        transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease !important;
    }

    #topics-grid .topic-item:not(.active) {
        border: 1px solid #EAE2D5 !important;
        background: #FBF8F3 !important;
    }

    #topics-grid .topic-item.active {
        background: #FFF4F5 !important;
        border: 1px solid var(--ux-accent) !important;
        --tw-ring-shadow: 0 0 0 0 transparent !important;
        box-shadow: 0 4px 12px -6px rgba(181, 18, 36, 0.35) !important;
    }

    #topics-grid .topic-item:active {
        transform: scale(0.985);
    }

    #topics-grid .topic-item input[type="checkbox"] {
        width: 15px !important;
        height: 15px !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    #topics-grid .topic-item .text-xs {
        font-size: 12px !important;
    }

    #topics-grid .topic-item [class*="text-[9px]"],
    #topics-grid .topic-item [class*="text-[9.5px]"],
    #topics-grid .topic-item [class*="text-[10px]"] {
        font-size: 9.5px !important;
        line-height: 1.35 !important;
        margin-top: 2px !important;
    }

    #topics-grid .topic-item span[class*="text-[10px]"].font-black {
        font-size: 9.5px !important;
        padding: 0.5px 4px !important;
    }

    #topics-grid .topic-item .topic-title {
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: var(--ux-ink) !important;
    }

    #topics-grid .topic-item.active .topic-title {
        color: #881337 !important;
    }

    #topics-grid .topic-item .text-slate-500 {
        font-size: 9.5px !important;
        line-height: 1.35 !important;
        color: var(--ux-ink-soft) !important;
        margin-top: 2.5px !important;
    }

    #topics-grid .topic-item svg,
    #topics-grid .topic-item [data-lucide] {
        width: 13px !important;
        height: 13px !important;
        flex-shrink: 0 !important;
    }

    /* Hàng "Chọn gói luận giải": cho badge xuống dòng gọn gàng */
    #sec-chu-de > div.rounded-xl > div:first-child {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    /* ---------- 6. Sàn cỡ chữ tối thiểu cho phần đọc (không áp vào bảng tứ trụ) ---------- */
    #sec-chu-de [class*="text-[7"],
    #sec-chu-de [class*="text-[8"],
    #sec-chu-de [class*="text-[9px]"],
    #sec-chu-de [class*="text-[9.5px]"],
    #card-chon-goi [class*="text-[7"],
    #card-chon-goi [class*="text-[8"],
    #card-chon-goi [class*="text-[9px]"],
    #card-chon-goi [class*="text-[9.5px]"],
    #sec-free-reading [class*="text-[8"],
    #sec-free-reading [class*="text-[9"],
    #sec-than-sat > div:first-child [class*="text-[9"],
    #sec-ngu-hanh [class*="text-[8"],
    #sec-ngu-hanh [class*="text-[9px]"] {
        font-size: 10.5px !important;
    }

    /* Huy hiệu -30% vẫn gọn */
    #sec-chu-de span.uppercase.leading-none {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    /* ---------- 7. Bài đọc miễn phí: dễ đọc như app đọc báo ---------- */
    #sec-free-reading {
        background: var(--ux-surface) !important;
    }

    #sec-free-reading p {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        color: #302822 !important;
    }

    #sec-free-reading p + p {
        margin-top: 10px;
    }

    /* ---------- 8. Card chọn gói: gọn, rõ giá ---------- */
    #card-chon-goi #package-card-coban,
    #card-chon-goi #package-card-vip {
        border-radius: 0px !important;
        border: 1px solid #EAE2D5 !important;
        padding: 16px !important;
    }

    #card-chon-goi li,
    #card-chon-goi .space-y-2 > div {
        font-size: 13.5px;
    }

    /* ---------- 9. Huy hiệu (pill) đồng nhất ---------- */
    #badge-header-topic-count,
    #badge-nam-luan-giai,
    #badge-package-indicator {
        font-size: 11px !important;
        padding: 3px 10px !important;
        border-radius: 0px !important;
        box-shadow: none !important;
    }

    /* =========================================================================
       10. CHUẨN HÓA ĐỒNG BỘ TOÀN BỘ FORM TRÊN MOBILE (< 640px)
       Áp dụng thống nhất 100% cho: lap_la_so, tuong_hop, phong_thuy_so, index
       ========================================================================= */

    /* 10a. Ô nhập liệu (Input) trên Mobile: Cao 46px, font 16px chống iOS auto-zoom */
    .battu-input,
    #section-form-lap-la-so input:not([type="checkbox"]):not([type="radio"]),
    form[onsubmit*="handleTuongHopSubmit"] input:not([type="radio"]):not([type="checkbox"]),
    #hero-quick-form input:not([type="radio"]):not([type="checkbox"]),
    #phong-thuy-form input:not([type="radio"]):not([type="checkbox"]):not(#input-number) {
        width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
        color: #1E293B !important;
        background-color: #FFFFFF !important;
        border: 1px solid #C8BBAE !important;
        border-radius: 0px !important;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
        outline: none !important;
    }

    .battu-input:focus,
    #section-form-lap-la-so input:focus,
    form[onsubmit*="handleTuongHopSubmit"] input:focus,
    #hero-quick-form input:focus,
    #phong-thuy-form input:focus:not(#input-number) {
        border-color: #B51224 !important;
        background-color: #FFFFFF !important;
        box-shadow: 0 0 0 1px rgba(181, 18, 36, 0.25) !important;
    }

    /* 10a-bis. Ô nhập SIM & Biển Số Xe Nổi Bật Hoàng Gia trên Mobile */
    #input-number {
        width: 100% !important;
        height: 52px !important;
        min-height: 52px !important;
        font-size: 24px !important;
        font-weight: 900 !important;
        font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
        letter-spacing: 0.12em !important;
        text-align: center !important;
        color: #B51224 !important;
        background-color: #FFFDFB !important;
        border: 1px solid #B51224 !important;
        border-radius: 0px !important;
        box-shadow: 0 1px 3px 0 rgba(181, 18, 36, 0.08) !important;
        outline: none !important;
    }

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

    /* 10b. Ô chọn Dropdown (Select) trên Mobile: Cao 44px, font 13px sắc nét, không cấn icon */
    .battu-select,
    #section-form-lap-la-so select,
    form[onsubmit*="handleTuongHopSubmit"] select,
    #hero-quick-form select,
    #phong-thuy-form select {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
        color: #1E293B !important;
        background-color: #FFFFFF !important;
        border: 1px solid #C8BBAE !important;
        border-radius: 0px !important;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
        outline: none !important;
        cursor: pointer !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .battu-select:focus,
    #section-form-lap-la-so select:focus,
    form[onsubmit*="handleTuongHopSubmit"] select:focus,
    #hero-quick-form select:focus,
    #phong-thuy-form select:focus {
        border-color: #B51224 !important;
        background-color: #FFFFFF !important;
        box-shadow: 0 0 0 1px rgba(181, 18, 36, 0.25) !important;
    }

    .battu-select.text-center,
    select.battu-select.text-center,
    #section-form-lap-la-so select.text-center,
    form[onsubmit*="handleTuongHopSubmit"] select.text-center,
    #hero-quick-form select.text-center {
        text-align: center !important;
        text-align-last: center !important;
        -moz-text-align-last: center !important;
    }

    /* 10c. Nút Toggle Giới tính & Loại lịch */
    .battu-toggle-container,
    #section-form-lap-la-so .battu-toggle-container,
    form[onsubmit*="handleTuongHopSubmit"] .battu-toggle-container,
    #hero-gender-box, #hero-quick-form .battu-toggle-container {
        height: 44px !important;
        min-height: 44px !important;
        background-color: #F1F5F9 !important;
        border: 1px solid #E2E8F0 !important;
        border-radius: 0px !important;
    }

    .battu-toggle-btn {
        font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border-radius: 0px !important;
    }

    .battu-toggle-btn.active {
        background-color: #B51224 !important;
        color: #FFFFFF !important;
        font-weight: 700 !important;
    }

    /* 10d. Nhãn Form (Label) */
    .battu-label,
    #section-form-lap-la-so label,
    form[onsubmit*="handleTuongHopSubmit"] label,
    #hero-quick-form label,
    #phong-thuy-form label {
        font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        color: #302822 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 5px !important;
    }

    /* 10e. Nút Submit Chính của tất cả các Form */
    .battu-btn-primary,
    #btn-submit-form,
    #btn-submit-tuonghop,
    #hero-submit-btn,
    form[onsubmit*="handleTuongHopSubmit"] button[type="submit"],
    #phong-thuy-form button[type="submit"] {
        width: 100% !important;
        min-height: 48px !important;
        height: 48px !important;
        background-color: #B51224 !important;
        color: #FFFFFF !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        border-radius: 0px !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 14px rgba(181, 18, 36, 0.25) !important;
    }

    /* ---------- 11. Nút bấm: phản hồi chạm ---------- */
    #la-so-chuan-full button,
    #section-form-lap-la-so button {
        transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    #la-so-chuan-full button:active,
    #section-form-lap-la-so button:active {
        transform: scale(0.97);
    }

    /* ---------- 12. Hiệu ứng xuất hiện nhẹ cho các card ---------- */
    @media (prefers-reduced-motion: no-preference) {
        #sec-tu-tru,
        #sec-luu-nguyet,
        #sec-ngu-hanh,
        #sec-free-reading,
        #sec-chu-de,
        #card-chon-goi {
            animation: uxFadeUp 0.45s ease both;
        }
    }

    @keyframes uxFadeUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: none; }
    }
    /* =========================================================================
       13. TUONG_HOP.HTML — Trải nghiệm Flat Luxury Chấm Điểm Tương Hợp Tình Duyên
       ========================================================================= */

    /* 13a. Form so sánh 2 bên Nam & Nữ */
    form[onsubmit*="handleTuongHopSubmit"] {
        padding: 0 !important;
    }

    /* Container ngoài của form & các Master Cards */
    main > section.bg-white,
    #bao-cao-tuong-hop > div:first-child,
    #bao-cao-tuong-hop > div.space-y-4,
    #bao-cao-tuong-hop > div[class*="border-[#EAE2D5]"],
    #tuonghop-paywall-container,
    #tuonghop-bottom-price-card,
    #box-love-expert-qa,
    #tuonghop-new-profile-wrap,
    #seo-kien-thuc-tuong-hop > div {
        border: 1px solid #EAE2D5 !important;
        border-radius: 0px !important;
        background: #FFFFFF !important;
        box-shadow: 0 8px 30px rgba(48,40,34,0.05) !important;
        padding: 14px !important;
    }

    /* 2 Khối Thông tin Nam & Nữ trong Form */
    form[onsubmit*="handleTuongHopSubmit"] > div.grid > div {
        border: 1px solid #EAE2D5 !important;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03) !important;
        background: #FFFFFF !important;
        border-radius: 0px !important;
        padding: 14px !important;
    }

    /* Mobile Segmented Tab cho Form Tương Hợp */
    #subcard-male.is-hidden-mobile,
    #subcard-female.is-hidden-mobile {
        display: none !important;
    }

    form[onsubmit*="handleTuongHopSubmit"] > div.grid > div > div:first-child {
        border-bottom: 1px solid #F0EAE1 !important;
        padding-bottom: 8px !important;
    }

    /* 13b. Card tóm tắt đầu báo cáo */
    #bao-cao-tuong-hop > div:first-child {
        padding: 14px !important;
    }

    #bao-cao-tuong-hop > div:first-child h2 {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    #bao-cao-tuong-hop > div:first-child button {
        min-height: 40px !important;
        border-radius: 0px !important;
        font-size: 12px !important;
    }

    /* 13c. Mệnh bàn Tứ Trụ Tiền Thiên Đối Chiếu Song Song */
    #bao-cao-tuong-hop > div.space-y-4 {
        padding: 14px !important;
    }

    /* Card Bên Nam & Bên Nữ trong Mệnh bàn */
    #bao-cao-tuong-hop > div.space-y-4 .grid.grid-cols-1.md\:grid-cols-2 > div {
        border: 1px solid #EAE2D5 !important;
        background: #FAF8F5 !important;
        border-radius: 0px !important;
        padding: 10px 8px !important;
        box-shadow: none !important;
    }

    #bao-cao-tuong-hop > div.space-y-4 .grid.grid-cols-1.md\:grid-cols-2 > div > div:first-child {
        border-bottom: 1px solid #F0EAE1 !important;
        padding-bottom: 6px !important;
    }

    /* 4 Trụ (Năm, Tháng, Ngày, Giờ) */
    #male-pillars-grid > div,
    #female-pillars-grid > div {
        border-radius: 0px !important;
        background: #FFFFFF !important;
        border: 1px solid #EAE2D5 !important;
        padding: 6px 2px !important;
        box-shadow: none !important;
    }

    #male-pillars-grid > div[class*="border-[#B51224]"],
    #female-pillars-grid > div[class*="border-[#B51224]"] {
        border: 1px solid #B51224 !important;
        background: #FFF4F5 !important;
    }

    #male-pillars-grid .text-xs,
    #male-pillars-grid .sm\:text-sm,
    #female-pillars-grid .text-xs,
    #female-pillars-grid .sm\:text-sm {
        font-size: 13.5px !important;
        font-weight: 800 !important;
    }

    /* 3 Khối highlight tương tác Nhật Can, Cung Phu Thê, Cứu Ứng */
    #highlight-boxes-container > div {
        border: 1px solid #EAE2D5 !important;
        border-radius: 0px !important;
        padding: 8px 10px !important;
        box-shadow: none !important;
    }

    #highlight-boxes-container span.uppercase {
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0.02em !important;
    }

    #highlight-boxes-container p {
        font-size: 12.5px !important;
        font-weight: 700 !important;
        color: var(--ux-ink) !important;
        margin-top: 2px !important;
    }

    /* 13d. Độ Hợp Tổng Quan & Radar Chart */
    #bao-cao-tuong-hop > div[class*="border-[#EAE2D5]"] {
        padding: 14px !important;
    }

    /* 13e. Bình giải chuyên sâu (Mục 01, 02, 03, 04) */
    #tuonghop-locked-content {
        padding: 0 !important;
    }

    #tuonghop-locked-content h4,
    #numerology-locked-content h4 {
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #302822 !important;
    }

    #tuonghop-locked-content p,
    #numerology-locked-content p,
    #numerology-locked-content div.text-left {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        color: #302822 !important;
    }

    /* 13f. Khối Paywall Overlay & Thẻ VIP */
    #tuonghop-paywall-overlay {
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 0px !important;
        padding: 16px 14px !important;
    }

    #tuonghop-paywall-overlay h3 {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: var(--ux-ink) !important;
    }

    #tuonghop-paywall-overlay button {
        min-height: 46px !important;
        border-radius: 0px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    /* Thẻ giá 150k bên dưới */
    #tuonghop-bottom-price-card {
        border: 1px solid #B51224 !important;
        border-radius: 0px !important;
        padding: 14px !important;
        background: #FFFFFF !important;
        box-shadow: 0 8px 30px rgba(48,40,34,0.05) !important;
    }

    #tuonghop-bottom-price-card button#tuonghop-bottom-pay-btn {
        min-height: 46px !important;
        border-radius: 0px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    /* 13g. Vấn đáp chuyên gia Bát Tự */
    #box-love-expert-qa {
        padding: 14px !important;
        border-radius: 0px !important;
        border: 1px solid #EAE2D5 !important;
    }

    #box-love-expert-qa input,
    #box-love-expert-qa textarea,
    #box-num-expert-qa input,
    #box-num-expert-qa textarea {
        font-size: 13.5px !important;
        border-radius: 0px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #box-love-expert-qa button[type="submit"],
    #box-num-expert-qa button[type="submit"] {
        min-height: 44px !important;
        border-radius: 0px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    /* =========================================================================
       14. TRANG BÁO CÁO LUẬN GIẢI VIP (luan_giai_vip.html) — CHUẨN APP MOBILE
       ========================================================================= */

    /* 14a. Header Banner Hero VIP */
    .banner-hero-card {
        padding: 14px 12px !important;
        border-radius: 0px !important;
        box-shadow: 0 4px 15px rgba(48, 40, 34, 0.05) !important;
        border: 1px solid #EAE2D5 !important;
        background: #FFFFFF !important;
    }
    .banner-title-text {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }
    .banner-chips-row {
        gap: 5px !important;
        row-gap: 5px !important;
        font-size: 10.5px !important;
    }
    .banner-chip-item {
        padding: 3px 8px !important;
        font-size: 10.5px !important;
        border-radius: 0px !important;
    }

    /* 14b. Box 1 Báo cáo & Box 2 Q&A & Box 3 PDF */
    #box-1-report,
    #box-2-qa,
    #box-3-pdf {
        padding: 16px 12px !important;
        border-radius: 0px !important;
        border: 1px solid #EAE2D5 !important;
        box-shadow: 0 4px 15px rgba(48, 40, 34, 0.05) !important;
        background: #FFFFFF !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* 14d. Bảng 8 Năng Lực 2 Cột & Radar Chart */
    .radar-card-wrapper {
        padding: 12px 10px !important;
        border-radius: 0px !important;
        border: 1px solid rgba(253, 230, 138, 0.7) !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .radar-list-item {
        padding: 5px 7px !important;
        border-radius: 0px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .radar-list-name {
        font-size: 11px !important;
        font-weight: 700 !important;
    }
    .radar-list-tier {
        font-size: 9.5px !important;
        font-weight: 600 !important;
    }
    .radar-list-score {
        font-size: 11px !important;
        padding: 1px 4.5px !important;
    }

    /* 14e. Bảng Tứ Trụ Tiền Thiên trong Báo cáo VIP (4 Cột Chuẩn Trên Mobile) */
    #card-tu-tru-summary {
        padding-bottom: 12px !important;
        overflow: hidden !important;
        max-width: 100% !important;
    }
    #grid-tu-tru-cells {
        gap: 5px !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
    #grid-tu-tru-cells > div {
        padding: 6px 3px !important;
        border-radius: 0px !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    #tu-tru-quick-info {
        max-width: 100% !important;
        gap: 6px !important;
    }
    #tu-tru-quick-info > div {
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 8px 10px !important;
    }

    /* 14f. Typography Luận giải chuyên gia */
    #vip-consulting-sections h3 {
        font-size: 14.5px !important;
        line-height: 1.35 !important;
        font-weight: 800 !important;
        color: #302822 !important;
    }
    #vip-consulting-sections .flex.items-start,
    #vip-consulting-sections p {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        color: #302822 !important;
    }

    /* 14g. Audio Player card */
    #card-audio-init,
    #card-audio-player,
    #card-audio-loading {
        padding: 12px 10px !important;
        border-radius: 0px !important;
    }
    #audio-play-btn {
        width: 40px !important;
        height: 40px !important;
    }

    /* 14h. Chat Q&A Input */
    #chat-input-question {
        font-size: 14.5px !important;
        border-radius: 0px !important;
    }
    #chat-form-vip button[type="submit"] {
        min-height: 44px !important;
        border-radius: 0px !important;
        font-size: 13.5px !important;
    }

    /* 15. Trang Phong Thủy Số (phong_thuy_so.html) - Tinh Gọn Mobile & Bảng 4 Cột */
    #numerology-battinh-timeline {
        width: 100% !important;
        max-width: 100% !important;
    }
    #numerology-battinh-cards table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }
    #numerology-battinh-cards th,
    #numerology-battinh-cards td {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    #numerology-battinh-cards th:nth-child(1),
    #numerology-battinh-cards td:nth-child(1),
    #numerology-battinh-cards th:nth-child(2),
    #numerology-battinh-cards td:nth-child(2),
    #numerology-battinh-cards th:nth-child(3),
    #numerology-battinh-cards td:nth-child(3) {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    #numerology-battinh-cards td:nth-child(3) span {
        white-space: nowrap !important;
        display: inline-flex !important;
        flex-shrink: 0 !important;
    }
    #numerology-battinh-cards td:nth-child(4) {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    button[onclick="openPayOSModalNumerology()"] {
        white-space: nowrap !important;
    }
    #seo-kien-thuc-so-dep .inline-flex {
        white-space: nowrap !important;
    }

    /* =========================================================================
       16. BỘ QUY CHUẨN GÓC PHẲNG HOÀNG GIA TOÀN DIỆN MOBILE (ZERO ROUNDED CORNERS)
       Triệt tiêu 100% bo góc trên toàn bộ phần tử, chỉ giữ tròn cho icon/spinner/avatar
       ========================================================================= */
    *, *::before, *::after {
        --ux-radius: 0px !important;
    }
    div, section, article, header, footer, main, form, nav,
    .card, .master-card, .sub-card, .battu-master-card, .battu-sub-card,
    .topic-item, .la-so-table-box, .la-so-table-wrap,
    input, select, textarea, button,
    [class*="rounded-"]:not([class*="rounded-full"]):not(.w-1):not(.w-1\.5):not(.w-2):not(.w-2\.5):not(.w-3):not(.w-3\.5):not(.w-4):not(.w-5):not(.w-6):not(.w-8):not(.w-10):not(.w-12):not(.w-14):not(.w-16):not([class*="animate-spin"]):not([class*="animate-bounce"]),
    [class*="rounded"]:not([class*="rounded-full"]):not(.w-1):not(.w-1\.5):not(.w-2):not(.w-2\.5):not(.w-3):not(.w-3\.5):not(.w-4):not(.w-5):not(.w-6):not(.w-8):not(.w-10):not(.w-12):not(.w-14):not(.w-16):not([class*="animate-spin"]):not([class*="animate-bounce"]) {
        border-radius: 0px !important;
    }

    /* Khóa các badge/pill trên mobile về góc phẳng */
    span[class*="rounded-full"]:not(.w-1):not(.w-1\.5):not(.w-2):not(.w-2\.5):not(.w-3):not(.w-3\.5):not(.w-4):not(.w-5):not(.w-6):not(.w-8):not(.w-10):not(.w-12):not(.w-14):not(.w-16):not([class*="animate-spin"]):not([class*="animate-bounce"]),
    button[class*="rounded-full"]:not(.w-8):not(.w-9):not(.w-10):not(.w-12) {
        border-radius: 0px !important;
    }
}

/* =========================================================================
   17. CHUẨN HÓA BOX NỀN TRẮNG & LINE MẢNH HOÀNG GIA (LAP_LA_SO, TUONG_HOP, PHONG_THUY_SO)
   Áp dụng đồng bộ Desktop & Mobile: Nền trắng tinh khiết (#FFFFFF), viền 1px (#EAE2D5),
   góc phẳng dứt khoát (0px), độ tương phản cao, chữ rõ ràng sắc nét như lap_la_so.
   ========================================================================= */
#bao-cao-tuong-hop .master-card,
#bao-cao-tuong-hop .bg-white\/98,
#bao-cao-so-dep .master-card,
#bao-cao-so-dep .bg-white\/98,
#form-so-dep,
#phong-thuy-form,
#bao-cao-tuong-hop > div,
#bao-cao-so-dep > div {
    background-color: #FFFFFF !important;
    border-color: #EAE2D5 !important;
    border-radius: 0px !important;
}

#male-pillars-grid > div:not(.bg-rose-50\/40),
#female-pillars-grid > div:not(.bg-rose-50\/40),
#highlight-boxes-container > div {
    background-color: #FFFFFF !important;
    border: 1px solid #EAE2D5 !important;
    border-radius: 0px !important;
}

/* =========================================================================
   18. KHÓA TRIỆT ĐỂ GÓC PHẲNG (0px) CHO TOÀN BỘ INPUT TRÊN PC & MOBILE
   ========================================================================= */
input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input:not([type="radio"]):not([type="checkbox"]) {
    border-radius: 0px !important;
}

/* Đảm bảo input trong các flex group câu hỏi chuyên gia không có viền lồng */
#box-love-expert-qa input.border-0,
#box-num-expert-qa input.border-0,
#form-love-expert-questions input.border-0,
#form-num-expert-questions input.border-0,
#input-love-q1, #input-love-q2, #input-love-q3,
#input-num-q1, #input-num-q2, #input-num-q3,
input.border-0.bg-transparent {
    border: none !important;
    border-width: 0 !important;
    border-radius: 0px !important;
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* =========================================================================
   19. QUY CHUẨN ĐỒNG BỘ 100% TYPOGRAPHY NỘI DUNG LUẬN GIẢI TOÀN HỆ THỐNG
   Đồng nhất màu sắc (#302822) & Cỡ chữ (PC: 15px / Tiêu đề: 16px, Mobile: 13.5px / Tiêu đề: 14.5px)
   Áp dụng trên cả 4 trang: luan_giai_vip, phong_thuy_so, tuong_hop, lap_la_so
   ========================================================================= */

/* Desktop (PC >= 640px) Tiêu đề mục luận giải */
#vip-consulting-sections h3,
#tuonghop-locked-content h4,
#numerology-locked-content h4,
#sec-free-reading h3,
.reading-topic-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #302822 !important;
    line-height: 1.4 !important;
}

/* Desktop (PC >= 640px) Nội dung các đoạn văn / bullet luận giải */
#vip-consulting-sections .flex.items-start,
#vip-consulting-sections p,
#tuonghop-locked-content p,
#numerology-locked-content p,
#numerology-locked-content div.text-left,
#sec-free-reading p,
#sec-free-reading .free-reading-item,
#free-reading-tamtinh p,
#free-reading-canhbao p,
.reading-content-body {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #302822 !important;
}

/* Chuẩn hóa màu sắc từ khóa bôi đậm trong bài luận giải */
#vip-consulting-sections strong:not([class*="text-"]),
#tuonghop-locked-content strong:not([class*="text-"]),
#numerology-locked-content strong:not([class*="text-"]),
#sec-free-reading strong:not([class*="text-"]) {
    color: #302822 !important;
    font-weight: 700 !important;
}

/* Điều chỉnh chuẩn xác cho Mobile (<640px) */
@media (max-width: 640px) {
    #vip-consulting-sections h3,
    #tuonghop-locked-content h4,
    #numerology-locked-content h4,
    #sec-free-reading h3,
    .reading-topic-title {
        font-size: 14.5px !important;
        line-height: 1.35 !important;
        color: #302822 !important;
    }

    #vip-consulting-sections .flex.items-start,
    #vip-consulting-sections p,
    #tuonghop-locked-content p,
    #numerology-locked-content p,
    #numerology-locked-content div.text-left,
    #sec-free-reading p,
    #sec-free-reading .free-reading-item,
    #free-reading-tamtinh p,
    #free-reading-canhbao p,
    .reading-content-body {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        color: #302822 !important;
    }

    /* Tinh chỉnh dòng Tàng Can trên Mobile (< 640px) chuẩn tỷ lệ gọn gàng, thoáng trên dưới */
    #table-bat-tu-full .battu-tang-can-cell,
    .table-bat-tu-full-wrap .battu-tang-can-cell {
        padding: 6px 2px !important;
        vertical-align: middle !important;
        text-align: center !important;
        overflow: hidden !important;
    }
    #table-bat-tu-full .battu-tang-can-list,
    .table-bat-tu-full-wrap .battu-tang-can-list {
        display: inline-block !important;
        text-align: left !important;
        transform: none !important;
        margin: 0 auto !important;
    }
    #table-bat-tu-full .battu-tang-can-item,
    .table-bat-tu-full-wrap .battu-tang-can-item,
    #table-bat-tu-full .battu-tang-can-item span,
    .table-bat-tu-full-wrap .battu-tang-can-item span {
        font-size: 8.5px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        letter-spacing: -0.015em !important;
        white-space: nowrap !important;
        padding: 1px 0 !important;
    }
}


