/*
 * Giao diện sáng pastel cho trang Bói tình yêu (tinh-duyen) và Bói tên (boi-ten).
 * Nạp SAU CSS gốc (style.v3.css ở xem.tracuuthansohoc.com, search_style_v2.css ở xem.boitinhyeu.com); chép nguyên giữa 2 site.
 * Chỉ đổi cách hiển thị. Muốn quay lại giao diện cũ: bỏ thẻ <link> nạp file này trong header.
 * Phần lớn màu cũ là style viết thẳng trong HTML do PHP sinh (ajax/tsHw_love/*.php), nên phải chọn theo [style*=…] + !important.
 */
:root {
    --tp-ink: #2f2540;      /* chữ chính: tím than */
    --tp-muted: #6b5f7b;
    --tp-rose: #c2255c;     /* điểm nhấn duy nhất; đủ tương phản AA với chữ trắng và trên nền sáng */
    --tp-rose-soft: #ffe3ec;
    --tp-blue: #3f63d1;
    --tp-card: #ffffff;
    --tp-shadow: 0 8px 28px rgba(76, 48, 120, .10);
}

/* Nền: kem → tím nhạt → xanh nhạt, thay ảnh nền nhiều tim hồng */
body {
    background: linear-gradient(165deg, #fff8f3 0%, #fbf2ff 50%, #eef3ff 100%) fixed !important;
    color: var(--tp-ink);
}

/* Tên 2 người: bỏ chữ phát sáng, giữ 2 màu xanh / hồng nhưng đậm đủ tương phản */
#couple_name [style*="text-shadow"], [style*="text-shadow: 0 0 10px #f84594"] { text-shadow: none !important; }
#male-info span, #couple_name .fleft:first-child { color: var(--tp-blue) !important; }
#female-info span { color: var(--tp-rose) !important; }
#couple_name .fleft[style*="width: 60px"] { color: var(--tp-rose) !important; }
#com-title { color: var(--tp-rose) !important; letter-spacing: .06em; }

/* Trái tim chính: bỏ viền neon, giữ hình */
.line-heart { color: #fff !important; text-shadow: 0 0 0 transparent, 0 6px 18px rgba(224, 69, 123, .35) !important; }
.bty-heart [style*="text-shadow"] { text-shadow: none !important; }
/* Trang nhập liệu: tim trắng từng nhờ viền neon mới nổi trên nền — giờ tô hồng nhạt */
.bty-ele-hu.text-white { color: var(--tp-rose-soft) !important; }
.bty-ele-hs-percent, .bty-ele-hs-male, .bty-ele-hs-female, .bty-ele-hs-and { text-shadow: 0 1px 3px rgba(80, 20, 60, .35); }
.bt-ico2:after, .bt-ico2:before, .bt-ico:after, .bt-ico:before { color: var(--tp-rose) !important; }

/* Thay 2 thiên thần bằng 2 trái tim nhỏ mờ, vẫn quay chậm quanh trái tim chính */
.bty-angle-left, .bty-angle-right {
    background: none !important;
    width: 22px !important; height: 22px !important; top: 140px !important;
    opacity: .45;
}
.bty-angle-left { left: 0 !important; }
.bty-angle-right { right: 0 !important; }
.bty-angle-left::before, .bty-angle-right::before {
    content: "\f004"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    font-size: 20px; line-height: 22px; color: #ff8fb1;
}
.bty-angle-right::before { color: #9bb3ff; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
    .bty-angle, .animate__animated, .animate__heartBeatDU, .animate__heartBeatDUView, .animate__heartBeatShow,
    .bt-ico:after, .bt-ico2:before, .bt-ico2:after { animation: none !important; }
}
.bg-nums > div { text-shadow: none !important; }

/* Khung kết luận: thẻ trắng, vạch hồng bên trái, chữ tím than */
.mandalas-wrapper .p-2[style*="ff1177"], .container > .p-2[style*="ff1177"] {
    background: var(--tp-card) !important;
    box-shadow: var(--tp-shadow) !important;
    border-left: 4px solid var(--tp-rose);
    border-radius: 14px !important;
    padding: 14px 16px !important;
    color: var(--tp-ink) !important;
}
.mandalas-wrapper .p-2[style*="ff1177"] div, .container > .p-2[style*="ff1177"] p { color: var(--tp-ink) !important; }
.container > .p-2[style*="ff1177"] .font-italic { color: var(--tp-muted) !important; }

/* Khung luận giải tính cách (nền đen mờ cũ) → thẻ trắng */
.mandalas-wrapper .p-2[style*="background: rgb(0 0 0"], .code-wrapper .p-2[style*="background: rgb(0 0 0"] {
    background: var(--tp-card) !important;
    box-shadow: var(--tp-shadow) !important;
    border-radius: 16px !important;
    padding: 16px !important;
}
.mandalas-wrapper .text-white, .mandalas-wrapper .text-white b,
.code-wrapper .text-white, .code-wrapper .text-white b { color: var(--tp-ink) !important; }
.mandalas-wrapper [style*="f7d51a"] { color: var(--tp-muted) !important; }
.mandalas-wrapper input[value*="?view="] { border: 1px solid #d9cfe6 !important; min-height: 32px; }

/* Thanh % tính cách: 3 màu nền sáng (cam, vàng chanh, vàng) chữ trắng không đọc được → chữ tối */
.gen-2, .gen-3, .gen-9 { color: var(--tp-ink) !important; }

/* Ô hộp chung, nút chính */
.button, .free-report-form .button { background: var(--tp-rose) !important; border-color: var(--tp-rose) !important; border-radius: 999px !important; }
.button:hover { filter: brightness(.95); }
