/* =============================================================================
   Landing page6 — "Bento": nền sáng, lưới ô bento mô phỏng giao diện thật.
   Mọi class dùng prefix bn- để không đụng login_box.css / DataTables / SweetAlert.
   ============================================================================= */

body.bn {
    --bg: #f5f6fa;
    --surface: #ffffff;
    --surface-2: #f7f8fc;
    --ink: #0b1020;
    --ink-2: #2a3147;
    --muted: #626b82;
    --line: #e5e8f0;
    --line-2: #d5d9e6;
    --brand: #4f46e5;
    --brand-deep: #4338ca;
    --brand-soft: #eef0ff;
    --lime: #c5f04a;
    --lime-soft: #f1fbd6;
    --pink: #ff5c8a;
    --ease: cubic-bezier(.2, .7, .2, 1);

    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.bn *,
body.bn *::before,
body.bn *::after {
    box-sizing: border-box;
}

.bn-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.bn-section {
    padding: 96px 0;
    scroll-margin-top: 90px;
}

.bn-ic {
    width: 18px;
    height: 18px;
    flex: none;
}

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

/* ---------- Nút ---------- */
.bn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}

.bn-btn .bn-ic {
    width: 16px;
    height: 16px;
    transition: transform .2s var(--ease);
}

.bn-btn:hover .bn-ic {
    transform: translateX(3px);
}

.bn-btn-lg {
    height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 16px;
}

.bn-btn-ink {
    background: var(--ink);
    color: #fff;
}

.bn-btn-ink:hover {
    background: #1d2438;
    color: #fff;
}

.bn-btn-ghost {
    color: var(--ink-2);
}

.bn-btn-ghost:hover {
    background: #eceef5;
    color: var(--ink);
}

.bn-btn-brand {
    background: linear-gradient(180deg, #5b54f0, var(--brand-deep));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 26px -12px rgba(79, 70, 229, .75);
}

.bn-btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 18px 32px -14px rgba(79, 70, 229, .85);
}

.bn-btn-line {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.bn-btn-line:hover {
    border-color: var(--line-2);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -16px rgba(16, 24, 40, .35);
}

.bn-btn-lime {
    background: var(--lime);
    color: var(--ink);
}

.bn-btn-lime:hover {
    background: #d4f76b;
    color: var(--ink);
    transform: translateY(-2px);
}

.bn-btn-glass {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .24);
    color: #fff;
}

.bn-btn-glass:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---------- Header nổi ---------- */
.bn-header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0 12px;
    pointer-events: none;
}

.bn-header-in {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 9px 9px 9px 14px;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .25);
    pointer-events: auto;
    transition: background-color .3s, box-shadow .3s;
}

.bn-header.is-scrolled .bn-header-in {
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .3);
}

.bn-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-decoration: none;
}

.bn-brand:hover {
    color: var(--ink);
}

.bn-brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .7);
}

.bn-brand-mark::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--lime);
}

.bn-brand-mark svg {
    width: 18px;
    height: 18px;
}

