/*
Template Css: Tích điểm nhận đặc quyền
 */

/* Landing chương trình tích điểm. Port từ mockup Tailwind sang CSS viết tay,
   mọi rule nằm dưới gốc .bk-tich.
   Hai thứ của theme phải đè bằng specificity (thêm !important KHÔNG đủ):
   - assets/css/main.css:2212 `.page-template table thead tr:nth-child(1) th` (0,2,4)
     -> bảng so sánh đi đủ 3 class `.bk-tich .bk-tich__sosanh .bk-tich__bang thead th`.
   - Flatsome tô sẵn `button`/`.button` -> reset lại trong scope. */

@font-face {
    src: url("../fonts/Inter/Inter-Regular.ttf");
    font-family: "InterBK";
    font-weight: 400;
    font-display: swap;
}

@font-face {
    src: url("../fonts/Inter/Inter-SemiBold.ttf");
    font-family: "InterBK";
    font-weight: 600;
    font-display: swap;
}

@font-face {
    src: url("../fonts/Inter/Inter-Bold.ttf");
    font-family: "InterBK";
    font-weight: 700;
    font-display: swap;
}

.bk-tich {
    --xanh: #0052cc;
    --xanh-dam: #0747a6;
    --lam: #00b4d8;
    --cam: #ff5722;
    --cam-dam: #e64a19;
    --vang: #f59e0b;
    --xanhla: #10b981;
    --do: #ef4444;
    --navy: #0b132b;
    --navy-nhat: #1c2541;
    --chu: #334155;
    --chu-dam: #0f172a;
    --chu-mo: #64748b;
    --vien: #e8edf4;
    --vien-dam: #d8e0ea;
    --nen-nhat: #f7f9fc;
    --trang: #fff;

    /* Thang bo góc + bóng đổ dùng chung, để mọi thẻ trên trang cùng một chất */
    --r-lon: 22px;
    --r-vua: 16px;
    --r-nho: 12px;
    --bong-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px -2px rgba(15, 23, 42, .08);
    --bong-2: 0 2px 4px rgba(15, 23, 42, .03), 0 14px 32px -18px rgba(15, 23, 42, .3);
    --bong-3: 0 28px 64px -36px rgba(15, 23, 42, .5);

    font-family: "InterBK", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--chu);
    font-size: 15px;
    line-height: 1.65;
    background: var(--trang);
}

.bk-tich * {
    box-sizing: border-box;
}

.bk-tich h1,
.bk-tich h2,
.bk-tich h3,
.bk-tich h4 {
    font-family: inherit;
    color: var(--chu-dam);
    margin: 0;
    letter-spacing: -.018em;
    line-height: 1.25;
}

.bk-tich p {
    margin: 0;
}

/* Flatsome tô sẵn button (nền, viền, uppercase) -> trả về trung tính */
.bk-tich button {
    font-family: inherit;
    border: 0;
    background: none;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    border-radius: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    line-height: inherit;
    cursor: pointer;
}

.bk-tich button:hover,
.bk-tich button:focus {
    box-shadow: none;
}

.bk-tich a:focus-visible,
.bk-tich button:focus-visible,
.bk-tich input:focus-visible {
    outline: 3px solid var(--lam);
    outline-offset: 2px;
}

.bk-tich__icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -.2em;
}

.bk-tich__an {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Khung chung ---------- */

.bk-tich__trong {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.bk-tich__trong--hep {
    max-width: 900px;
}

.bk-tich__khoi {
    position: relative;
    padding: 84px 0;
}

/* Hai khối sáng phân biệt bằng sắc nền, không kẻ vạch 1px — vạch ngang suốt
   chiều rộng làm trang bị chia khúc như bảng tính. */
.bk-tich__khoi--trang { background: var(--trang); }
.bk-tich__khoi--nhat { background: var(--nen-nhat); }
.bk-tich__khoi--toi { background: #0f172a; color: #cbd5e1; }

/* Quầng sáng rất nhạt sau tiêu đề khối, đủ để nền không phẳng lì */
.bk-tich__khoi--nhat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 340px;
    background: radial-gradient(60% 100% at 50% 0, rgba(0, 82, 204, .07), rgba(0, 82, 204, 0) 70%);
    pointer-events: none;
}

.bk-tich__dau {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 52px;
    text-align: center;
}

.bk-tich__nhan {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--xanh);
    background: #eef4fe;
    border: 1px solid #d7e4fa;
    padding: 6px 15px;
    border-radius: 999px;
}

.bk-tich__nhan.la-vang {
    color: #fbbf24;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .35);
}

.bk-tich__nhan.la-xam {
    color: var(--chu-mo);
    background: #f1f5f9;
    border-color: var(--vien);
}

.bk-tich .bk-tich__dau h2 {
    font-size: clamp(25px, 3.6vw, 39px);
    font-weight: 700;
    letter-spacing: -.028em;
    line-height: 1.18;
    margin-top: 16px;
}

.bk-tich__gach {
    display: block;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--xanh), var(--lam));
    margin: 16px auto 18px;
}

.bk-tich__gach.la-vang { background: linear-gradient(90deg, var(--vang), var(--cam)); }

.bk-tich__dau p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #5a6b80;
}

.bk-tich__dau--toi h2 { color: #fff; }
.bk-tich__dau--toi p { color: #94a3b8; }

/* Nút dùng chung */
.bk-tich .bk-tich__nut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--r-vua);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.005em;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bk-tich .bk-tich__nut--cam {
    background: linear-gradient(135deg, #ff6b3d 0%, var(--cam) 55%, #ef4e15 100%);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(255, 87, 34, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.bk-tich .bk-tich__nut--cam:hover {
    background: var(--cam-dam);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(255, 87, 34, .75);
}

.bk-tich .bk-tich__nut--kinh {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
}

.bk-tich .bk-tich__nut--kinh:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.bk-tich .bk-tich__nut--navy {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px -14px rgba(11, 19, 43, .9);
}

.bk-tich .bk-tich__nut--navy:hover {
    background: #1e293b;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- 1. Hero ---------- */

.bk-tich__hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--navy) 0%, #0f172a 52%, #0a1020 100%);
    color: #fff;
    padding: 68px 0 86px;
}

.bk-tich__hero::before,
.bk-tich__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bk-tich__hero::before {
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 760px;
    height: 420px;
    background: rgba(37, 99, 235, .22);
    filter: blur(120px);
}

.bk-tich__hero::after {
    bottom: -80px;
    right: 4%;
    width: 360px;
    height: 360px;
    background: rgba(245, 158, 11, .12);
    filter: blur(100px);
}

.bk-tich__hero .bk-tich__trong {
    position: relative;
    z-index: 1;
}

.bk-tich__pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fcd34d;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .17);
    padding: 8px 18px;
    border-radius: 999px;
   margin-bottom: 26px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.bk-tich__pill .bk-tich__icon {
    width: 15px;
    height: 15px;
    color: var(--vang);
    /* Tô nhạt bên trong cho viên kim cương có khối như bản mockup, nhưng vẫn giữ
       nét viền để đồng bộ với toàn bộ icon còn lại của trang. */
    fill: currentColor;
    fill-opacity: .3;
}

.bk-tich__cham {
    position: relative;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--vang);
}

/* Vòng sáng lan ra rồi tắt — đúng nhịp "animate-ping" của bản mockup. Tắt theo
   prefers-reduced-motion nhờ khối cuối file. */
.bk-tich__cham::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--vang);
    animation: bk-tich-lan 1.9s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes bk-tich-lan {
    0% { transform: scale(1); opacity: .65; }
    75%, 100% { transform: scale(2.6); opacity: 0; }
}