.bn-brand-name {
    overflow: hidden;
    max-width: 240px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.bn-nav > a {
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.bn-nav > a:hover {
    background: #eceef5;
    color: var(--ink);
}

.bn-nav-cta {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.bn-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}

.bn-toggle .bn-ic {
    width: 20px;
    height: 20px;
}

.bn-ic-close,
.bn-header.is-open .bn-ic-open {
    display: none;
}

.bn-header.is-open .bn-ic-close {
    display: block;
}

/* ---------- Hero ---------- */
.bn-hero {
    position: relative;
    overflow: hidden;
    padding: 156px 0 56px;
    text-align: center;
}

.bn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(60% 70% at 50% 35%, #000 25%, transparent 75%);
    mask-image: radial-gradient(60% 70% at 50% 35%, #000 25%, transparent 75%);
    pointer-events: none;
}

.bn-hero-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    width: 1400px;
    height: 820px;
    transform: translateX(-50%);
    background:
        radial-gradient(28% 40% at 32% 38%, rgba(99, 102, 241, .22), transparent 70%),
        radial-gradient(24% 34% at 70% 30%, rgba(197, 240, 74, .42), transparent 70%),
        radial-gradient(22% 30% at 55% 62%, rgba(255, 92, 138, .14), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.bn-hero-in {
    position: relative;
}

.bn-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.bn-badge-sep {
    width: 1px;
    height: 14px;
    background: var(--line-2);
}

.bn-dot {
    position: relative;
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.bn-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: bn-ping 1.8s var(--ease) infinite;
}

@keyframes bn-ping {
    0% { transform: scale(1); opacity: .6; }
    80%, 100% { transform: scale(2.6); opacity: 0; }
}

.bn-h1 {
    max-width: 1000px;
    margin: 24px auto 0;
    font-weight: 800;
}

.bn-h1-domain {
    display: block;
    margin-bottom: 14px;
    color: var(--brand);
    font-size: 14px;
    letter-spacing: .24em;
}

.bn-h1-main {
    display: block;
    color: var(--ink);
    font-size: clamp(38px, 6.2vw, 78px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

/* Chữ nhấn: nền vạch dạ quang + chữ gradient */
.bn-mark {
    padding: 0 .06em;
    background: linear-gradient(transparent 64%, rgba(197, 240, 74, .9) 64%, rgba(197, 240, 74, .9) 90%, transparent 90%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.bn-mark > span {
    background: linear-gradient(100deg, var(--brand) 10%, #9333ea 55%, #e5367a 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.bn-lead {
    max-width: 660px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.bn-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.bn-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.bn-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.bn-trust .bn-ic {
    width: 16px;
    height: 16px;
    color: #16a34a;
}

/* ---------- Tiêu đề section ---------- */
.bn-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.bn-eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.bn-eyebrow-light {
    background: rgba(255, 255, 255, .12);
    color: #e0e7ff;
}

.bn-h2 {
    margin: 14px 0 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.bn-sub {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

/* ---------- Bento ---------- */
.bn-features {
    padding-top: 8px;
}

.bn-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.bn-cell {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.bn-bento .bn-cell:hover {
    translate: 0 -4px;
    border-color: var(--line-2);
    box-shadow: 0 22px 44px -24px rgba(16, 24, 40, .28);
}

.bn-cell-order {
    display: flex;
    flex-direction: column;
    grid-column: span 4;
    grid-row: span 2;
    background: linear-gradient(180deg, #fff, #fbfbff);
}

.bn-cell-topup,
.bn-cell-support,
.bn-cell-price,
.bn-cell-platforms,
.bn-cell-track {
    grid-column: span 2;
}

.bn-cell-stats {
    grid-column: 1 / -1;
}

.bn-cell-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.bn-cell-title {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.bn-cell-order .bn-cell-title {
    font-size: 23px;
}

.bn-cell > .bn-cell-title {
    margin-top: 16px;
}

.bn-cell-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.bn-chip-ic {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.bn-chip-ic svg {
    width: 22px;
    height: 22px;
}

.bn-chip-brand { background: var(--brand-soft); color: var(--brand); }
.bn-chip-lime { background: var(--lime-soft); color: #4d7c0f; }
.bn-chip-pink { background: #ffe8ef; color: #e11d5f; }
.bn-chip-sky { background: #e0f4fe; color: #0369a1; }
.bn-chip-ink { background: var(--ink); color: #fff; }

/* Mô phỏng form tạo đơn */
.bn-composer {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-2);
}

.bn-composer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bn-ptab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.bn-ptab svg {
    width: 15px;
    height: 15px;
}

.bn-ptab.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.bn-composer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.bn-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.bn-field-wide {
    grid-column: 1 / -1;
}

.bn-field-label {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.bn-field-label b {
    color: var(--ink);
}

.bn-field-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.bn-field-box .bn-ic {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.bn-field-link {
    justify-content: flex-start;
    gap: 0;
    border-color: #c7c9f7;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .1);
    color: var(--brand);
    font-weight: 500;
}

.bn-caret {
    display: inline-block;
    width: 2px;
    height: 18px;
    margin-left: 2px;
    background: var(--brand);
    animation: bn-blink 1s steps(1) infinite;
}

@keyframes bn-blink {
    50% { opacity: 0; }
}

.bn-servers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bn-server {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.bn-server i {
    grid-row: span 2;
    width: 16px;
    height: 16px;
    border: 2px solid var(--line-2);
    border-radius: 50%;
}

.bn-server b {
    overflow: hidden;
    color: var(--ink);
    font-size: 13.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-server small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-server.is-active {
    border-color: var(--brand);
    background: #fafaff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.bn-server.is-active i {
    border: 5px solid var(--brand);
}

.bn-range {
    position: relative;
    height: 8px;
    margin: 10px 0 6px;
    border-radius: 99px;
    background: #e4e6f0;
}

.bn-range-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 62%;
    border-radius: inherit;
    background: linear-gradient(90deg, #818cf8, var(--brand));
}

.bn-range-thumb {
    position: absolute;
    left: 62%;
    top: 50%;
    width: 22px;
    height: 22px;
    border: 4px solid var(--brand);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, .5);
    transform: translate(-50%, -50%);
}

.bn-composer-foot {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.bn-order-status {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.bn-order-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}

.bn-order-top > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-order-state {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.bn-order-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    animation: bn-state-dot 6s infinite;
}

.bn-order-state b {
    font-size: 12px;
    font-weight: 700;
}

.bn-state-run {
    color: #b45309;
    animation: bn-state-run 6s infinite;
}

.bn-state-done {
    position: absolute;
    right: 0;
    color: #15803d;
    opacity: 0;
    animation: bn-state-done 6s infinite;
}

.bn-progress {
    display: block;
    height: 6px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: #eef0f6;
}

.bn-progress > span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #a855f7);
    animation: bn-progress 6s var(--ease) infinite;
}

@keyframes bn-progress {
    0% { width: 4%; }
    68%, 100% { width: 100%; }
}

@keyframes bn-state-run {
    0%, 66% { opacity: 1; }
    70%, 100% { opacity: 0; }
}

@keyframes bn-state-done {
    0%, 66% { opacity: 0; }
    70%, 100% { opacity: 1; }
}

@keyframes bn-state-dot {
    0%, 66% { background: #f59e0b; }
    70%, 100% { background: #22c55e; }
}

.bn-fake-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .9);
}

.bn-fake-btn .bn-ic {
    width: 16px;
    height: 16px;
    transition: transform .2s var(--ease);
}

/* Cả form minh hoạ bấm được (mở form đăng nhập) nên nút "Tạo đơn" phản hồi khi rê chuột */
.bn-composer:hover .bn-fake-btn {
    background: var(--brand-deep);
}

.bn-composer:hover .bn-fake-btn .bn-ic {
    transform: translateX(3px);
}

/* Thông báo nạp tiền */
.bn-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 16px 30px -18px rgba(11, 16, 32, .8);
    animation: bn-toast 5s var(--ease) infinite;
}

.bn-toast-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
}

.bn-toast-ic svg {
    width: 16px;
    height: 16px;
}

.bn-toast b {
    display: block;
    font-size: 13.5px;
}

.bn-toast small {
    display: block;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

@keyframes bn-toast {
    0% { opacity: 0; transform: translateY(14px) scale(.97); }
    10%, 80% { opacity: 1; transform: none; }
    92%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* Chat hỗ trợ */
.bn-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.bn-bubble {
    max-width: 88%;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.45;
}

.bn-bubble-me {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: var(--brand);
    color: #fff;
}

.bn-bubble-them {
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    background: #f1f2f7;
    color: var(--ink-2);
}

.bn-typing {
    display: inline-flex;
    gap: 4px;
    padding: 12px 14px;
}

.bn-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9aa1b5;
    animation: bn-typing 1.2s infinite;
}

.bn-typing i:nth-child(2) { animation-delay: .15s; }
.bn-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes bn-typing {
    0%, 60%, 100% { transform: none; opacity: .5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Biểu đồ giá theo cấp */
.bn-bars {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 138px;
    margin-top: 18px;
}

.bn-bars span {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.bn-bars span::before {
    content: '';
    display: block;
    height: var(--h);
    border-radius: 10px 10px 4px 4px;
    background: #e6e8f3;
    transform-origin: bottom;
}

.bn-bars span.is-best::before {
    background: linear-gradient(180deg, #8b5cf6, var(--brand));
    box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8);
}

.bn-bars i {
    overflow: hidden;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bn-bars span.is-best i {
    color: var(--brand);
    font-weight: 800;
}

.bn-cell-price.is-in .bn-bars span::before {
    animation: bn-grow .9s var(--ease) both;
}

.bn-cell-price.is-in .bn-bars span:nth-child(2)::before { animation-delay: .1s; }
.bn-cell-price.is-in .bn-bars span:nth-child(3)::before { animation-delay: .2s; }
.bn-cell-price.is-in .bn-bars span:nth-child(4)::before { animation-delay: .3s; }

@keyframes bn-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* Lưới nền tảng */
.bn-plat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.bn-plat-grid li {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #f4f5f9;
    background: color-mix(in srgb, var(--c) 9%, #fff);
    color: var(--c);
    transition: transform .2s var(--ease);
}

.bn-plat-grid li:hover {
    transform: scale(1.08) rotate(-4deg);
}

.bn-plat-grid svg {
    width: 21px;
    height: 21px;
}

/* Danh sách đơn */
.bn-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.bn-orders li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
}

.bn-orders svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.bn-orders em {
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 99px;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.bn-orders .is-done { background: #dcfce7; color: #15803d; }
.bn-orders .is-run { background: #e0e7ff; color: var(--brand-deep); }
.bn-orders .is-wait { background: #fef3c7; color: #b45309; }

/* Dải thống kê */
.bn-cell-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 24px;
    padding: 30px 32px;
    border-color: transparent;
    background:
        radial-gradient(40% 120% at 100% 0%, rgba(197, 240, 74, .22), transparent 60%),
        radial-gradient(40% 120% at 0% 100%, rgba(99, 102, 241, .35), transparent 60%),
        var(--ink);
    color: #fff;
}

.bn-stat + .bn-stat {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.bn-stat b {
    display: block;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.bn-stat > span {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Quy trình ---------- */
.bn-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bn-step {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

/* Mũi tên nối giữa các bước */
.bn-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -19px;
    z-index: 2;
    width: 14px;
    height: 14px;
    border-top: 2.5px solid var(--line-2);
    border-right: 2.5px solid var(--line-2);
    transform: translateY(-50%) rotate(45deg);
}

.bn-step-no {
    position: absolute;
    top: 14px;
    right: 22px;
    color: #eceef5;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
}

.bn-step-ic {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
}

.bn-step-ic svg {
    width: 26px;
    height: 26px;
}

.bn-step h3 {
    margin: 22px 0 8px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.bn-step p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.bn-step-tag {
    display: inline-flex;
    margin-top: 18px;
    padding: 5px 11px;
    border-radius: 99px;
    background: var(--lime-soft);
    color: #4d7c0f;
    font-size: 12.5px;
    font-weight: 700;
}

/* ---------- Đăng nhập / đăng ký ---------- */
.bn-auth {
    padding-top: 24px;
}

.bn-auth-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 56px;
    align-items: center;
    overflow: hidden;
    padding: 56px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(50% 60% at 0% 0%, rgba(99, 102, 241, .1), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, rgba(197, 240, 74, .22), transparent 70%),
        var(--surface);
}

.bn-auth-copy .bn-sub {
    max-width: 460px;
}

.bn-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.bn-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-2);
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.45;
}

.bn-checks li > span {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.bn-checks svg {
    width: 14px;
    height: 14px;
}

/* login_box: bỏ ảnh minh hoạ cũ, đổi giao diện card theo mẫu.
   z-index tạo stacking context riêng để icon trong ô nhập (z-index 990) không đè lên header */
.bn-auth-box {
    position: relative;
    z-index: 1;
}

.bn-auth-box .box-cover {
    padding: 0;
    background: none;
}

.bn-auth-box .box-cover .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.bn-auth-box .box-cover .row {
    margin: 0;
}

.bn-auth-box .box-cover .block-left {
    display: none;
}

.bn-auth-box .box-cover .block-right {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}

.bn-auth-box .box-cover .card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(30, 27, 75, .35) !important;
}

.bn-auth-box .box-cover .card-body {
    padding: 30px;
}

.bn-auth-box .box-cover h2 {
    color: var(--ink);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.bn-auth-box .box-cover .img-fluid {
    max-width: 150px;
    max-height: 44px !important;
}

.bn-auth-box .box-cover .m-b-30 {
    margin-bottom: 24px !important;
}

.bn-auth-box .box-cover label {
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
}

.bn-auth-box .box-cover .input-affix .prefix-icon {
    left: 15px;
    color: #98a1b8;
}

.bn-auth-box .box-cover .input-affix .form-control:not(:first-child) {
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.bn-auth-box .box-cover .input-affix .form-control:not(:first-child):focus {
    border-color: var(--brand);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.bn-auth-box .box-cover .btn.btn-primary {
    padding: .85rem 1.5rem;
    border-color: var(--brand);
    border-radius: 12px;
    background: var(--brand);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .9);
}

.bn-auth-box .box-cover .btn.btn-primary:hover {
    border-color: var(--brand-deep);
    background: var(--brand-deep);
}

.bn-auth-box .box-cover .btn.btn-primary.btn-sm {
    padding: .5rem .9rem;
    font-size: 13px;
}

.bn-auth-box .box-cover a {
    color: var(--brand);
    font-weight: 600;
}

.bn-auth-box .box-cover a:hover {
    color: var(--brand-deep);
}

.bn-auth-box .form-group.check-password {
    border-radius: 12px;
}

/* ---------- Bảng giá ---------- */
.bn-price-card {
    overflow-x: auto;
    padding: 20px 28px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.bn-price-card #label_table_prices span {
    color: var(--ink-2);
    font-size: 15px !important;
    font-weight: 600;
}

.bn-price-card #service-category-select,
.bn-price-card .dataTables_length select,
.bn-price-card .dataTables_filter input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.bn-price-card .dataTables_filter input:focus,
.bn-price-card #service-category-select:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.bn-price-card .dataTables_wrapper {
    color: var(--muted);
    font-size: 14px;
}

.bn-price-card #table_prices {
    width: 100% !important;
    margin: 14px 0 !important;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
}

.bn-price-card #table_prices thead th {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background-color: var(--surface-2);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 700;
}

.bn-price-card #table_prices tbody td {
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 14.5px;
}

.bn-price-card #table_prices tbody tr:last-child td {
    border-bottom: 0;
}

.bn-price-card #table_prices tbody tr:hover td {
    background: #fafaff;
}

.bn-price-card #table_prices tbody td:last-child {
    color: var(--brand) !important;
    font-weight: 700 !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bn-price-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    margin-left: 4px;
    padding: 6px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: none !important;
    color: var(--ink-2) !important;
}

.bn-price-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--brand-soft) !important;
    color: var(--brand) !important;
}

.bn-price-card .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.bn-price-card .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--brand) !important;
    color: #fff !important;
}

.bn-price-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.bn-price-card .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: none !important;
    color: var(--muted) !important;
    opacity: .45;
}

/* ---------- Hỏi đáp ---------- */
.bn-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: start;
}

.bn-faq-head {
    position: sticky;
    top: 110px;
}

.bn-faq-head .bn-btn {
    margin-top: 26px;
}

.bn-qa {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}

.bn-qa[open] {
    border-color: #d6d9f6;
    box-shadow: 0 18px 36px -26px rgba(30, 27, 75, .35);
}

.bn-qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    color: var(--ink);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.bn-qa summary::-webkit-details-marker {
    display: none;
}

.bn-qa summary svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--brand);
    transition: transform .25s var(--ease);
}

.bn-qa[open] summary svg {
    transform: rotate(45deg);
}

.bn-qa p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
}

/* ---------- Kêu gọi cuối trang ---------- */
.bn-final {
    padding-top: 24px;
}

.bn-final-card {
    position: relative;
    overflow: hidden;
    padding: 76px 48px;
    border-radius: 32px;
    background:
        radial-gradient(55% 80% at 50% 0%, rgba(197, 240, 74, .28), transparent 62%),
        linear-gradient(135deg, #312e81, var(--brand-deep) 45%, #6d28d9);
    color: #fff;
    text-align: center;
}

.bn-final-shape {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 20%, transparent 75%);
    mask-image: radial-gradient(70% 80% at 50% 50%, #000 20%, transparent 75%);
    pointer-events: none;
}

.bn-final-card > *:not(.bn-final-shape) {
    position: relative;
}

.bn-final-title {
    max-width: 820px;
    margin: 18px auto 0;
    font-size: clamp(30px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.bn-final-title span {
    color: var(--lime);
}

.bn-final-card p {
    max-width: 560px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.6;
}

/* ---------- Footer ---------- */
.bn-footer {
    margin-top: 96px;
    padding: 64px 0 28px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.bn-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr);
    gap: 48px;
}

.bn-footer-about p {
    max-width: 400px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.bn-footer-title {
    margin: 4px 0 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bn-footer-plats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bn-footer-plats li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14.5px;
}

.bn-footer-plats svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--ink-2);
}

.bn-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bn-footer-links li + li {
    margin-top: 11px;
}

.bn-footer-links a {
    color: var(--muted);
    font-size: 14.5px;
    text-decoration: none;
    transition: color .2s;
}

.bn-footer-links a:hover {
    color: var(--brand);
}

.bn-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.bn-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

/* Nút lên đầu trang: góc trái để không đè widget liên hệ bên phải */
.bn-top {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(11, 16, 32, .7);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}

.bn-top.is-show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.bn-top:hover {
    background: var(--brand);
    color: #fff;
}

.bn-top svg {
    width: 20px;
    height: 20px;
}

/* ---------- Hiện dần khi cuộn ---------- */
.js .bn [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease), translate .3s var(--ease), box-shadow .3s, border-color .3s;
}

.js .bn [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .bn-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bn-cell-order {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .bn-cell-topup,
    .bn-cell-support,
    .bn-cell-price,
    .bn-cell-platforms {
        grid-column: span 1;
    }

    .bn-cell-track {
        grid-column: 1 / -1;
    }

    .bn-cell-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bn-cell-stats .bn-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 991px) {
    .bn-toggle {
        display: inline-flex;
    }

    .bn-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 48px -24px rgba(15, 23, 42, .35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }

    .bn-header.is-open .bn-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .bn-nav > a {
        padding: 12px 14px;
        font-size: 15.5px;
    }

    .bn-nav-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin: 8px 0 0;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .bn-nav-cta .bn-btn-ghost {
        border-color: var(--line);
    }

    .bn-auth-grid,
    .bn-faq-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .bn-auth-grid {
        padding: 40px;
    }

    .bn-faq-head {
        position: static;
    }

    .bn-step-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .bn-step:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -22px;
        left: 44px;
        transform: rotate(135deg);
    }

    .bn-footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .bn-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .bn-wrap {
        padding: 0 16px;
    }

    .bn-section {
        padding: 64px 0;
    }

    .bn-header {
        top: 8px;
        padding: 0 8px;
    }

    .bn-brand-name {
        max-width: 180px;
        font-size: 16px;
    }

    .bn-hero {
        padding: 118px 0 36px;
    }

    .bn-h1-domain {
        font-size: 12px;
        letter-spacing: .18em;
    }

    .bn-h1-main {
        font-size: clamp(31px, 9.2vw, 40px);
    }

    .bn-mark {
        white-space: nowrap;
    }

    .bn-lead {
        font-size: 16.5px;
    }

    .bn-hero-cta .bn-btn {
        flex: 1 1 100%;
    }

    .bn-badge {
        font-size: 12.5px;
    }

    .bn-bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .bn-cell-topup,
    .bn-cell-support,
    .bn-cell-price,
    .bn-cell-platforms {
        grid-column: auto;
    }

    .bn-cell {
        padding: 20px;
        border-radius: 22px;
    }

    .bn-composer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bn-servers {
        gap: 8px;
    }

    .bn-server {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px 6px;
        text-align: center;
    }

    .bn-server i {
        display: none;
    }

    .bn-server b {
        font-size: 13px;
    }

    .bn-server small {
        font-size: 11px;
    }

    .bn-composer-foot {
        flex-direction: column;
    }

    .bn-fake-btn {
        justify-content: center;
        height: 44px;
    }

    .bn-cell-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 26px 22px;
    }

    .bn-stat + .bn-stat {
        padding: 18px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
        border-left: 0;
    }

    .bn-cell-stats .bn-btn {
        justify-self: stretch;
    }

    .bn-auth-grid {
        padding: 28px 16px 16px;
        border-radius: 26px;
    }

    .bn-auth-box .box-cover .card-body {
        padding: 22px 18px;
    }

    .bn-price-card {
        padding: 16px;
        border-radius: 20px;
    }

    .bn-final-card {
        padding: 52px 22px;
        border-radius: 26px;
    }

    .bn-final-card .bn-btn {
        flex: 1 1 100%;
    }

    .bn-footer {
        margin-top: 64px;
    }

    .bn-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .bn-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .bn [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bn *,
    .bn *::before,
    .bn *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}