.bk-tich__hero-luoi {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.bk-tich .bk-tich__hero-chu h1 {
    color: #fff;
    font-size: clamp(31px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -.032em;
    line-height: 1.14;
}

.bk-tich__gradient {
    background: linear-gradient(95deg, #fbbf24 0%, #fb923c 45%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bk-tich__lead {
    margin-top: 26px;
    color: #c5d0de;
    font-size: 15.5px;
    line-height: 1.72;
    max-width: 620px;
}

.bk-tich__lead strong { color: #fff; }

.bk-tich .bk-tich__solieu {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 560px;
}

.bk-tich .bk-tich__solieu li {
    margin: 0;
    padding: 15px 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-vua);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bk-tich .bk-tich__solieu strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.bk-tich .bk-tich__solieu span {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.bk-tich .la-vang { color: var(--vang); }
.bk-tich .la-lam { color: #22d3ee; }
.bk-tich .la-xanhla { color: #34d399; }
.bk-tich .la-do { color: var(--do); }
.bk-tich .la-xanh { color: var(--xanh); }
.bk-tich .la-cam { color: var(--cam); }
.bk-tich .la-xam { color: var(--chu-mo); }

.bk-tich__hero-nut {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.bk-tich__ghichu {
    margin-top: 20px !important;
    font-size: 12.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bk-tich__ghichu .bk-tich__icon { color: #34d399; }

/* Thẻ ảo + tab chọn hạng */
.bk-tich__tab {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    background: rgba(30, 41, 59, .8);
    border: 1px solid #334155;
    padding: 5px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.bk-tich .bk-tich__tab button {
    padding: 9px 4px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    transition: background-color .16s ease, color .16s ease;
}

.bk-tich .bk-tich__tab button:hover { color: #fff; }

.bk-tich .bk-tich__tab button.dang-chon {
    background: var(--xanh);
    color: #fff;
}

.bk-tich__the {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 26px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 26px 50px -24px rgba(2, 6, 23, .95);
    transition: background .4s ease;
}

.bk-tich__the::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 160%;
    background: linear-gradient(104deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}

.bk-tich__the--dong { background: linear-gradient(135deg, #4a2c11 0%, #8c532b 50%, #2e1909 100%); }
.bk-tich__the--bac { background: linear-gradient(135deg, #334155 0%, #64748b 50%, #1e293b 100%); }
.bk-tich__the--vang { background: linear-gradient(135deg, #78350f 0%, #d97706 45%, #b45309 80%, #451a03 100%); }
.bk-tich__the--kimcuong { background: linear-gradient(135deg, #083344 0%, #0891b2 50%, #0e7490 85%, #042f2e 100%); }

.bk-tich__the-dau,
.bk-tich__the-giua,
.bk-tich__the-chan {
    position: relative;
    z-index: 1;
}

.bk-tich__the-dau {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bk-tich__the-nhan {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.bk-tich .bk-tich__the-hang {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-top: 2px;
}

.bk-tich__the-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-tich__the-icon .bk-tich__icon {
    width: 22px;
    height: 22px;
}

.bk-tich__the-giua {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0;
}

.bk-tich__chip {
    width: 46px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fde68a 0%, #d4a418 55%, #92610a 100%);
    border: 1px solid rgba(146, 97, 10, .5);
    position: relative;
}

.bk-tich__chip::before {
    content: "";
    position: absolute;
    inset: 8px 6px;
    border-top: 1px solid rgba(0, 0, 0, .3);
    border-bottom: 1px solid rgba(0, 0, 0, .3);
}

.bk-tich__the-giam {
    text-align: right;
}

.bk-tich__the-giam span {
    display: block;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.bk-tich .bk-tich__the-giam strong {
    font-size: 23px;
    font-weight: 700;
    color: #fcd34d;
}

.bk-tich .bk-tich__the-so {
    position: relative;
    z-index: 1;
    font-size: 15px;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .9);
    font-variant-numeric: tabular-nums;
}

.bk-tich__the-chan {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.bk-tich__the-chan span {
    display: block;
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.bk-tich .bk-tich__the-chan strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.bk-tich__the-chan .canh-phai { text-align: right; }

.bk-tich__the-goiy {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* ---------- 2. Đối tượng & thể lệ ---------- */

.bk-tich__doi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.bk-tich__hop {
    position: relative;
    z-index: 1;
    padding: 30px;
    border-radius: var(--r-lon);
    background: var(--nen-nhat);
    border: 1px solid var(--vien);
    box-shadow: var(--bong-1);
    transition: border-color .18s ease, box-shadow .2s ease, transform .2s ease;
}

.bk-tich__khoi--nhat .bk-tich__hop { background: var(--trang); }

.bk-tich__hop:hover {
    border-color: #c3d8f7;
    box-shadow: var(--bong-2);
    transform: translateY(-2px);
}

.bk-tich__hop-dau {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.bk-tich__hop-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bk-tich__hop-icon .bk-tich__icon { width: 26px; height: 26px; }
.bk-tich__hop-icon.la-xanh { background: #dbeafe; color: var(--xanh); }
.bk-tich__hop-icon.la-cam { background: #ffedd5; color: var(--cam); }

.bk-tich__hop-nhan {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #94a3b8;
}

.bk-tich .bk-tich__hop-dau h3 {
    font-size: 19px;
    font-weight: 700;
}

.bk-tich__dong {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border-radius: var(--r-nho);
    background: var(--trang);
    border: 1px solid var(--vien);
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.62;
}

.bk-tich__khoi--nhat .bk-tich__dong { background: var(--nen-nhat); }

.bk-tich__dong .bk-tich__icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.bk-tich__dong strong { color: var(--chu-dam); }

.bk-tich__luuy {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
}

.bk-tich__luuy .bk-tich__icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: #d97706;
}

.bk-tich .bk-tich__buoc {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: bkbuoc;
}

.bk-tich .bk-tich__buoc li {
    counter-increment: bkbuoc;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border-radius: var(--r-nho);
    background: var(--trang);
    border: 1px solid var(--vien);
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.62;
}

.bk-tich .bk-tich__buoc li::before {
    content: counter(bkbuoc);
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #eaf1fd;
    color: var(--xanh);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.bk-tich .bk-tich__buoc strong { color: var(--chu-dam); }

/* ---------- 3. Bốn hạng ---------- */

.bk-tich__hangluoi {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.bk-tich__hangthe {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: var(--r-lon);
    background: linear-gradient(165deg, #223047 0%, #18233a 55%, #131c30 100%);
    border: 1px solid #3c4a63;
    color: #cbd5e1;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.bk-tich__hangthe:hover {
    transform: translateY(-4px);
    border-color: #5b6c88;
    box-shadow: 0 30px 56px -34px rgba(0, 0, 0, .95);
}

.bk-tich__hangthe--dong { border-color: rgba(120, 53, 15, .8); }
.bk-tich__hangthe--bac { border-color: #64748b; }

.bk-tich__hangthe--vang {
    border: 2px solid var(--vang);
    box-shadow: 0 0 36px -6px rgba(245, 158, 11, .35);
}

.bk-tich__hangthe--kimcuong {
    border: 2px solid #22d3ee;
    box-shadow: 0 0 40px -6px rgba(0, 180, 216, .42);
}

.bk-tich__noibat {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(270deg, var(--vang), var(--cam));
    color: #0b1120;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 13px;
    border-bottom-left-radius: 14px;
    box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .9);
}

.bk-tich__hangthe-dau {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.bk-tich__hangthe-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, .16);
    border: 1px solid rgba(148, 163, 184, .35);
}

.bk-tich__hangthe-icon .bk-tich__icon { width: 22px; height: 22px; }

.bk-tich__hangthe--dong .bk-tich__hangthe-icon { color: #d97706; background: rgba(120, 53, 15, .4); border-color: rgba(180, 83, 9, .5); }
.bk-tich__hangthe--bac .bk-tich__hangthe-icon { color: #e2e8f0; }
.bk-tich__hangthe--vang .bk-tich__hangthe-icon { color: var(--vang); background: rgba(245, 158, 11, .2); border-color: rgba(245, 158, 11, .5); }
.bk-tich__hangthe--kimcuong .bk-tich__hangthe-icon { color: #67e8f9; background: rgba(34, 211, 238, .18); border-color: rgba(34, 211, 238, .5); }

.bk-tich__hangthe-cap {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #94a3b8;
    border: 1px solid #475569;
    border-radius: 999px;
    padding: 4px 10px;
}

.bk-tich .bk-tich__hangthe h3 {
    font-size: 19px;
    font-weight: 700;
    color: #e2e8f0;
}

.bk-tich__hangthe--dong h3 { color: #fcd9a4; }
.bk-tich__hangthe--vang h3 { color: var(--vang); }
.bk-tich__hangthe--kimcuong h3 { color: #67e8f9; }

.bk-tich__hangthe-phu {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.bk-tich__hangthe-moc {
    margin: 18px 0;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(2, 6, 23, .55);
    border: 1px solid rgba(148, 163, 184, .25);
}

.bk-tich__hangthe-moc span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.bk-tich .bk-tich__hangthe-moc strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 2px 0;
    font-variant-numeric: tabular-nums;
}

.bk-tich__hangthe--dong .bk-tich__hangthe-moc strong { color: var(--vang); }
.bk-tich__hangthe--vang .bk-tich__hangthe-moc strong { color: var(--vang); }
.bk-tich__hangthe--kimcuong .bk-tich__hangthe-moc strong { color: #67e8f9; }

.bk-tich .bk-tich__hangthe-loi {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 11px;
}

.bk-tich .bk-tich__hangthe-loi li {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.55;
}

.bk-tich .bk-tich__hangthe-loi .bk-tich__icon {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    color: #94a3b8;
}

.bk-tich__hangthe--dong .bk-tich__hangthe-loi .bk-tich__icon { color: var(--vang); }
.bk-tich__hangthe--vang .bk-tich__hangthe-loi .bk-tich__icon { color: var(--vang); }
.bk-tich__hangthe--kimcuong .bk-tich__hangthe-loi .bk-tich__icon { color: #67e8f9; }

.bk-tich .bk-tich__hangthe-loi strong { color: #f1f5f9; }

.bk-tich .bk-tich__hangthe-nut {
    margin-top: auto;
    width: 100%;
    min-height: 44px;
    border-radius: 13px;
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(148, 163, 184, .16);
    border: 1px solid rgba(148, 163, 184, .35);
    color: #e2e8f0;
    transition: background-color .16s ease;
}

.bk-tich .bk-tich__hangthe-nut:hover { background: rgba(148, 163, 184, .3); }

.bk-tich .bk-tich__hangthe--vang .bk-tich__hangthe-nut {
    background: var(--vang);
    border-color: var(--vang);
    color: #0b1120;
}

.bk-tich .bk-tich__hangthe--vang .bk-tich__hangthe-nut:hover { background: #d97706; }

.bk-tich .bk-tich__hangthe--kimcuong .bk-tich__hangthe-nut {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    border-color: transparent;
    color: #fff;
}

.bk-tich__baoluu {
    margin-top: 40px;
    padding: 20px 22px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(30, 58, 138, .5), #1e293b, rgba(30, 58, 138, .5));
    border: 1px solid rgba(59, 130, 246, .3);
    display: flex;
    align-items: center;
    gap: 18px;
}

.bk-tich__baoluu-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(59, 130, 246, .2);
    color: #67e8f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-tich__baoluu-icon .bk-tich__icon { width: 23px; height: 23px; }

.bk-tich .bk-tich__baoluu h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.bk-tich__baoluu p {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 3px;
}

.bk-tich__baoluu strong { color: #fff; }

.bk-tich .bk-tich__baoluu .bk-tich__nut {
    margin-left: auto;
    flex: 0 0 auto;
    min-height: 44px;
    font-size: 13px;
}

/* ---------- 4. Công cụ tính điểm ---------- */

.bk-tich__tinh {
    position: relative;
    z-index: 1;
    background: var(--trang);
    border: 1px solid var(--vien);
    border-radius: 26px;
    padding: 36px;
    box-shadow: var(--bong-3);
}

.bk-tich__tinh-dau {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bk-tich__tinh-dau label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 700;
    color: var(--chu-dam);
    margin: 0;
}

.bk-tich__tinh-dau .bk-tich__icon { color: var(--xanh); }

.bk-tich__tinh-tien {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--cam);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.bk-tich__dv {
    font-size: 14px;
    font-weight: 600;
    color: var(--chu-mo);
}

.bk-tich input[type="range"] {
    --bk-truot: 15%;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    /* Phần đã kéo tô màu, phần còn lại xám: thanh trơn một màu thì không thấy
       mình đang ở đâu trong khoảng 1 triệu - 200 triệu. JS cập nhật --bk-truot. */
    background: linear-gradient(90deg, #ff8a5c 0%, var(--cam) var(--bk-truot), #e5eaf2 var(--bk-truot), #e5eaf2 100%);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding: 0;
    border: 0;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, .12);
}

.bk-tich input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--cam);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(255, 87, 34, .5);
    cursor: pointer;
}

.bk-tich input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cam);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(255, 87, 34, .5);
    cursor: pointer;
}

.bk-tich__nhanh {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.bk-tich .bk-tich__nhanh button {
    padding: 8px 15px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid transparent;
    color: var(--chu-mo);
    font-size: 12.5px;
    font-weight: 600;
    min-height: 38px;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.bk-tich .bk-tich__nhanh button:hover {
    background: #eef4fe;
    border-color: #cfe0fb;
    color: var(--xanh-dam);
}

.bk-tich__tiendo {
    margin-top: 26px;
    padding: 20px 22px;
    border-radius: var(--r-vua);
    background: linear-gradient(180deg, #f8fafd, #f2f6fc);
    border: 1px solid var(--vien);
}

.bk-tich__tiendo-dau {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--chu-dam);
    margin-bottom: 10px;
}

.bk-tich__tiendo-dau .bk-tich__icon { color: var(--xanh); }
.bk-tich__tiendo-dau strong { color: var(--xanh); text-transform: uppercase; }
.bk-tich__tiendo-dau span:last-child { color: var(--chu-mo); font-weight: 500; font-variant-numeric: tabular-nums; }

.bk-tich__tiendo-ray {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.bk-tich__tiendo-ray span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--xanh), var(--lam));
    transition: width .3s ease;
}

.bk-tich__tiendo-goiy {
    margin-top: 10px;
    font-size: 12px;
    color: var(--chu-mo);
}

.bk-tich__tiendo-goiy strong { color: var(--chu-dam); }

.bk-tich .bk-tich__ketqua {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bk-tich .bk-tich__ketqua li {
    margin: 0;
    padding: 18px 16px;
    border-radius: var(--r-vua);
    text-align: center;
    border: 1px solid var(--vien);
    box-shadow: var(--bong-1);
}

.bk-tich .bk-tich__ketqua li.la-xanh { background: #eff6ff; border-color: #bfdbfe; }
.bk-tich .bk-tich__ketqua li.la-cam { background: #fff7ed; border-color: #fed7aa; }
.bk-tich .bk-tich__ketqua li.la-xanhla { background: #ecfdf5; border-color: #a7f3d0; }

.bk-tich .bk-tich__ketqua li > span {
    display: block;
    font-size: 11.5px;
    color: var(--chu-mo);
}

/* span bọc con số nằm TRONG strong -- phải giữ inline, không thì
   "30.000" và "điểm" rơi xuống hai dòng và lệch cỡ chữ. */
.bk-tich .bk-tich__ketqua strong span {
    display: inline;
    font-size: inherit;
    color: inherit;
}

.bk-tich .bk-tich__ketqua strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    margin: 5px 0 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.035em;
}

.bk-tich .bk-tich__ketqua li.la-xanh strong { color: var(--xanh); }
.bk-tich .bk-tich__ketqua li.la-cam strong { color: var(--cam); }
.bk-tich .bk-tich__ketqua li.la-xanhla strong { color: #059669; }

.bk-tich__tinh-chan {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.bk-tich__tinh-chan p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--chu-mo);
}

.bk-tich__tinh-chan .bk-tich__icon { color: var(--xanh); }

/* ---------- 5. Bảng so sánh ---------- */

.bk-tich__cuon {
    position: relative;
    z-index: 1;
    overflow: hidden auto;
    overflow-x: auto;
    border: 1px solid var(--vien);
    border-radius: var(--r-lon);
    box-shadow: var(--bong-2);
}

.bk-tich .bk-tich__sosanh .bk-tich__bang {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    margin: 0;
    border: 0 !important;
    background: var(--trang);
    font-size: 14px;
}

.bk-tich .bk-tich__sosanh .bk-tich__bang thead th {
    background: linear-gradient(180deg, #16223a, #0f172a) !important;
    color: #e2e8f0 !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: -.005em;
    text-align: left;
    text-transform: none !important;
    padding: 17px 18px !important;
    border: 0 !important;
    border-right: 1px solid rgba(148, 163, 184, .16) !important;
    white-space: nowrap;
}

.bk-tich .bk-tich__sosanh .bk-tich__bang thead th:last-child { border-right: 0 !important; }

.bk-tich .bk-tich__sosanh .bk-tich__bang thead th.canh-giua { text-align: center; }
.bk-tich .bk-tich__sosanh .bk-tich__bang thead th.la-dong { color: #fcd34d !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang thead th.la-bac { color: #e2e8f0 !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang thead th.la-vang { color: var(--vang) !important; background: #3a2408 !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang thead th.la-kimcuong { color: #67e8f9 !important; background: #06293a !important; }

/* Hai cột nổi bật nhuộm nhạt suốt thân bảng, như mockup */
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td:nth-child(4) { background: #fffbeb !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td:nth-child(5) { background: #ecfeff !important; }

/* Chiết khấu tô theo màu hạng, đừng để 4 cột cùng một màu xanh */
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.la-giam:nth-child(2) { color: #b45309 !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.la-giam:nth-child(3) { color: #334155 !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.la-giam:nth-child(4) { color: #d97706 !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.la-giam:nth-child(5) { color: #0891b2 !important; }

.bk-tich .bk-tich__sosanh .bk-tich__bang tbody tr { background: var(--trang) !important; }
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody tr:hover { background: var(--nen-nhat) !important; }

.bk-tich .bk-tich__sosanh .bk-tich__bang tbody th,
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td {
    padding: 15px 18px !important;
    border: 0 !important;
    border-top: 1px solid var(--vien) !important;
    background: transparent !important;
    color: var(--chu) !important;
    font-size: 14px !important;
    text-transform: none !important;
}

/* Kẻ dọc rất nhạt để mắt lần đúng cột khi bảng rộng */
.bk-tich .bk-tich__sosanh .bk-tich__bang tbody th {
    border-right: 1px solid var(--vien) !important;
}

.bk-tich .bk-tich__sosanh .bk-tich__bang tbody th {
    text-align: left;
    font-weight: 700;
    color: var(--chu-dam) !important;
}

.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.canh-giua {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.la-dam { font-weight: 700; color: var(--chu-dam) !important; }

.bk-tich .bk-tich__sosanh .bk-tich__bang tbody td.la-giam {
    font-size: 17px !important;
    font-weight: 700;
    color: var(--xanh) !important;
}

.bk-tich__bang-phu {
    display: block;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--chu-mo);
    margin-top: 2px;
}

.bk-tich__co { color: #059669; }
.bk-tich__khong { color: #cbd5e1; }

/* ---------- 6. Ba bước ---------- */

.bk-tich .bk-tich__bavuoc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bk-tich .bk-tich__bavuoc li {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 30px;
    background: var(--trang);
    border: 1px solid var(--vien);
    border-radius: var(--r-lon);
    box-shadow: var(--bong-1);
    transition: border-color .18s ease, box-shadow .2s ease, transform .2s ease;
}

.bk-tich .bk-tich__bavuoc li:hover {
    border-color: #c3d8f7;
    box-shadow: var(--bong-2);
    transform: translateY(-3px);
}

.bk-tich__bavuoc-so {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 20px;
}

.bk-tich__bavuoc-so.la-xanh { background: #dbeafe; color: var(--xanh); }
.bk-tich__bavuoc-so.la-cam { background: #ffedd5; color: var(--cam); }
.bk-tich__bavuoc-so.la-xanhla { background: #d1fae5; color: #059669; }

.bk-tich .bk-tich__bavuoc h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bk-tich .bk-tich__bavuoc p {
    font-size: 13.5px;
    color: var(--chu-mo);
}

/* ---------- 7. Quy định ---------- */

.bk-tich .bk-tich__quydinh {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bk-tich .bk-tich__quydinh li {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: var(--r-vua);
    background: var(--nen-nhat);
    border: 1px solid var(--vien);
    font-size: 13.5px;
    line-height: 1.62;
    transition: border-color .18s ease, background-color .18s ease;
}

.bk-tich .bk-tich__quydinh li:hover {
    background: var(--trang);
    border-color: #cfe0fb;
}

.bk-tich .bk-tich__quydinh .bk-tich__icon {
    width: 21px;
    height: 21px;
    margin-top: 2px;
}

.bk-tich .bk-tich__quydinh strong {
    display: block;
    color: var(--chu-dam);
}

/* ---------- 8. FAQ ---------- */

.bk-tich__faq {
    display: grid;
    gap: 13px;
}

.bk-tich__faq-muc {
    position: relative;
    z-index: 1;
    background: var(--trang);
    border: 1px solid var(--vien);
    border-radius: var(--r-vua);
    overflow: hidden;
    box-shadow: var(--bong-1);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bk-tich__faq-muc:hover { border-color: #cfe0fb; }

/* Trạng thái mở do JS gắn class, không dùng :has() -- :has() còn tuỳ phiên bản
   trình duyệt, mà đây là thứ người dùng phải nhìn thấy chứ không phải trang trí. */
.bk-tich__faq-muc.dang-mo {
    border-color: #cfe0fb;
    box-shadow: var(--bong-2);
}

.bk-tich__faq-muc.dang-mo .bk-tich__faq-noidung {
    background: #fbfcfe;
}

.bk-tich .bk-tich__faq-muc h3 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.bk-tich .bk-tich__faq-muc button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--chu-dam);
    min-height: 56px;
}

.bk-tich .bk-tich__faq-muc button .bk-tich__icon {
    width: 19px;
    height: 19px;
    color: #94a3b8;
    transition: transform .2s ease;
}

.bk-tich .bk-tich__faq-muc button[aria-expanded="true"] .bk-tich__icon {
    transform: rotate(180deg);
}

.bk-tich__faq-noidung {
    padding: 16px 20px 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: var(--chu-mo);
}

.bk-tich__faq-noidung strong { color: var(--chu-dam); }

/* ---------- 9. CTA cuối ---------- */

.bk-tich__cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, var(--navy) 0%, #16265c 50%, var(--navy) 100%);
    color: #fff;
    text-align: center;
    padding: 84px 0;
}

.bk-tich__cta::before {
    content: "";
    position: absolute;
    inset: auto 0 -160px 0;
    height: 320px;
    background: radial-gradient(50% 100% at 50% 100%, rgba(0, 180, 216, .22), rgba(0, 180, 216, 0) 70%);
    pointer-events: none;
}

.bk-tich__cta .bk-tich__trong { position: relative; z-index: 1; }

.bk-tich__cta .bk-tich__pill { margin-bottom: 18px; }

.bk-tich .bk-tich__cta h2 {
    color: #fff;
    font-size: clamp(24px, 3.6vw, 36px);
    font-weight: 700;
}

.bk-tich__cta .bk-tich__lead {
    margin: 14px auto 0;
    max-width: 640px;
}

.bk-tich__cta-nut {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}

/* Thông báo khi bấm "mô phỏng" */
.bk-tich__thongbao {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    max-width: 340px;
    background: var(--navy);
    color: #fff;
    font-size: 13.5px;
    padding: 13px 18px;
    border-radius: 16px;
    border: 1px solid #334155;
    box-shadow: 0 20px 40px -18px rgba(2, 6, 23, .8);
}

.bk-tich [hidden] { display: none !important; }

/* ---------- Màn hẹp ---------- */

@media (max-width: 1080px) {
    .bk-tich__hero-luoi {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .bk-tich__hero-the { max-width: 460px; }

    .bk-tich__hangluoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
    .bk-tich__khoi { padding: 60px 0; }
    .bk-tich__cta { padding: 60px 0; }
    .bk-tich__dau { margin-bottom: 38px; }
    .bk-tich__doi { grid-template-columns: minmax(0, 1fr); }
    .bk-tich .bk-tich__bavuoc { grid-template-columns: minmax(0, 1fr); }
    .bk-tich .bk-tich__quydinh { grid-template-columns: minmax(0, 1fr); }
    .bk-tich .bk-tich__ketqua { grid-template-columns: minmax(0, 1fr); }

    .bk-tich__baoluu {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .bk-tich .bk-tich__baoluu .bk-tich__nut {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {

    .bk-tich__pill {
        font-size: 10px;
    }

    .bk-tich { font-size: 14.5px; }
    .bk-tich__khoi { padding: 48px 0; }
    .bk-tich__cta { padding: 52px 0; }
    .bk-tich__hero { padding: 44px 0 56px; }
    .bk-tich__tinh { border-radius: var(--r-lon); }
    .bk-tich__trong { padding: 0 16px; }
    .bk-tich__hangluoi { grid-template-columns: minmax(0, 1fr); }
    .bk-tich__hop { padding: 22px 18px; }
    .bk-tich__tinh { padding: 22px 18px; }

    .bk-tich .bk-tich__solieu {
        grid-template-columns: minmax(0, 1fr);
    }

    .bk-tich .bk-tich__solieu li {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .bk-tich .bk-tich__solieu strong { font-size: 18px; }
    .bk-tich .bk-tich__solieu span { margin-top: 0; }

    .bk-tich__hero-nut .bk-tich__nut,
    .bk-tich__cta-nut .bk-tich__nut { width: 100%; }

    .bk-tich__tab { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .bk-tich__thongbao {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bk-tich *,
    .bk-tich *::before,
    .bk-tich *::after {
        transition: none !important;
        animation: none !important;
    }
}
