@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@700;800&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap");

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 300 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2") format("woff2");
    unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 300 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2") format("woff2");
    unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 300 900;
    font-stretch: 100%;
    font-display: swap;
    src: url("https://fonts.gstatic.com/s/roboto/v51/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2") format("woff2");
    unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --gray-900: #101828;
    --gray-800: #1d2939;
    --gray-700: #344054;
    --gray-600: #475467;
    --gray-500: #667085;
    --gray-400: #98a2b3;
    --gray-300: #d0d5dd;
    --gray-200: #eaecf0;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --success: #11875d;
    --danger: #d92d20;
    --warning: #c97a10;
    --status-critical: #FF2A04;
    --status-serious: #FFAF3D;
    --status-caution: #FAD800;
    --status-normal: #00E200;
    --status-standby: #64D9FF;
    --status-off: #7B8089;
    --status-text: #ffffff;
    --status-border: rgba(17, 24, 39, 0.38);
    --shadow-sm: 0 10px 30px rgb(16 24 40 / 6%);
    --shadow-md: 0 18px 40px rgb(16 24 40 / 10%);
    --transition-default: .3s all ease-in-out;
    --primary-color:#2B4BFF;
    --primary-hover:#2038CF;
    --primary-rgb:43,75,255;
    --brand-accent:#2B4BFF;
    --brand-background:#F2F3F5;
    --brand-dark:#141414;
    --brand-light:#E8EDFF;
    --font-theme:"Be Vietnam Pro",Roboto,Arial,sans-serif;
    --gt-blue:#2B4BFF;
    --gt-ink:#141414;
    --gt-mint:#5CF2A6;
    --gt-shadow:3px 3px 0 #141414;
}

[ng-cloak],
[data-ng-cloak],
.ng-cloak {
    display: none !important;
}

.site-ad-popup__image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 4px;
}

.site-ad-popup__image-link {
    display: block;
}

.site-ad-popup__content {
    margin-top: 12px;
}

.site-ad-popup__content:first-child {
    margin-top: 0;
}

.partner-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    align-items: stretch;
}

/* Dải logo - giữ ảnh gốc, mờ hai đầu */
.partner-strip__item { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 8px 12px; color: #252525; text-align: center; }
.partner-strip__item img { width: 140px; height: 48px; object-fit: contain; }
.partner-section::before { content: "Nhà mạng & phương thức thanh toán hỗ trợ"; display: block; text-align: center; color: #756D63; font-size: 14px; font-weight: 500; margin: 12px 0 16px; }
.partner-marquee { overflow: hidden; position: relative; --fade: clamp(28px,8vw,110px); mask-image: linear-gradient(to right,transparent,#000 var(--fade),#000 calc(100% - var(--fade)),transparent); }
.partner-marquee--full { width: 100%; margin-left: 0; }
.partner-marquee__track { display: flex; width: max-content; animation: partner-marquee 80s linear infinite; }
.partner-marquee:hover .partner-marquee__track, .partner-marquee:focus-within .partner-marquee__track { animation-play-state: paused; }
.partner-marquee__group { display: flex; gap: 24px; padding-right: 24px; }
.partner-marquee .partner-strip__item { flex: 0 0 156px; }
@keyframes partner-marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .partner-marquee__group { gap: 20px; padding-right: 20px; } .partner-marquee .partner-strip__item { flex-basis: 126px; } .partner-strip__item img { width: 110px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .partner-marquee { mask-image: none; overflow-x: auto; } .partner-marquee__track { animation: none; } .partner-marquee__group[aria-hidden="true"] { display: none; } }


.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 4px;
    background: #eef6ff;
    color: #0a3d91;
    font-size: 13px;
    font-weight: 700;
}

.article-tag:hover {
    background: #0a3d91;
    color: #fff;
}

.error-page {
    min-height: 52vh;
    display: flex;
    align-items: center;
}

.error-page__panel {
    display: grid;
    grid-template-columns: minmax(140px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    padding: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.error-page__code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef6ff 0%, #ffffff 100%);
    color: var(--primary-color);
    font-size: 72px;
    line-height: 1;
    font-weight: 900;
    border: 1px solid rgb(var(--primary-rgb), .12);
}

.error-page__code--danger {
    background: linear-gradient(135deg, #fff1f0 0%, #ffffff 100%);
    color: var(--danger);
    border-color: rgb(217 45 32 / 14%);
}

.error-page__badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #eef6ff;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
}

.error-page__badge--danger {
    background: #fff1f0;
    color: var(--danger);
}

.error-page__content h1 {
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
}

.error-page__content p {
    max-width: 680px;
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.7;
}

.error-page__request {
    margin-top: 12px;
    color: var(--gray-700) !important;
}

.error-page__request code {
    color: var(--danger);
    word-break: break-all;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.error-page__actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    color: var(--brand-dark);
    font-family: var(--font-theme);
    font-size: 14px;
    overflow-x: hidden;
    background:#F2F3F5;
}

a {
    color: var(--gray-800);
}

a, a:hover, a:focus {
    outline: none;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-default);
}

a:hover, a:focus {
    color: var(--primary-color);
}

button, button:hover, button:focus {
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: var(--transition-default);
}

input, select, textarea {
    transition: var(--transition-default);
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 .2rem rgb(var(--primary-rgb), .12) !important;
    outline: none !important;
    border-color: rgb(var(--primary-rgb), .55) !important;
}

p, ul, pre, blockquote, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 5px;
}

h1, h2, h3, h4 {
    color: var(--gray-900);
}

.section-gap {
    margin: 24px 0;
}

/* Trang chủ/đổi thẻ: giãn cách section rộng để tách khối, tránh dồn sát nhau */
.home-page .section-gap {
    margin: 48px 0;
}

.description {
    margin-bottom: 16px;
}

.description .title,
.title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Tiêu đề section căn giữa: cỡ chữ lớn hơn + gạch chân cam làm điểm nhấn phân cấp */
.description .title.text-center {
    position: relative;
    font-size: 26px;
    margin-bottom: 0;
    padding-bottom: 14px;
}

.description .title.text-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.btn {
    white-space: nowrap;
    border-radius: 10px;
    transition: var(--transition-default);
    font-weight: 600;
}

.btn.btn-small {
    height: 36px;
    min-height: 36px !important;
    line-height: 22px;
    font-size: 12px;
    border-radius: 0;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 10px 20px rgb(var(--primary-rgb), .15);
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-register {
    background-color: #eef2ff;
    color: var(--primary-color);
    border: 1px solid rgb(var(--primary-rgb), .12);
}

.btn-register:hover {
    background-color: #dbe6ff;
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-login:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.form-card,
.history-card,
.summary-card,
.service-card,
.balance-widget,
.rate-section,
.empty-state {
    position: relative;
    background: rgb(255 255 255 / 96%);
    border: 1px solid rgb(208 213 221 / 65%);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.form-card,
.history-card,
.summary-card {
    padding: 24px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 18px;
}

.card-subtitle {
    margin-top: -8px;
    margin-bottom: 20px;
    color: var(--gray-500);
    line-height: 1.7;
}

.form-m1 .form-control,
.form-m1 .form-select,
.form-card .form-control,
.form-card .form-select {
    border-radius: 12px;
    color: var(--gray-900);
    border: 1px solid #d9e2f2;
    background: #fff;
}

.form-m1 .form-control:not(textarea),
.form-m1 .form-select,
.form-card .form-control:not(textarea),
.form-card .form-select {
    height: 44px;
    line-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.form-card .form-label,
.col-form-label {
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-m1 .form-control[readonly],
.form-m1 .form-control:disabled,
.form-card .form-control[readonly],
.form-card .form-control:disabled {
    background-color: #e9ecef;
    color: var(--gray-900);
    opacity: 1;
}

.hero-banner {
    padding: 40px 0 16px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0a3d91 0%, #0e56c6 58%, #f15722 160%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
}

.hero-panel::before {
    width: 260px;
    height: 260px;
    right: -90px;
    top: -120px;
}

.hero-panel::after {
    width: 160px;
    height: 160px;
    right: 120px;
    bottom: -80px;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 12%);
    border: 1px solid rgb(255 255 255 / 12%);
    font-size: 12px;
    font-weight: 700;
}

.hero-title {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    margin: 18px 0 12px;
}

.hero-text {
    max-width: 700px;
    font-size: 15px;
    line-height: 1.8;
    color: rgb(255 255 255 / 88%);
}

.hero-quickstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.hero-quickstats__item {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 12%);
}

.hero-quickstats__label {
    font-size: 12px;
    color: rgb(255 255 255 / 72%);
    text-transform: uppercase;
}

.hero-quickstats__value {
    font-size: 18px;
    font-weight: 800;
    margin-top: 6px;
    color: #fff;
}

.service-grid,
.stats-grid,
.profile-meta {
    display: grid;
    gap: 18px;
}

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

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

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

.service-card {
    padding: 22px;
    height: 100%;
}

.service-card__icon,
.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
}

.service-card__icon--exchange,
.stat-card__icon--exchange {
    background: linear-gradient(135deg, #0a3d91, #1d5fd0);
}

.service-card__icon--buy,
.stat-card__icon--buy {
    background: linear-gradient(135deg, #f15722, #f38b2a);
}

.service-card__icon--game,
.stat-card__icon--game {
    background: linear-gradient(135deg, #067647, #12b76a);
}

.service-card__icon--shield,
.stat-card__icon--shield {
    background: #191611;
}

.service-card__title,
.stat-card__value {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.service-card__text,
.stat-card__label {
    color: var(--gray-500);
    line-height: 1.7;
}

.service-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5f8ff;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 700;
}

.home-page {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

#main .container {
    max-width: 1180px;
}

.header-m1 > .container,
.footer > .container,
.footer-bottom > .container {
    max-width: 1180px;
}

.home-page .section-gap:last-child {
    margin-bottom: 0;
    padding-bottom: 48px;
}

.home-page .section-gap.partner-section {
    margin-top: 8px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.home-page .section-gap.exchange-history-section {
    margin-bottom: 72px;
}

.exchange-history-card {
    border: 0;
}

.exchange-history-filter__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.exchange-filter-item {
    min-width: 0;
}

.exchange-history-filter .form-control,
.exchange-history-filter .btn {
    min-height: 40px;
}

.exchange-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.home-policy {
    max-width: none;
    margin: 0;
    color: #111827;
    line-height: 1.75;
}

.home-exchange-policy {
    margin-top: 18px;
}

/* Thong bao trang chu - noi dung quan ly trong admin */
.home-site-notice {
    margin:16px 0; padding:18px 22px; background:#fff; border:1px solid #141414; border-radius:14px; color:#30343c; font-size:14px; line-height:1.65; overflow-wrap:anywhere;
}

.home-site-notice::before {
    content:"Thông báo"; display:block; font-weight:800; color:#2B4BFF; font-size:16px; padding-bottom:9px; margin-bottom:10px; border-bottom:1px solid #E1E3E8;
}

.home-site-notice .site-notice-html {
    min-width: 0;
}

.home-site-notice .site-notice-html img {
    max-width: 100%;
    height: auto;
}

.home-site-notice .site-notice-html a {
    overflow-wrap: anywhere;
}

.home-policy p {
    margin-bottom: 8px;
    font-size: 15px;
}

.site-notice-html > :last-child {
    margin-bottom: 0;
}

.site-notice-html p,
.site-notice-html ul,
.site-notice-html ol {
    margin-bottom: 6px;
}

.rule-popup-modal .modal-title {
    font-weight: 800;
    color: #111827;
}

.rule-popup-modal .modal-body {
    color: #111827;
    line-height: 1.7;
}

.rule-popup-modal .modal-body p,
.rule-popup-modal .modal-body ul,
.rule-popup-modal .modal-body ol {
    margin-bottom: 10px;
}

.rule-popup-modal .modal-body > :last-child {
    margin-bottom: 0;
}

.home-policy__danger {
    color: #ef4444;
    font-weight: 800;
    font-size: 18px;
}

.row5 {
    margin-top: -5px;
    margin-left: -5px;
    margin-right: -5px;
}

.row5 > [class*=col] {
    padding: 5px;
}

@media screen and (max-width: 575px) {
    .buy-history__header h2 { font-size: 20px; }

    .rowmb3 {
        margin-top: -3px;
        margin-left: -3px;
        margin-right: -3px;
    }

    .rowmb3 > [class*=col] {
        padding: 3px;
    }
}

.tabs-m1 {
    position: relative;
}

.tabs-m1 .nav-tabs {
    width: 100%;
    position: relative;
    justify-content: center;
    gap: 6px;
    border-bottom: 0 !important;
    padding-bottom: 5px;
}

.tabs-m1 .nav-tabs .nav-item {
    position: relative;
    margin: 0 !important;
}

.tabs-m1 .nav-tabs .nav-link {
    width: 100%;
    margin-bottom: 0;
    padding: 10px 20px;
    border: 0 !important;
    border-radius: 3px !important;
    background: #ececec !important;
    color: #111827 !important;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
    transition: .2s all ease;
}

.tabs-m1 .nav-tabs .nav-link.active {
    color: #fff !important;
    background: #000099 !important;
}

.home-tabs .nav-tabs,
.home-rate-tabs .nav-tabs {
    justify-content: center;
    gap: 6px;
}

.home-exchange-form {
    max-width: 1180px;
    margin: 0 auto;
}

.home-exchange-form,
.home-multi-box,
.home-rate-tabs,
.home-brand-card,
.home-topup-card,
.home-article-card {
    box-shadow: none;
}

.home-exchange-form,
.home-multi-box {
    border: 0;
    background: transparent;
    padding: 0;
}

.home-exchange-form .form-control,
.home-exchange-form .form-select,
.home-multi-box textarea {
    border-radius: 8px;
    height: 46px;
    border-color: #DDE0E6;
}

.home-exchange-form .btn-small {
    border-radius: 8px;
    height: auto;
    min-height: 44px;
}

.home-multi-box textarea {
    height: auto;
}

.home-batch-entry > [class*=col] {
    display: flex;
    flex-direction: column;
}

.home-batch-entry .row-item {
    width: 100%;
}

.home-exchange-form .home-batch-textarea {
    flex: none;
    height: 100px !important;
    min-height: 100px;
    line-height: 1.45;
    padding-top: 7px;
    padding-bottom: 7px;
}

.home-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    pointer-events: none;
}

.home-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
    border-radius: 4px;
    min-height: 40px !important;
    height: 40px;
}

/* Form đổi thẻ: giữ nguyên trường và trạng thái hệ thống */
.home-tabs:has(> #excExchangeTabs) { position:relative; max-width:1180px; margin-inline:auto; padding:0 16px 16px; background:#fff; border:1px solid #141414; border-radius:15px; box-shadow:5px 5px #2B4BFF; min-width:0; }
#excExchangeTabs { position:static; width:auto; margin:0 -16px 14px !important; padding:12px 16px; background:#2B4BFF; border:0; border-radius:14px 14px 0 0; justify-content:flex-start !important; }
#excExchangeTabs #exc-single-tab { background:transparent !important; border:0 !important; color:white !important; font:800 20px/1.3 Archivo,var(--font-theme); padding:0; text-align:left; }
#exc-single-exchange .home-exchange-form { background:transparent; border:0; padding:0; box-shadow:none; }
#excSingleRows .row-item { display:flex; flex-wrap:wrap; }
#excSingleRows .row-item > [class*=col]:is(:has(.home-telco),:has(.home-amount),:has(input[name="code"]),:has(input[name="serial"])) { flex:0 0 50%; width:50%; max-width:50%; min-width:0; padding-block:5px; }
#excSingleRows .row-item > [class*=col]:has(.home-telco) { order:0; flex:0 0 100%; width:100%; max-width:100%; }
#excSingleRows .row-item > [class*=col]:has(.home-amount) { order:1; flex:0 0 100%; width:100%; max-width:100%; }
#excSingleRows .row-item > [class*=col]:has(input[name="code"]) { order:2; }
#excSingleRows .row-item > [class*=col]:has(input[name="serial"]) { order:3; }
#excSingleRows .row-item > [class*=col]:has(.home-telco)::before { content:"Loại thẻ"; }
#excSingleRows .row-item > [class*=col]:has(.home-amount)::before { content:"Mệnh giá"; }
#excSingleRows .row-item > [class*=col]:has(input[name="code"])::before { content:"Mã thẻ"; }
#excSingleRows .row-item > [class*=col]:has(input[name="serial"])::before { content:"Số serial"; }
#excSingleRows .row-item > [class*=col]::before { display:block; margin-bottom:6px; font-size:14px; font-weight:700; }
#excSingleRows .form-control, #excSingleRows .form-select { height:44px; min-height:44px; border:1px solid #141414; border-radius:9px; background-color:white; color:#141414; font-size:14px; }
#excSingleRows input[name="code"], #excSingleRows input[name="serial"] { padding-right:32px; }
#excSingleRows .form-control:focus, #excSingleRows .form-select:focus { border-color:#2B4BFF; box-shadow:0 0 0 3px #2b4bff22; }
#excSingleRows select.gt8-enhanced { position:absolute; width:1px; height:1px; min-height:0; padding:0; opacity:0; pointer-events:none; }
.gt8-telcos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.gt8-telcos button { min-width:0; min-height:38px; padding:5px 2px; border:1px solid #141414; border-radius:8px; background:white; color:#141414; font:700 12px/1.25 var(--font-theme); overflow-wrap:anywhere; cursor:pointer; }
.gt8-telcos button[aria-pressed="true"] { background:#2B4BFF; color:white; }
.gt8-telcos button:disabled { opacity:.45; cursor:not-allowed; }
.gt8-telcos button:focus-visible { outline:2px solid #2B4BFF; outline-offset:2px; }
#excSingleForm .form-check { border-top:1px dashed #777; padding-top:14px; margin-top:12px; }
#excSingleForm .form-check-input:checked { background-color:#2B4BFF; border-color:#2B4BFF; }
.home-rule-link, #excSingleForm a { color:#141414 !important; }
.home-exchange-form .home-submit-btn { min-height:46px; width:55%; min-width:150px; max-width:100%; display:block; margin-inline:auto; border-radius:9px; font-size:16px; font-weight:700; background:#55EDA0 !important; border:1px solid #141414 !important; color:#141414 !important; box-shadow:2px 2px #141414; }
.home-exchange-form .home-submit-btn:hover:not(:disabled):not(.disabled) { background:#36D98A !important; }
.home-exchange-form .home-submit-btn:disabled, .home-exchange-form .home-submit-btn.disabled { background:#E5E7EB !important; border-color:#B5B8C0 !important; color:#626873 !important; cursor:not-allowed; opacity:1; box-shadow:none; }
@media(max-width:360px) { .gt8-telcos { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.home-telco-status {
    max-width: 720px;
    margin: 0 auto;
}

.home-telco-status__table td,
.home-telco-status__table th {
    font-size: 14px;
    vertical-align: middle;
}

.home-telco-status__logo {
    height: 34px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.home-telco-status__badge {
    font-size: 13px;
    padding: 6px 12px;
}

.home-page .fee-rate-block { clear:both; }
.home-page .fee-rate-block .section-gap,
.home-page .fee-rate-block .section-gap:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.fee-rate-block .table-module {
    margin-bottom: 0;
}

.fee-group-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #212529;
    font-size: 15px;
}

.fee-group-note__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2f6fed;
    color: #fff;
    font-size: 12px;
}

.fee-lookup-guide {
    padding: 16px 20px;
    border-radius: 10px;
    background: #eaf2ff;
    color: #084298;
    font-size: 15px;
}

.fee-lookup-guide__title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 8px;
}

.fee-lookup-guide ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fee-lookup-guide li {
    padding: 2px 0;
}

.fee-lookup-guide li::before {
    content: "–";
    margin-right: 8px;
}

.fee-login-note {
    margin: 4px auto 0;
    padding: 6px;
    color: #514B43;
    font-size: 14px;
    text-align: center;
}
.home-rate-tabs > .tab-content.fee-guest-panel {
    position: relative;
}
 .home-rate-tabs .fee-login-note.fee-guest-overlay { position:absolute; inset:0; z-index:2; display:grid; place-items:center; margin:0; padding:12px; background:rgba(242,243,245,.78); color:#141414; text-align:center; }
.gt6-lock { display:flex; flex-direction:column; align-items:center; gap:12px; padding:20px; max-width:290px; background:white; border:1px solid #141414; border-radius:16px; box-shadow:4px 4px #141414; }
.home-rate-tabs > .tab-content.fee-guest-panel { min-height:220px; }
.fee-guest-login { color:#fff; background:#141414; border-radius:999px; padding:8px 18px; font-weight:700; }

.home-brand-card,
.home-topup-card {
    border: 0;
    background: transparent;
    text-align: center;
}

.home-brand-card .card-image,
.home-topup-card .card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    min-height: 124px;
    padding: 12px;
    border:1px solid #141414;
    box-shadow:var(--gt-shadow);
}

.home-brand-card .card-image {
    min-height:100px; border-radius:12px; box-shadow:2px 3px #141414; transition:background .2s;
}

.home-brand-card .card-image img {
    max-height:52px; max-width:100%; width:auto; object-fit:contain;
}

.home-brand-card .card-title,
.home-topup-card .card-title {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.home-topup-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.home-topup-card .card-image {
    min-height: 112px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

@media screen and (min-width: 1200px) {
    .home-topup-grid > .col {
        flex: 0 0 auto;
        width: 12.5%;
    }
}

.home-article-card {
    background: transparent;
    border: 0;
    padding: 0;
}

.home-article-card .article-item_header {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.home-article-card .article-item_header img {
    width: 100%;
    display: block;
}

.home-article-card .article-item_body a {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.5;
}

/* Tin tức trang chủ - lưới editorial gọn */
.home-page .section-gap:has(.home-news-featured) { position: relative; }
.home-page .section-gap:has(.home-news-featured) > .description { padding-right: 110px; }
.home-page .section-gap:has(.home-news-featured) > .description .title { text-align: left !important; color: #17130F; font-family: var(--font-theme); font-weight: 900; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing:-.035em; }
.home-page .section-gap:has(.home-news-featured) > .description .title::after { display: none; }
.home-page .section-gap:has(.home-news-featured) > .row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; align-items: stretch; }
.home-page .section-gap:has(.home-news-featured) > .row > div { width: auto; max-width: none; padding: 0; margin: 0; min-width: 0; }
.home-news-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "image" "body" "meta";
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    transition: border-color .22s ease;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
}
/* Metadata nằm trong liên kết ảnh ở HTML gốc. */
.home-news-featured__media { display: contents; }
.home-news-featured__media img {
    grid-area: image;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    height: auto;
    transition: filter .22s ease;
    background:#E8EDFF; border:1px solid #141414; border-radius:12px;
}
.home-news-featured__body { grid-area: body; padding: 12px 0 6px; min-width: 0; }
.home-news-featured__body a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #17130F; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.home-news-featured__body a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.home-news-featured__summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 5px; color: #514B43; font-size: 13px; line-height: 1.45; }
.home-news-featured__meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; padding: 0 12px 10px; color: #756D63; font-size: 12px; min-width: 0; }
.home-news-featured__meta span { display: inline-flex; align-items: center; gap: 3px; width: auto; margin: 0; white-space: nowrap; }
.home-news-featured__meta .fa-calendar-alt { display: none; }
.home-page .section-gap:has(.home-news-featured) > div:has(> .home-news-more) { position: absolute; right: 0; top: 0; margin: 0 !important; }
.home-news-more { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px; color: var(--gt-blue); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.home-news-more::after { content: " →"; }
.home-news-more:hover { color: #8C360D; }
@media (max-width: 767px) {
    .home-page .section-gap:has(.home-news-featured) > .row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .home-page .section-gap:has(.home-news-featured) > .description { padding-right: 90px; }
    .home-news-featured__body { padding: 8px 8px 5px; }
    .home-news-featured__body a { font-size: 14px; line-height: 1.4; }
    .home-news-featured__summary { font-size: 12px; line-height: 1.4; }
    .home-news-featured__meta { padding: 0 8px 8px; font-size: 11px; gap: 3px 6px; }
}
@media (hover: hover) and (pointer: fine) {
    .home-news-featured:hover { border-color: var(--gt-blue); }
    .home-news-featured:hover .home-news-featured__media img { filter: brightness(1.04); }
    .home-news-featured:hover .home-news-featured__body a { color: var(--gt-blue); }
}
.home-news-featured:focus-within { outline: 2px solid #946000; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .home-news-featured, .home-news-featured__media img { transition: none; }
}
.news-page {
    margin-top: 26px;
    margin-bottom: 48px;
}

.news-page .container {
    max-width: 1180px;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 13px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

.news-breadcrumb a {
    color: #667085;
}

.news-breadcrumb a:hover {
    color: #0d6efd;
}

.news-heading {
    margin-bottom: 22px;
}

.news-heading h1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    margin: 0;
    padding-bottom: 10px;
    color: #111827;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.news-heading h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: #0d6efd;
}

.news-heading i {
    color: #0d6efd;
    font-size: 18px;
}

.news-intro {
    margin-bottom: 22px;
    color: #7b8794;
    font-size: 14px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 28px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgb(16 24 40 / 8%);
}

.news-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.news-card:hover .news-card__image img {
    transform: scale(1.03);
}

.news-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 17px 14px;
}

.news-card__body h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.news-card__body h2 a {
    color: #364152;
}

.news-card__body h2 a:hover {
    color: #0d6efd;
}

.news-card__body p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #7b8794;
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    color: #6b7280;
    font-size: 12px;
}

.news-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.news-card__meta i {
    color: #6b7280;
    font-size: 12px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 34px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #dee2e6;
    border-left: 0;
    background: #fff;
    color: #0d6efd;
    font-size: 14px;
    font-weight: 500;
}

.news-pagination a:first-child,
.news-pagination span:first-child {
    border-left: 1px solid #dee2e6;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.news-pagination a:last-child,
.news-pagination span:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.news-pagination a:hover,
.news-pagination .is-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.news-pagination .is-disabled {
    color: #adb5bd;
    pointer-events: none;
}

.news-empty {
    grid-column: 1 / -1;
}

.news-detail-page {
    margin: 24px 0 54px;
}

.news-detail-page .container {
    max-width: 1120px;
}

.news-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e5e7eb;
    color: #475467;
    font-size: 13px;
    line-height: 1.4;
}

.news-detail-breadcrumb a {
    color: #344054;
}

.news-detail-breadcrumb a:hover {
    color: #0d83ff;
}

.news-detail-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgb(16 24 40 / 7%);
}

.news-detail-title {
    margin: 0;
    padding: 19px 22px;
    background: #0d83ff;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.news-detail-body {
    padding: 42px 42px 18px;
}

.news-detail-summary {
    margin: 0 0 12px;
    color: #111827;
    font-size: 14px;
    line-height: 1.75;
}

.news-detail-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 22px;
}

.news-detail-content {
    color: #000;
    font-size: 14px;
    line-height: 1.55;
}

.news-detail-content > * + * {
    margin-top: 8px;
}

.news-detail-content p {
    margin-bottom: 8px;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 10px;
    margin-bottom: 6px;
    color: #000;
    font-weight: 800;
    line-height: 1.25;
}

.news-detail-content h1,
.news-detail-content h2 {
    font-size: 25px;
}

.news-detail-content h3 {
    font-size: 22px;
}

.news-detail-content h4 {
    font-size: 19px;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 8px;
    padding-left: 28px;
}

.news-detail-content li {
    margin-bottom: 7px;
}

.news-detail-content strong,
.news-detail-content b {
    font-weight: 800;
}

.news-latest-box {
    margin: 0 42px 42px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
}

.news-latest-box h2 {
    margin: 0;
    padding: 18px 20px;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.news-latest-list {
    padding: 4px 20px 18px;
}

.news-latest-item {
    display: block;
    padding: 15px 0 13px;
    border-top: 1px solid #dfe4ea;
    color: #344054;
}

.news-latest-item__title {
    display: block;
    margin-bottom: 5px;
    color: #344054;
    line-height: 1.45;
}

.news-latest-item:hover .news-latest-item__title {
    color: #0d83ff;
}

.news-latest-item__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 12px;
}

.news-latest-empty {
    padding: 14px 0 0;
    border-top: 1px solid #dfe4ea;
    color: #667085;
}

.content-html {
    line-height: 1.8;
    color: var(--gray-700);
}

.content-html > * + * {
    margin-top: 14px;
}

.content-html h2,
.content-html h3,
.content-html h4 {
    margin-top: 24px;
    margin-bottom: 10px;
    font-weight: 800;
}

.content-html ul,
.content-html ol {
    padding-left: 22px;
}

.content-html a {
    color: var(--primary-color);
    font-weight: 600;
}

.content-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 12px 30px rgb(16 24 40 / 6%);
}

.content-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef4ff;
}

.content-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.content-card:hover .content-card__thumb img {
    transform: scale(1.04);
}

.content-card__body {
    padding: 18px;
}

.contact-page {
    background: #f4f6f9;
    margin: 0 0 -32px;
    padding: 64px 0 58px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 640px);
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.contact-card {
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 4px;
    box-shadow: 0 12px 26px rgb(16 24 40 / 12%);
}

.contact-info-card {
    min-height: 438px;
    padding: 24px 26px;
}

.contact-intro {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
}

.contact-intro__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #0d83ff;
    font-size: 18px;
}

.contact-intro h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.contact-intro p,
.contact-list__text {
    color: #697586;
    line-height: 1.65;
}

.contact-list__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #e3e8ef;
}

.contact-list__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    font-size: 14px;
}

.contact-list__icon--address {
    color: #0d83ff;
}

.contact-list__icon--phone {
    color: #19a55a;
}

.contact-list__icon--email {
    color: #ffc107;
}

.contact-list__title {
    color: #111827;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-list__link {
    color: #0d83ff;
    font-weight: 500;
}

.contact-social {
    padding-top: 16px;
}

.contact-social__title {
    color: #111827;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-social__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-social__links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 29px;
    padding: 0 10px;
    border: 1px solid #08a9d6;
    border-radius: 2px;
    color: #08a9d6;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
}

.contact-social__links a:hover {
    color: #fff;
    background: #08a9d6;
}

.info-box,
.preview-box,
.profile-meta__item {
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    border: 1px solid #dbe7ff;
    color: var(--gray-700);
}

.info-box ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.info-box li + li {
    margin-top: 8px;
}

.notice-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.notice-strip--warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 20px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table td,
.data-table th {
    padding: .85rem .9rem;
    font-size: 13.5px;
    vertical-align: middle;
}

.data-table thead th {
    white-space: nowrap;
    font-size: 12.5px;
    color: var(--gray-500);
    text-transform: uppercase;
    border-bottom: 1px solid #e6edf7;
    background: #f7faff;
}

.data-table tbody tr:nth-child(even) {
    background-color: #fbfcff;
}

.data-table code {
    color: #b42318;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--status-text);
    border: 1px solid var(--status-border);
}

.badge-pending {
    color: var(--status-text);
    background: var(--status-caution);
}

.badge-success {
    color: var(--status-text);
    background: var(--status-normal);
}

.badge-failed {
    color: var(--status-text);
    background: var(--status-critical);
}

.badge-warning {
    color: var(--status-text);
    background: var(--status-caution);
}

.badge-wrongvalue {
    color: var(--status-text);
    background: var(--status-serious);
}

.data-table .badge.text-bg-success,
.data-table .badge.bg-success {
    background-color: var(--status-normal) !important;
    color: var(--status-text) !important;
    border: 1px solid var(--status-border);
}

.data-table .badge.text-bg-danger,
.data-table .badge.bg-danger {
    background-color: var(--status-critical) !important;
    color: var(--status-text) !important;
    border: 1px solid var(--status-border);
}

.data-table .badge.text-bg-warning,
.data-table .badge.bg-warning {
    background-color: var(--status-caution) !important;
    color: var(--status-text) !important;
    border: 1px solid var(--status-border);
}

.data-table .badge.text-bg-info,
.data-table .badge.bg-info {
    background-color: var(--status-standby) !important;
    color: var(--status-text) !important;
    border: 1px solid var(--status-border);
}

.data-table .badge.text-bg-secondary,
.data-table .badge.bg-secondary {
    background-color: var(--status-off) !important;
    color: var(--status-text) !important;
    border: 1px solid var(--status-border);
}

.empty-state {
    padding: 34px 26px;
    text-align: center;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 36px;
    margin-bottom: 10px;
    display: block;
    color: rgb(var(--primary-rgb), .55);
}

.balance-widget {
    overflow: hidden;
    padding: 24px;
    color: #fff;
    background: radial-gradient(circle at top right, rgb(255 255 255 / 14%), transparent 36%), linear-gradient(135deg, #0a3d91 0%, #0e56c6 55%, #0a7a5c 100%);
}

.balance-widget .label {
    font-size: 13px;
    opacity: .84;
}

.balance-widget .amount {
    font-size: 2rem;
    font-weight: 800;
    margin: 6px 0 10px;
}

.profile-meta__label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.profile-meta__value {
    font-weight: 700;
    color: var(--gray-800);
}

.simple-account-page {
    margin: 0;
    padding: 42px 0 58px;
    background: #fff;
}

.simple-account-page .container {
    max-width: 1180px;
}

.withdraw-title,
.plain-section-heading h1,
.plain-section-heading h2,
.withdraw-history-title {
    margin: 0;
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
}

.withdraw-title {
    margin-bottom: 28px;
    font-size: 26px;
}

.plain-section-heading {
    margin-bottom: 20px;
}

.plain-section-heading h1,
.plain-section-heading h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    font-size: 25px;
}

.plain-section-heading h1::before,
.plain-section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 92px;
    height: 4px;
    border-radius: 999px;
    background: #c7c7c7;
}

.plain-section-heading h1::after,
.plain-section-heading h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: #000099;
}

.plain-section-heading--form {
    margin-top: 28px;
}

.plain-data-table {
    width: 100%;
    border: 1px solid #dee2e6;
    border-collapse: collapse;
    background: #fff;
    color: #1f2937;
}

.plain-data-table th,
.plain-data-table td {
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    font-size: 16px;
    vertical-align: middle;
}

.plain-data-table th {
    color: #111827;
    font-weight: 800;
    background: #fff;
}

.plain-data-table tbody tr:nth-child(odd) td {
    background: #f3f3f3;
}

.plain-empty-row {
    text-align: center;
    color: #6b7280;
}

.plain-bank-form,
.plain-withdraw-form {
    max-width: 560px;
}

.plain-bank-form .form-label,
.plain-withdraw-form .form-label {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.plain-bank-form .form-control,
.plain-bank-form .form-select,
.plain-withdraw-form .form-control,
.plain-withdraw-form .form-select {
    min-height: 48px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #111827;
    font-size: 18px;
    box-shadow: none;
}

.plain-bank-form .form-control::placeholder,
.plain-withdraw-form .form-control::placeholder {
    color: #9ca3af;
}

.plain-primary-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 4px;
    background: #497cf1;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
}

.plain-primary-btn:hover,
.plain-primary-btn:focus {
    background: #3568db;
    color: #fff;
}

.plain-primary-btn:disabled {
    background: #9bb7f5;
    opacity: 1;
    cursor: not-allowed;
}

.withdraw-top-row {
    row-gap: 28px;
}

.withdraw-add-bank {
    color: #cf4545;
}

.withdraw-add-bank:hover {
    color: #b42318;
}

.withdraw-fee-preview {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe5f1;
    border-radius: 4px;
    background: #f8fafc;
    color: #52657a;
    font-size: 15px;
    line-height: 1.35;
}

.withdraw-fee-preview strong {
    color: #1f4f8f;
    font-weight: 700;
}

.withdraw-rule-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 24px;
    color: #111827;
    font-size: 17px;
}

.withdraw-rule-check .form-check-input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 0;
}

.withdraw-rule-check a {
    color: #4d82ff;
}

.withdraw-submit-btn {
    font-size: 22px;
}

.withdraw-limit-box h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.withdraw-limit-table td:nth-child(2) {
    font-weight: 800;
}

.withdraw-fee-table {
    margin-top: 52px;
}

.withdraw-history-title {
    margin: 78px 0 20px;
    font-size: 25px;
}

.withdraw-history-table th,
.withdraw-history-table td {
    font-size: 15px;
}

.account-bank-page .plain-primary-btn {
    max-width: 560px;
}

@media screen and (max-width: 991.98px) {
    .withdraw-limit-box {
        margin-top: 8px;
    }

    .withdraw-fee-table {
        margin-top: 24px;
    }
}

@media screen and (max-width: 575.98px) {
    .simple-account-page {
        margin: 0;
        padding: 24px 0 34px;
    }

    .withdraw-title,
    .plain-section-heading h1,
    .plain-section-heading h2,
    .withdraw-history-title {
        font-size: 22px;
    }

    .plain-data-table th,
    .plain-data-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .plain-bank-form .form-label,
    .plain-withdraw-form .form-label,
    .plain-bank-form .form-control,
    .plain-bank-form .form-select,
    .plain-withdraw-form .form-control,
    .plain-withdraw-form .form-select,
    .withdraw-rule-check {
        font-size: 15px;
    }

    .plain-primary-btn {
        min-height: 50px;
        font-size: 18px;
    }

    .withdraw-history-title {
        margin-top: 42px;
    }
}

.account-profile-page .card {
    border: 1px solid rgb(208 213 221 / 65%);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.account-profile-page .card-header {
    padding: 18px 22px 8px;
}

.account-profile-page .card-body {
    padding: 20px 22px 24px;
}

.account-profile-page .heading-m1 .title {
    font-size: 20px;
    margin-bottom: 0;
}

.account-profile-page .information-list > .row {
    border-bottom: 1px solid #eef2f7;
    color: var(--gray-600);
}

.account-profile-page .information-list > .row:last-child {
    border-bottom: 0;
    margin-bottom: 0 !important;
}

.account-profile-page .information-list b {
    color: var(--gray-900);
    font-weight: 700;
    word-break: break-word;
}

.account-profile-page .card-service {
    margin-bottom: 16px;
}

.account-profile-page .media {
    display: flex;
    align-items: center;
}

.account-profile-page .media-body {
    flex: 1 1 auto;
    min-width: 0;
}

.account-profile-page .media-body p {
    color: var(--gray-500);
}

.account-profile-page .media-body h5 {
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 800;
    word-break: break-word;
}

.btn-theme_primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-theme_primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}

.btn-theme_primary:disabled {
    background-color: #8aa4cf;
    border-color: #8aa4cf;
    color: var(--white);
}

.two-factor-page .card {
    border: 1px solid rgb(208 213 221 / 75%);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.two-factor-page .card-header {
    padding: 16px 22px;
}

.two-factor-page > .container > .row {
    margin-left: 0;
    margin-right: 0;
}

.two-factor-page .qr-box {
    width: 220px;
    max-width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2f2;
    border-radius: 6px;
    padding: 16px;
}

.two-factor-page .qr-box svg {
    display: block;
    width: 100%;
    height: 100%;
}

.two-factor-page .form-control.text-center {
    font-size: 18px;
}

.buy-page {
    padding: 22px 0 36px;
    background: #fff;
}

.buy-page .container {
    max-width: 1180px;
}

.buy-heading {
    margin-bottom: 32px;
    color: #111827;
}

.buy-heading h1 {
    margin: 0 0 14px; font-size: 26px; line-height: 1.25; font-weight: 600;
}

.buy-heading p {
    font-size: 15px; line-height: 1.6;
}

.buy-login-note {
    margin: -14px 0 22px; padding: 12px 14px; border-radius: 6px; background: #F5F6F8; color: #343434;
}

.buy-login-note a {
    color: #191611; font-weight: 500; text-decoration: underline;
}

.buy-workspace {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 35%); gap: 24px; align-items: start;
}

.buy-brand-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px;
}

.buy-brand-tile {
    display: flex; align-items: center; justify-content: center; position: relative; min-height: 64px; padding: 6px; border: 1px solid #DCE0E6; border-radius: 6px; background: #fff; color: #252525; cursor: pointer;
}

.buy-brand-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.buy-brand-tile img {
    width: 85%; height: 46px; max-width: 110px; object-fit: contain;
}

.buy-brand-tile span {
    font-size: 15px; font-weight: 500;
}

.buy-brand-tile:hover { border-color: #191611; }
.buy-brand-tile.is-active, .buy-brand-tile:has(input:checked) { background: #FFF0B9; border-color: #191611; }
.buy-brand-tile.is-active::after, .buy-brand-tile:has(input:checked)::after {
    content: "✓"; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px;
    display: grid; place-items: center; border-radius: 50%; background: #191611; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; pointer-events: none;
}

.buy-value-header {
    margin: 0 0 12px; color: #252525; font-size: 18px; font-weight: 600;
}

.buy-value-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}

.buy-value-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-width: 0; min-height: 42px; padding: 5px 8px;
    border: 1px solid #DCE0E6; border-radius: 6px; background: #fff; color: #252525; text-align: center;
}
.buy-value-tile:hover { border-color: #191611; }
.buy-value-tile:focus-visible, .buy-brand-tile:focus-within { outline: 2px solid #191611; outline-offset: 2px; }
.buy-value-tile.is-selected, .buy-value-tile[aria-pressed="true"] { background: #FFF0B9; border-color: #191611; }
.buy-value-tile.is-selected::after, .buy-value-tile[aria-pressed="true"]::after {
    content: "✓"; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px;
    display: grid; place-items: center; border-radius: 50%; background: #191611; color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.buy-value-tile__stock { display: none; }
.buy-value-tile__name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.buy-value-tile__value { color: #252525; font-size: 18px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.buy-value-tile.is-disabled, .buy-value-tile:disabled, .buy-value-tile[aria-disabled="true"] { cursor: not-allowed; background: #F3F4F6; border-color: #DCE0E6; }
.buy-value-tile.is-disabled .buy-value-tile__stock, .buy-value-tile:disabled .buy-value-tile__stock, .buy-value-tile[aria-disabled="true"] .buy-value-tile__stock { display: block; order: 3; color: #B42318; font-size: 12px; font-weight: 500; }
.buy-value-tile.is-disabled::after, .buy-value-tile:disabled::after, .buy-value-tile[aria-disabled="true"]::after { content: none; }

@media (max-width: 767px) {
    .buy-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .buy-brand-tile { min-height: 68px; padding: 6px; }
    .buy-brand-tile img { max-width: 100px; height: 44px; }
    .buy-value-tile { min-height: 44px; }
    .buy-value-tile__value { font-size: 17px; }
    .buy-value-tile.is-selected, .buy-value-tile[aria-pressed="true"] { padding-top: 14px; }
}
@media (max-width: 420px) {
    .buy-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.buy-cart {
    border: 1px solid #DCE0E6; border-radius: 8px; background: #fff; overflow: hidden;
}

.buy-cart__title {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-bottom: 1px solid #E5E7EB; color: #252525; font-size: 18px; font-weight: 600;
}

.buy-cart__clear {
    width: 30px; height: 30px; border: 1px solid #DCE0E6; border-radius: 6px; background: #fff; color: #343434;
}

.buy-cart__items {
    min-height: 88px; padding: 14px;
}

.buy-cart__empty {
    padding: 22px 8px;
    color: #667085;
    text-align: center;
}

.buy-cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 88px 16px;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
}

.buy-cart-item:first-child {
    padding-top: 0;
}

.buy-cart-item__info {
    min-width: 0;
}

.buy-cart-item__info strong {
    display: block;
    color: #202020;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.buy-cart-item__info span {
    display: block;
    margin-top: 3px;
    color: #475569;
    font-size: 13px;
}

.buy-cart-item__qty {
    display: grid;
    grid-template-columns: 24px 1fr 24px;
    align-items: center;
}

.buy-cart-item__qty button,
.buy-cart-item__qty span {
    height: 28px;
    border: 1px solid #d7dce3;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: 12px;
    line-height: 26px;
}

.buy-cart-item__qty span {
    border-left: 0;
    border-right: 0;
}

.buy-cart-item__price {
    color: #252525; font-weight: 500; text-align: right; font-size: 14px;
}

.buy-cart-item__remove {
    border: 0;
    background: transparent;
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
}

.buy-cart__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-top: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 800;
}

.buy-cart__total strong {
    color: #252525; font-size: 24px; font-weight: 600;
}

.buy-cart__limits {
    padding: 8px 14px 0;
    color: #4b5563;
    line-height: 1.45;
}

.buy-cart__limits + .buy-cart__limits {
    padding-top: 4px;
}

.buy-cart__limits strong {
    color: #344054;
}

.buy-cart__payment {
    padding: 14px 14px 8px;
}

.buy-cart__payment label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
}

.buy-cart__payment .form-select {
    border: 0; background: transparent; background-image: none; padding: 0; color: #343434; font-size: 14px; opacity: 1;
}

.buy-rule-check {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    padding: 8px 14px 0;
    color: #667085;
    font-size: 12px;
}

.buy-rule-check input {
    margin-top: 2px;
}

.buy-rule-check a {
    color: #191611; font-weight: 500; text-decoration: underline;
}

.buy-pay-btn {
    width: calc(100% - 28px); margin: 12px 14px 14px; min-height: 44px; border-radius: 6px; font-size: 15px; font-weight: 600;
}

/* Scoped to purchase button: existing global .btn-primary uses !important. */
.buy-page .buy-pay-btn { background: #FF571F !important; border-color: #FF571F !important; color: #191611 !important; box-shadow: none; }
.buy-page .buy-pay-btn:disabled, .buy-page .buy-pay-btn.disabled, .buy-page .buy-pay-btn[aria-disabled="true"] { background: #F4E9DC !important; border-color: #F4E9DC !important; color: #78634D !important; opacity: 1; }
.buy-history {
    margin: 46px 0 0;
}

.buy-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.buy-history__header h2 {
    margin: 0; color: #252525; font-size: 24px; font-weight: 600;
}

.buy-history__empty {
    padding: 14px 20px; border-radius: 6px; background: #F5F6F8; color: #343434;
}

.buy-history__header a { background: transparent; border: 0; box-shadow: none; color: #191611; font-weight: 500; padding: 0; }

.buy-history-table {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.buy-order-history {
    border-radius: 4px;
}

.buy-history-filter .exchange-history-filter__grid {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.buy-order-list {
    display: grid;
    gap: 14px;
}

.buy-order-list--compact {
    gap: 12px;
}

.buy-order-item {
    border: 1px solid #d7dee8;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.buy-order-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
    background: #f8fafc;
}

.buy-order-item__code {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.buy-order-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 4px;
    color: #667085;
    font-size: 12.5px;
}

.buy-order-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 1px;
    background: #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.buy-order-summary > div {
    padding: 12px 16px;
    background: #fff;
}

.buy-order-summary span {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 12px;
}

.buy-order-summary strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.buy-order-cards {
    padding: 14px 16px 16px;
}

.buy-order-cards__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #111827;
    font-weight: 800;
}

.buy-order-cards__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.buy-order-cards__title small {
    color: #667085;
    font-weight: 600;
}

.buy-order-card-table {
    border: 1px solid #e5e7eb;
}

.buy-copy-cell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 34px;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.buy-copy-cell > span {
    color: #475467;
    font-weight: 700;
    white-space: nowrap;
}

.buy-copy-cell code {
    display: block;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid #e4e7ec;
    border-radius: 4px;
    background: #fff;
    color: #c4457c;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.buy-copy-btn,
.buy-copy-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #0f766e;
    transition: .15s ease;
}

.buy-copy-btn {
    width: 34px;
    height: 34px;
}

.buy-copy-all-btn {
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
}

.buy-copy-btn:hover,
.buy-copy-all-btn:hover {
    border-color: #0f766e;
    background: #e6fffb;
}

.buy-order-cards__empty {
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    color: #667085;
    background: #f8fafc;
}

.buy-order-item__actions {
    padding: 0 16px 16px;
    text-align: right;
}

.buy-card-inline-list {
    display: grid;
    gap: 8px;
}

.buy-card-inline-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1.35fr) minmax(240px, .85fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #f8fafc;
}

.buy-card-inline-item__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 4px;
    background: #eef2f7;
    color: #475467;
    font-weight: 800;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    width: 220px;
    max-width: 100%;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-logo--mobile {
    width: 180px;
}

.header-m1 {
    position: relative;
    z-index: 99;
    background-color: rgb(255 255 255 / 92%);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgb(16 24 40 / 8%);
    border-bottom: 1px solid rgb(208 213 221 / 55%);
}

.header-m1 .container {
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
}

.header-m1 .header-logo {
    /* flex + line-height 0 để khối anchor ôm sát ảnh logo, không dư khe baseline làm logo lệch tâm dọc */
    display: flex;
    align-items: center;
    line-height: 0;
    margin-right: 16px;
}

.header-m1 .header-navigation > ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.header-m1 .header-navigation > ul > li {
    position: relative;
}

.header-m1 .header-navigation > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0 9px;
    position: relative;
    text-transform: none;
    font-weight: 600;
    color: #514B43;
    font-size: 14px;
    height: 42px;
    white-space: nowrap;
}

.header-m1 .header-navigation > ul > li > a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    background: #2B4BFF;
    transition: transform .25s ease;
}

.header-m1 .header-navigation > ul > li:hover > a::before,
.header-m1 .header-navigation > ul > li.is-active > a::before {
    transform: scaleX(1);
}

.header-m1 .header-navigation > ul > li.is-active > a {
    color: var(--primary-color);
}

.header-m1 .header-navigation > ul > li.hasSub > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    min-width: 220px;
    max-width: 280px;
    padding: 8px 0;
    border: 1px solid #e4e7ec;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 16px 34px rgb(16 24 40 / 16%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.header-m1 .header-navigation > ul > li.hasSub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.header-m1 .header-navigation > ul > li.hasSub:hover > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-m1 .header-navigation > ul > li.hasSub > ul > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.header-m1 .header-navigation > ul > li.hasSub > ul > li > a:hover {
    color: var(--primary-color);
    background: #f2f6fc;
}

.header-m1 .header-navigation > ul > li.hasSub > ul > li > a img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 3px;
    object-fit: cover;
}

.header-m1 .header-navigation > ul > li.hasSub > ul > li > a span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-m1 .header-user {
    margin-left: auto;
    padding-left: 12px;
    display: flex;
    align-items: center;
}

.header-m1 .header-user .header-login > ul {
    /* Giữ số dư + tên tài khoản luôn nằm ngang một hàng, không xếp chồng khi menu dài */
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.header-m1 .header-user .header-login > ul > li {
    position: relative;
    font-size: 13px;
    padding: 5px 0;
    color: var(--primary-color);
    white-space: nowrap;
}

.header-m1 .header-user .header-login > ul > li + li {
    margin-left: 8px;
}

.header-balance {
    padding: 9px 8px;
    border-radius: 0;
    color: var(--gray-700);
}

.header-m1 .header-user .header-login > ul > li > a {
    display: block;
    padding: 7px 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 0;
    font-size: 12px;
    white-space: nowrap;
    /* Tên tài khoản dài thì cắt bớt bằng dấu … để header không bị xuống dòng */
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-m1 .header-user .header-login > ul > li > ul {
    position: absolute;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 18px 40px rgb(16 24 40 / 14%);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(18px);
    pointer-events: none;
    border: 1px solid #e7edf6;
    z-index: 100;
    right: 0;
    top: calc(100% + 2px);
    overflow: hidden;
}

.header-m1 .header-user .header-login > ul > li > ul > li > a,
.header-m1 .header-user .header-login > ul > li > ul > li form a {
    color: var(--gray-700);
    display: block;
    padding: 10px 16px;
}

.header-m1 .header-user .header-login > ul > li.hasSub:hover > ul {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.header-m1 .header-user .header-login > ul > li.hasSub::after {
    content: "";
    position: absolute;
    height: 6px;
    min-width: 220px;
    width: 100%;
    bottom: -6px;
    right: 0;
}

.header-m1 .header-user .header-nologin {
    display: flex;
    gap: 8px;
}

.header-m1 .header-hamburger,
.header-m1 .header-usermb {
    display: none;
}

/* Footer - nhận diện, thông tin, bản quyền */
#footer.footer {
    padding: 32px 0 0;
    font-size: 14px;
    margin: 0;
    border: 0;
    background:#141414;
    color:#fff;
    border-top:3px solid #2B4BFF;
}
#footer > .container > .row { display: grid; grid-template-columns: minmax(0,32fr) minmax(0,20fr) minmax(0,22fr) minmax(0,26fr); gap: 24px; margin: 0; }
#footer > .container > .row > div { width: auto; max-width: none; margin: 0 !important; padding: 0; min-width: 0; }
#footer > .container > .row > :first-child { grid-column: auto; padding: 0; border-bottom: 0; position: relative; }
#footer > .container > .row > :first-child::after { content: none; position: absolute; right: 4%; top: 0; width: 24%; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 110' fill='none' stroke='%23191611' stroke-width='1.4'%3E%3Crect x='25' y='20' width='100' height='64' rx='10' transform='rotate(-12 75 52)'/%3E%3Cg transform='rotate(12 95 60)'%3E%3Crect x='45' y='28' width='100' height='64' rx='10' fill='%23164A73'/%3E%3Cpath d='M45 45h100M57 78h32'/%3E%3Crect x='57' y='55' width='18' height='13' rx='3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
#footer .footer-brand {
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    color:#fff;
}
#footer .footer-item_text, #footer p, #footer li, #footer .text-muted {
    line-height: 1.65;
    font-size: 15px;
    color:#E1E3E8 !important;
}
#footer .footer-item_title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
    color:#fff;
}
#footer .footer-item_title::before { content: none; }
#footer li { margin-bottom: 5px; }
#footer a {
    overflow-wrap: anywhere;
    color:#E1E3E8;
}
#footer a:hover {
    text-decoration: underline;
    color:#5CF2A6;
}
#footer i {
    margin-right: 4px;
    color:#5CF2A6;
}
#footer .footer-bottom {
    background: transparent;
    margin-top: 20px;
    padding: 12px 0;
    color:#E1E3E8;
    border-top:1px solid #555;
}
@media (max-width: 767px) {
    #footer > .container > .row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
    #footer > .container > .row > :first-child { grid-column: 1 / -1; padding: 0;
}
    #footer > .container > .row > :first-child::after { display: none;
    content: none;
}
    #footer > .container > .row > :last-child { grid-column: 1 / -1; }
}


.bottom-nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgb(255 255 255 / 96%);
    border-top: 1px solid #E4DED4 !important;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: calc(54px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bottom-nav-mobile__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #756D63 !important;
    font-size: 10px;
    gap: 2px;
    font-weight: 700;
    padding: 3px 0 4px;
    line-height: 1.1;
}

.bottom-nav-mobile__item i {
    font-size: 18px;
    line-height: 1;
}

.bottom-nav-mobile__item span {
    line-height: 1.1;
}

.bottom-nav-mobile__item.is-active {
    color: #191611 !important;
    background: #F4B900 !important;
}

#main.main {
    min-height: calc(100vh - 64px - 280px);
    padding-bottom: 0;
}

.site-entry-popup .modal-dialog {
    max-width: 500px;
    margin-top: 36px;
    margin-bottom: 36px;
}

.site-entry-popup .modal-dialog-centered {
    align-items: flex-start;
    min-height: calc(100% - 72px);
}

.site-entry-popup .modal-content {
    border: 1px solid rgb(16 24 40 / 14%);
    border-radius: 4px;
    box-shadow: 0 22px 70px rgb(16 24 40 / 25%);
    overflow: hidden;
}

.site-entry-popup .modal-header,
.site-entry-popup .modal-footer {
    background: #fff;
}

.site-entry-popup .modal-header {
    align-items: center;
    min-height: 58px;
    padding: 16px 18px;
}

.site-entry-popup .modal-header .btn-close {
    margin-right: 0;
    opacity: .55;
    transform: scale(.92);
}

.site-entry-popup .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: #2b2b2b;
    line-height: 1.25;
}

.site-entry-popup__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    flex: 0 0 22px;
    font-size: 22px;
    line-height: 1;
}

.site-entry-popup .modal-body {
    color: #2f2f2f;
    font-size: 14px;
    line-height: 1.7;
    padding: 16px 18px 18px;
}

.site-entry-popup .modal-body p,
.site-entry-popup .modal-body ul,
.site-entry-popup .modal-body ol {
    margin-bottom: 12px;
}

.site-entry-popup .modal-body h1,
.site-entry-popup .modal-body h2,
.site-entry-popup .modal-body h3 {
    margin: 8px 0;
    font-weight: 800;
    line-height: 1.35;
}

.site-entry-popup .modal-footer {
    min-height: 60px;
    padding: 14px 18px;
}

.site-entry-popup .modal-footer .btn {
    min-width: 72px;
    border-radius: 4px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 700;
}

@media screen and (max-width: 575.98px) {
    .site-entry-popup .modal-dialog {
        max-width: none;
        margin-top: 16px;
        margin-right: 12px;
        margin-bottom: 16px;
        margin-left: 12px;
    }

    .site-entry-popup .modal-dialog-centered {
        min-height: calc(100% - 32px);
    }

    .site-entry-popup .modal-header,
    .site-entry-popup .modal-body,
    .site-entry-popup .modal-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .site-entry-popup .modal-title {
        font-size: 20px;
    }

    .site-entry-popup .modal-body {
        font-size: 14px;
    }
}

@media screen and (min-width: 1025px) {
    .header-m1.header-sort {
        position: sticky;
        top: 0;
    }

    .header-m1 .header-navigation {
        flex: 1 1 auto;
    }

    .header-m1 .header-navigation > ul {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 1024px) {
    .header-m1 {
        /* backdrop-filter biến header thành containing block của các panel position: fixed
           (.header-navigation, .header-usermb_list) nên panel trượt ẩn bên phải bị tính vào
           overflow trang → cuộn ngang; tắt blur ở mobile để panel fixed thật theo viewport */
        backdrop-filter: none;
        background-color: #fff;
    }

    .header-m1.header-sort {
        position: sticky;
        top: 0;
        z-index: 300;
    }

    .header-m1 .container {
        position: relative;
        padding-top: 0;
        padding-bottom: 0;
        flex-wrap: nowrap;
        height: 64px;
    }

    .header-m1 .header-logo {
        position: relative;
        z-index: 1;
        margin-left: clamp(8px, 3vw, 24px);
        margin-right: 12px;
        min-width: 0;
        flex: 0 1 auto;
        order: 2;
    }

    .header-m1 .header-logo .brand-logo {
        width: clamp(132px, 36vw, 180px);
    }

    .header-m1 .header-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        flex: 0 0 44px;
        height: 64px;
        /* icon 22px nằm giữa hộp 44px nên kéo lùi 11px để mép icon thẳng lề trái container, cân với nút user sát lề phải */
        margin-left: -11px;
        cursor: pointer;
        position: relative;
        z-index: 2;
        order: 1;
    }

    .header-m1 .header-hamburger span,
    .header-m1 .header-hamburger::before,
    .header-m1 .header-hamburger::after {
        content: "";
        display: block;
        width: 22px;
        height: 2px;
        background: var(--gray-800);
        border-radius: 2px;
        transition: var(--transition-default);
    }

    .header-m1 .header-hamburger span {
        margin: 4px 0;
    }

    .header-m1.is-navigation .header-hamburger span {
        opacity: 0;
    }

    .header-m1.is-navigation .header-hamburger::before {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .header-m1.is-navigation .header-hamburger::after {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .header-m1 .header-usermb {
        display: flex;
        align-items: center;
        align-self: center;
        order: 4;
        flex: 0 0 auto;
        margin-left: auto;
        height: 64px;
        position: relative;
        z-index: 201;
    }

    .header-m1 .header-usermb .btn {
        background: #fff;
        border: 1px solid #191611;
        color: #191611;
        font-size: 13px;
        padding: 0 10px;
        height: 34px;
        min-height: 34px;
        display: flex;
        align-items: center;
        gap: 5px;
        border-radius: 6px;
        font-weight: 500;
        line-height: 1;
        /* Giới hạn tên tài khoản dài, giữ khoảng cách với logo. */
        max-width: calc(32vw - 22px);
    }

    .header-m1 .header-usermb .btn > i {
        flex: 0 0 auto;
    }

    .header-m1 .header-usermb .btn .header-usermb__name {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-m1 .header-user {
        display: none;
    }

    .header-m1 .header-navigation {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: auto;
        height: calc(100vh - 64px);
        background: #fff;
        z-index: 200;
        overflow-y: auto;
        transform: translateX(-110%);
        transition: transform 0.35s ease;
        box-shadow: 2px 0 12px rgb(0 0 0 / 15%);
        max-width: 300px;
        width: 100%;
    }

    .header-m1.is-navigation .header-navigation {
        transform: translateX(0);
    }

    .header-m1 .header-navigation > ul {
        display: block !important;
        padding: 12px 0;
    }

    .header-m1 .header-navigation > ul > li {
        display: block !important;
    }

    .header-m1 .header-navigation > ul > li > a {
        padding: 14px 20px;
        font-size: 14px;
        border-bottom: 1px solid var(--gray-100);
        height: auto;

    text-transform: none;

    font-weight: 600;

    color: #514B43;
}

    .header-m1 .header-navigation > ul > li.hasSub > ul {
        position: static;
        max-width: none;
        min-width: 0;
        padding: 0 0 8px 18px;
        border: 0;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .header-m1 .header-navigation > ul > li.hasSub > ul > li > a {
        min-height: 34px;
        padding: 8px 20px;
        font-size: 13px;
        white-space: normal;
    }

    .header-m1 .header-usermb .header-usermb_list {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: auto;
        height: calc(100vh - 64px);
        width: 280px;
        background: #fff;
        z-index: 200;
        overflow-y: auto;
        transform: translateX(110%);
        transition: transform 0.35s ease;
        box-shadow: -2px 0 12px rgb(0 0 0 / 15%);
    }

    .header-m1.is-usermb .header-usermb .header-usermb_list {
        transform: translateX(0);
    }

    .header-m1 .header-usermb .header-usermb_list > ul > li {
        display: block !important;
        border-bottom: 1px solid var(--gray-100);
    }

    .header-m1 .header-usermb .header-usermb_list > ul > li.header-usermb_list__title {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 12px 20px;
        color: var(--gray-800);
        font-size: 16px;
        line-height: 1.35;
        white-space: nowrap;
    }

    .header-m1 .header-usermb .header-usermb_list > ul > li.header-usermb_list__title i {
        flex: 0 0 18px;
        width: 18px;
        margin-right: 0 !important;
        text-align: center;
    }

    .header-m1 .header-usermb .header-usermb_list > ul > li > a,
    .header-m1 .header-usermb .header-usermb_list > ul > li form a {
        display: block;
        padding: 12px 20px;
    }

    .header-m1 .header-overlay {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: auto;
        height: calc(100vh - 64px);
        background: rgba(15, 23, 42, .45);
        z-index: 199;
        opacity: 0;
        pointer-events: none;
        transition: opacity .35s ease;
    }

    .header-m1.is-navigation .header-overlay,
    .header-m1.is-usermb .header-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-banner {
        padding-top: 18px;
    }

    .hero-panel,
    .form-card,
    .history-card,
    .summary-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-quickstats,
    .service-grid,
    .stats-grid,
    .profile-meta {
        grid-template-columns: 1fr;
    }

    .section-gap {
        margin: 18px 0;
    }

    .home-page .section-gap {
        margin: 32px 0;
    }

    .description .title.text-center {
        font-size: 22px;
        padding-bottom: 12px;
    }

    .home-page .section-gap:last-child {
        margin-bottom: 0;
        padding-bottom: 32px;
    }

    .home-page .section-gap.partner-section {
        padding-bottom: 10px;
    }

    .news-page {
        margin-top: 18px;
        margin-bottom: 28px;
    }

    .news-heading h1 {
        font-size: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .news-card__body {
        padding: 13px 14px;
    }

    .news-detail-page {
        margin-top: 18px;
        margin-bottom: 34px;
    }

    .news-detail-title {
        padding: 16px;
        font-size: 18px;
    }

    .news-detail-body {
        padding: 24px 18px 14px;
    }

    .news-detail-content h1,
    .news-detail-content h2 {
        font-size: 22px;
    }

    .news-detail-content h3 {
        font-size: 20px;
    }

    .news-detail-content h4 {
        font-size: 18px;
    }

    .news-latest-box {
        margin: 0 18px 24px;
    }

    .news-latest-box h2,
    .news-latest-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .contact-page {
        padding: 24px 0 32px;
        margin-bottom: -18px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-info-card {
        padding: 18px 16px;
        min-height: 0;
    }

    .contact-intro {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .contact-intro__icon {
        width: 38px;
        height: 38px;
    }

    .buy-page {
        padding-top: 16px;
    }

    .buy-heading {
        margin-bottom: 22px;
    }

    .buy-heading h1,
    .buy-history__header h2 {
        font-size: 22px;
    }

    .buy-workspace {
        grid-template-columns: 1fr;
        gap: 22px;
    }


    .buy-cart {
        position: static;
    }

    .buy-history {
        margin-top: 34px;
    }

    .buy-history__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .buy-history-filter .exchange-history-filter__grid,
    .buy-order-summary {
        grid-template-columns: 1fr 1fr;
    }

    .buy-card-inline-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .buy-card-inline-item .buy-copy-cell {
        grid-column: 2;
    }

    /* Khoảng đệm menu dưới được quản lý tại khối MOBILE BOTTOM NAV */
    #main.main {
        padding-bottom: 0;
    }

}

@media screen and (min-width: 992px) {
    .exchange-history-filter__grid {
        grid-template-columns: repeat(7, minmax(96px, 1fr)) auto;
    }

    .exchange-filter-actions {
        justify-content: flex-start;
        white-space: nowrap;
    }
}

@media screen and (max-width: 575px) {
    .error-page {
        min-height: auto;
    }

    .error-page__panel {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 18px;
    }

    .error-page__code {
        min-height: 120px;
        font-size: 54px;
    }

    .error-page__content h1 {
        font-size: 23px;
    }

    .error-page__content p {
        font-size: 14px;
    }

    .error-page__actions {
        flex-direction: column;
    }

    .error-page__actions .btn {
        width: 100%;
    }

    .buy-page {
        padding-top: 10px;
    }

    .buy-page .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .buy-heading {
        margin-bottom: 28px;
    }

    .buy-heading h1 {
        font-size: 25px;
        margin-bottom: 18px;
    }

    .buy-heading p {
        font-size: 14px;
        line-height: 1.6;
    }


    .buy-cart-item {
        grid-template-columns: minmax(0, 1fr) 112px 34px;
        grid-template-areas:
            "info qty remove"
            "price qty remove";
        gap: 8px 10px;
        align-items: center;
        padding: 16px 0;
    }

    .buy-cart-item__info {
        grid-area: info;
    }

    .buy-cart-item__price {
        grid-area: price;
        text-align: left;
    }

    .buy-cart-item__qty {
        grid-area: qty;
        grid-template-columns: 32px 1fr 32px;
    }

    .buy-cart-item__qty button,
    .buy-cart-item__qty span {
        height: 34px;
        font-size: 15px;
        line-height: 32px;
    }

    .buy-cart-item__remove {
        grid-area: remove;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid #f3c2c2;
        border-radius: 4px;
        background: #fff7f7;
        color: #dc2626;
        font-size: 0;
        line-height: 1;
    }

    .buy-cart-item__remove::before {
        content: "×";
        font-size: 22px;
        font-weight: 800;
        line-height: 1;
    }

    .buy-order-item__top {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px;
    }

    .buy-order-summary {
        grid-template-columns: 1fr;
    }

    .buy-order-summary > div,
    .buy-order-cards {
        padding: 12px;
    }

    .buy-order-cards__title {
        align-items: flex-start;
        flex-direction: column;
    }

    .buy-order-cards__actions {
        justify-content: flex-start;
    }

    .buy-copy-cell {
        grid-template-columns: 44px minmax(0, 1fr) 34px;
        align-items: start;
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card__body h2 {
        font-size: 15px;
    }

    .news-pagination {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 380px) {


}

/* ===== Box giới thiệu trang chủ (3 bước, vì sao, đánh giá, FAQ) ===== */
/* 3 bước — bố cục mở theo mẫu Desktop */
.home-page .section-gap:has(> .home-steps) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 32px 32px;
    border-radius: 12px;
    background:#2B4BFF;
    border-block:1px solid #141414;
    border:1px solid #141414;
    box-shadow:var(--gt-shadow);
}
.home-page .section-gap:has(> .home-steps) > .description {
    margin: 0;
}
.home-page .section-gap:has(> .home-steps) .description .title.text-center {
    font-family: var(--font-theme);
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
    color:#fff !important;
}
.home-page .section-gap:has(> .home-steps) .title.text-center::after {
    display: none;
}
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.home-step {
    position: relative;
    min-width: 0;
    padding: 0;
    text-align: left;
}
.home-step::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 56px;
    right: -12px;
    border-top: 2px dashed #C7BDA8;
}
.home-step:last-child::after {
    display: none;
}
.home-step__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    background: transparent;
    font-size: 0;
}
.home-step__icon > :not(.home-step__badge) {
    display: none;
}
.home-step__icon::before, .home-step__icon::after {
    display: none;
}
.home-step__badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: var(--font-theme);
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    background:transparent;
    color:white;
    border:0;
}
.home-step__title {
    margin-bottom: 6px;
    font-family: var(--font-theme);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color:#fff;
}
.home-step__desc {
    font-family: var(--font-theme);
    font-size: 15px;
    line-height: 1.6;
    color:#fff;
}

/* Khối lợi ích: nền trung tính, màu nhấn ở icon */
.home-page .section-gap:has(> .home-why-grid) {
    padding: clamp(20px, 3vw, 36px);
    background:#E8EDFF;
    border:1px solid #141414;
    border-radius:12px;
    box-shadow:var(--gt-shadow);
}
.home-page .section-gap:has(> .home-why-grid) .description .title {
    color: #191611 !important;
    border-left-color: #FF571F;
    border-left: 0;
}
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.home-why-grid > div {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.home-why-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    background:#fff;
    border:1px solid #141414;
    border-radius:8px;
    padding:12px;
    box-shadow:var(--gt-shadow);
}
.home-why-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: var(--why-icon);
    flex-shrink: 0;
    border: 0;
}
.home-why-card__icon i { display: none; }
.home-why-card__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #191611;
}
.home-why-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #514B43;
    margin-bottom: 0;
}

.home-why-grid > div:nth-child(1) {
    --why-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2227%22%20fill%3D%22%23FFEDB3%22%2F%3E%3Cpath%20d%3D%22M36%205%2013%2036h17l-5%2023%2029-34H36l7-20Z%22%20fill%3D%22%23F2B705%22%20stroke%3D%22%23926000%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.home-why-grid > div:nth-child(2) {
    --why-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2254%22%20height%3D%2254%22%20rx%3D%2216%22%20fill%3D%22%23FFE7D9%22%2F%3E%3Cpath%20d%3D%22M10%2013h22l25%2025-20%2020L10%2031Z%22%20fill%3D%22%23FF864A%22%20stroke%3D%22%23B84013%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2223%22%20r%3D%224%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22m29%2043%2014-14%22%20stroke%3D%22white%22%20stroke-width%3D%223%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%3E%3Ccircle%20cx%3D%2229%22%20cy%3D%2230%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2243%22%20cy%3D%2243%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.home-why-grid > div:nth-child(3) {
    --why-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%2228%22%20fill%3D%22%23DDF5E9%22%2F%3E%3Cpath%20d%3D%22M32%205%2054%2015v18Q54%2049%2032%2059%2010%2049%2010%2033V15Z%22%20fill%3D%22%2327B985%22%20stroke%3D%22%23087B54%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M32%2012%2047%2019v14Q47%2044%2032%2052%2017%2044%2017%2033V19Z%22%20fill%3D%22%23A6E7CD%22%2F%3E%3Cpath%20d%3D%22m23%2031%207%207%2012-13%22%20fill%3D%22none%22%20stroke%3D%22%23087B54%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E");
}

.home-why-grid > div:nth-child(4) {
    --why-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%2254%22%20height%3D%2254%22%20rx%3D%2217%22%20fill%3D%22%23E3EEFF%22%2F%3E%3Cpath%20d%3D%22M12%2033v-5a20%2020%200%200%201%2040%200v5%22%20fill%3D%22none%22%20stroke%3D%22%233474CE%22%20stroke-width%3D%225%22%2F%3E%3Cg%20fill%3D%22%2372A8F5%22%20stroke%3D%22%23245EA9%22%20stroke-width%3D%222%22%3E%3Crect%20x%3D%227%22%20y%3D%2227%22%20width%3D%2214%22%20height%3D%2222%22%20rx%3D%225%22%2F%3E%3Crect%20x%3D%2243%22%20y%3D%2227%22%20width%3D%2214%22%20height%3D%2222%22%20rx%3D%225%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M50%2048q0%2010-16%2010%22%20fill%3D%22none%22%20stroke%3D%22%23245EA9%22%20stroke-width%3D%223%22%2F%3E%3Crect%20x%3D%2226%22%20y%3D%2254%22%20width%3D%2212%22%20height%3D%227%22%20rx%3D%223%22%20fill%3D%22%233474CE%22%2F%3E%3C%2Fsvg%3E");
}

@media (max-width: 991.98px) {
    .home-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}
}
@media (max-width: 575.98px) {
    .home-why-grid { gap: 20px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}
    .home-why-card { padding: 0;
    border: 0;
    background: transparent;
}
    .home-why-card__icon { width: 48px; height: 48px; background-size: contain; margin-bottom: 10px;
    background-color: transparent;
    border: 0;
    border-radius: 0;
}
    .home-why-card__title { font-size: 15px;
    color: #191611;
}
    .home-why-card__desc { font-size: 14px; line-height: 1.55;
    color: #514B43;
}
}

/* Đánh giá: giữ nguyên dữ liệu Admin */
.home-page .section-gap:has(> .row .home-review-card) { background:#F2F3F5; padding:40px 24px; }
.home-page .section-gap:has(> .row .home-review-card) .title { font:800 clamp(30px,4vw,48px)/1.1 Archivo,var(--font-theme); text-align:left; }
.home-page .section-gap:has(> .row .home-review-card) .title::after { display:none; }
.home-page .section-gap > .row:has(.home-review-card) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:24px; margin:0; }
.home-page .section-gap > .row:has(.home-review-card) > div { width:auto; max-width:none; min-width:0; padding:0; margin:0; }
.home-review-card { --bubble:#2B4BFF; --ink:#fff; display:flex; flex-direction:column; gap:12px; height:auto; background:none; border:0; padding:0; box-shadow:none; }
.row > div:nth-child(4n+2) .home-review-card { --bubble:#141414; }
.row > div:nth-child(4n+3) .home-review-card { --bubble:#E8EDFF; --ink:#141414; }
.row > div:nth-child(4n+4) .home-review-card { --bubble:#fff; --ink:#141414; }
.gt6-bubble { position:relative; background:var(--bubble); color:var(--ink); border:1px solid #141414; border-radius:16px; padding:20px; box-shadow:3px 3px #141414; }
.gt6-bubble::after { content:""; position:absolute; left:22px; bottom:-8px; width:14px; height:14px; transform:rotate(45deg); background:var(--bubble); border-right:1px solid #141414; border-bottom:1px solid #141414; }
.home-review-card__author { display:flex; align-items:center; gap:10px; padding:6px 4px; color:#141414; }
.home-review-card__avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; flex:none; overflow:hidden; }
.home-review-card__avatar img { width:100%; height:100%; object-fit:cover; }
.home-review-card__name,.home-review-card__meta { display:block; }
.home-review-card__name { font-weight:700; }
.home-review-card__meta { font-size:12px; }
.home-review-card__stars { display:flex; gap:4px; color:inherit; margin-bottom:10px; }
.home-review-card__stars i { color:inherit; background:none; }
.home-review-card__comment { margin:0; font-size:15px; font-weight:600; line-height:1.65; color:inherit; overflow-wrap:anywhere; }
.gt6-summary { background:#2B4BFF; color:white; border:1px solid #141414; border-radius:16px; box-shadow:4px 4px #141414; padding:22px; margin-bottom:24px; max-width:340px; }
.gt6-summary strong { font:900 56px/1 Archivo,sans-serif; }
.gt6-summary-stars { letter-spacing:3px; font-size:20px; }
.gt6-summary-line progress { appearance:none; border:0; border-radius:8px; overflow:hidden; background:#ffffff40; }
.gt6-summary-line progress::-webkit-progress-bar { background:#ffffff40; }
.gt6-summary-line progress::-webkit-progress-value { background:white; border-radius:8px; }
.gt6-summary-line progress::-moz-progress-bar { background:white; }
.gt6-summary p { margin:8px 0; }
.gt6-summary-line { display:grid; grid-template-columns:32px 1fr 42px; gap:8px; align-items:center; font-size:12px; margin:7px 0; }
.gt6-summary-line progress { width:100%; height:8px; accent-color:white; }
@media(min-width:992px) {
 .home-page .section-gap:has(> .gt6-summary) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:24px; align-items:start; }
 .home-page .section-gap:has(> .gt6-summary) > .description { grid-column:1/-1; }
 .home-page .section-gap:has(> .gt6-summary) > .row:has(.home-review-card) { display:block; columns:2; column-gap:24px; }
 .home-page .section-gap:has(> .gt6-summary) > .row:has(.home-review-card) > div { display:inline-block; width:100%; break-inside:avoid; margin-bottom:24px; }
}
@media(max-width:767px) {
 .home-page .section-gap:has(> .row .home-review-card) { padding:24px 14px; }
 .gt6-summary { max-width:none; }
 .home-page .section-gap > .row:has(.home-review-card) { display:flex; flex-wrap:nowrap; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 4px 16px; gap:16px; }
 .home-page .section-gap > .row:has(.home-review-card) > div { flex:0 0 85%; scroll-snap-align:start; }
}

/* FAQ: hội thoại, giữ nguyên details và nội dung Admin */
.home-page .section-gap:has(> .home-faq) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.65fr); gap:40px; padding:48px 24px; border-block:1px solid #141414; background:#fff; }
.home-page .section-gap:has(> .home-faq) > .description { margin:0; min-width:0; }
.home-page .section-gap:has(> .home-faq) .description .title.text-center { font:900 clamp(36px,5vw,64px)/.98 Archivo,var(--font-theme); text-align:left!important; max-width:12ch; letter-spacing:-.045em; color:#141414; }
.home-page .section-gap:has(> .home-faq) > .description p { font-size:16px; line-height:1.7; color:#55575e; margin-top:18px; }
.home-faq { display:grid; gap:12px; min-width:0; align-content:start; }
.home-faq__item { min-width:0; display:flex; flex-direction:column; align-items:flex-end; }
.home-faq__question { display:flex; align-items:center; gap:12px; width:fit-content; max-width:100%; margin-left:auto; padding:10px 12px 10px 18px; border:1px solid #141414; border-radius:18px 18px 4px 18px; background:white; color:#141414; font-size:15px; font-weight:600; cursor:pointer; list-style:none; }
.home-faq__question::-webkit-details-marker { display:none; }
.home-faq__question::marker { content:""; }
.home-faq__arrow { display:none; }
.home-faq__question::after { content:"+"; display:grid; place-items:center; flex:0 0 26px; height:26px; border-radius:50%; background:#2B4BFF; color:white; font-size:19px; }
.home-faq__item[open] .home-faq__question { background:#141414; color:white; }
.home-faq__item[open] .home-faq__question::after { content:"−"; background:white; color:#141414; }
.home-faq__answer { margin:12px auto 4px 0; max-width:92%; padding:16px; background:#F2F3F5; border:1px solid #141414; border-radius:16px 16px 16px 4px; color:#141414; line-height:1.65; overflow-wrap:anywhere; }
.home-faq__item:not([open]) > :not(summary) { display:none; }
@media(max-width:767px) { .home-page .section-gap:has(> .home-faq) { grid-template-columns:minmax(0,1fr); gap:20px; padding:28px 12px; } }

@media screen and (max-width: 991.98px) {
    .home-page .section-gap:has(> .home-steps) {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 32px 32px;

    border-radius: 12px;}
    .home-page .section-gap:has(> .home-steps) .description .title.text-center {
        font-size: 26px;
    }
}
@media screen and (max-width: 575.98px) {
    .home-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .home-step {
        padding-left: 52px;
        min-height: 38px;
    }
    .home-step__icon {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
        width: 38px; height: 38px;
    }
    .home-step::after {
        top: 44px;
        bottom: -12px;
        left: 18px;
        right: auto;
        border-top: 2px dashed #C7BDA8;
        border-left: 2px dashed #C7BDA8;
    }
    .home-step__badge { width: 38px; height: 38px; font-size: 36px;
    border: 0;}
    .home-step__title { font-size: 17px; }
    .home-step__desc { font-size: 15px;
    color: #fff;
}
}

/* ---------- Lịch sử mua thẻ cào (bh = buy history) ---------- */
.bh-history {
    padding: 22px 24px 26px;
}

.bh-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.bh-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.bh-stats {
    display: flex;
    gap: 22px;
    font-size: 12px;
    color: var(--gray-500);
}

.bh-stats b {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-900);
}

.bh-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.bh-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 200px;
}

.bh-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 13px;
}

.bh-search .form-control {
    height: 42px;
    padding-left: 36px;
    border-radius: 10px;
}

.bh-tabs {
    display: flex;
    gap: 4px;
    background: #f1f4f9;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 3px;
}

.bh-tab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-500);
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: .15s;
}

.bh-tab.active {
    background: var(--primary-color);
    color: #fff;
}

.bh-tab:not(.active):hover {
    background: #e6ebf3;
}

/* Desktop ticket-row table */
.bh-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bh-caption {
    display: grid;
    grid-template-columns: 90px 1.7fr 1.1fr 130px 150px 100px;
    column-gap: 16px;
    padding: 0 18px;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
}

.bh-caption span:last-child {
    text-align: right;
}

.bh-row {
    display: grid;
    grid-template-columns: 90px 1.7fr 1.1fr 130px 150px 100px;
    column-gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    transition: transform .12s, box-shadow .12s;
}

.bh-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -12px rgb(16 24 40 / 18%);
}

.bh-row-code {
    font-weight: 700;
    color: var(--gray-900);
}

.bh-row-product {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bh-product-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-900);
}

.bh-product-sub {
    font-size: 12px;
    color: var(--gray-500);
}

.bh-row-amount {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--gray-900);
}

.bh-row-amount .face {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-500);
}

.bh-row-time {
    font-size: 12.5px;
    color: var(--gray-500);
}

.bh-action {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.bh-divider {
    width: 0;
    align-self: stretch;
    border-left: 1.5px dashed #dfe4ec;
}

.bh-btn-detail {
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .15s;
    white-space: nowrap;
}

.bh-btn-detail:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Mobile ticket cards */
.bh-mobile {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.bh-ticket {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}

.bh-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 0;
}

.bh-ticket-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
}

.bh-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px 12px;
}

.bh-ticket-amount {
    font-weight: 800;
    font-size: 14.5px;
    color: var(--gray-900);
    white-space: nowrap;
}

.bh-ticket-mid {
    border-top: 1.5px dashed #dfe4ec;
    margin: 0 14px;
}

.bh-ticket-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px 14px;
}

/* Pagination */
.bh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}

.bh-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--gray-500);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.bh-page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.bh-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Modal chi tiết */
.bh-overlay {
    position: fixed;
    inset: 0;
    background: rgb(16 24 40 / 55%);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.bh-overlay[hidden] {
    display: none;
}

.bh-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgb(16 24 40 / 45%);
}

.bh-modal-head {
    position: relative;
    background: var(--primary-color);
    color: #fff;
    padding: 18px 20px;
    flex: 0 0 auto;
}

.bh-modal-head .status-badge {
    margin-bottom: 14px;
}

.bh-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgb(255 255 255 / 15%);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-size: 16px;
}

.bh-modal-summary {
    display: grid;
    grid-template-columns: 3fr 4fr 5fr;
    gap: 8px;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 12px;
    padding: 12px 10px;
}

.bh-modal-summary > div {
    min-width: 0;
}

.bh-modal-summary .s-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .6;
    margin-bottom: 4px;
}

.bh-modal-summary .s-val {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.bh-modal-body {
    padding: 18px 20px 20px;
    overflow-y: auto;
}

.bh-item-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.bh-card-table-head {
    display: grid;
    grid-template-columns: 26px 1fr 1fr;
    gap: 8px;
    padding: 0 10px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray-500);
    font-weight: 700;
}

.bh-card-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bh-card-row {
    display: grid;
    grid-template-columns: 26px 1fr 1fr;
    align-items: flex-start;
    gap: 8px;
    background: #f7faff;
    border-radius: 8px;
    padding: 10px;
}

.bh-card-idx {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
}

.bh-card-cell {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.bh-card-cell .val {
    font-size: 12px;
    word-break: break-all;
    letter-spacing: .02em;
    line-height: 1.5;
    color: var(--gray-800);
}

.bh-card-empty {
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--gray-500);
    background: #f8fafc;
    font-size: 13px;
}

.bh-copy-icon {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--primary-color);
    flex-shrink: 0;
    padding: 2px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bh-copy-icon-light {
    color: #fff;
    opacity: .9;
}

.bh-copy-icon-light:hover {
    opacity: 1;
}

.bh-note-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    background: var(--danger-soft, #fbe5e2);
    color: var(--danger);
}

.bh-note-box.ok {
    background: #e1f4eb;
    color: var(--success);
}

.bh-note-box.warn {
    background: #fcefd9;
    color: var(--warning);
}

.bh-modal-footer {
    flex: 0 0 auto;
    padding: 14px 20px;
    border-top: 1px solid #edf0f5;
}

.bh-btn-copy-all {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bh-btn-copy-all:hover {
    background: var(--primary-hover);
}

@media (max-width: 900px) {
    .bh-table {
        display: none;
    }

    .bh-mobile {
        display: flex;
    }
}

@media (max-width: 576px) {
    .bh-history {
        padding: 18px 16px 20px;
    }

    .bh-head {
        align-items: flex-start;
    }

    .bh-stats {
        gap: 14px;
    }

    .bh-tabs {
        overflow-x: auto;
    }

    .bh-modal-summary {
        grid-template-columns: 3fr 4fr 5fr;
        gap: 6px;
        padding: 10px 8px;
    }

    .bh-modal-summary .s-label {
        font-size: 9px;
        letter-spacing: .03em;
    }

    .bh-modal-summary .s-val {
        font-size: 11.5px;
    }
}

/* =======================
==================
   DOITHENHANH - YELLOW & ORANGE
   GIAI DOAN 01: MAU THUONG HIEU
   ========================================= */


/* END - YELLOW & ORANGE */

/* =========================================
   YELLOW & ORANGE - HEADER BUTTONS
   ========================================= */

.header-nologin {
    gap: 10px;
}

/* Nut dang ky va dang nhap */
.header-nologin .btn.btn-small {
    border-radius:999px; padding:0 20px; min-height:38px; height:38px; font-size:13px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; gap:6px; transition:background .2s;
}

/* Nut dang ky */
.header-nologin .btn-register {
    background:#fff; color:#141414; border:1px solid #141414; box-shadow:3px 3px #141414;
}
.header-nologin .btn-register:hover {
    background:#2B4BFF; color:#fff; border-color:#141414;
}
.header-nologin .btn-login {
    background:transparent; color:#141414; border:1px solid transparent; order:-1;
}
.header-nologin .btn-login:hover {
    background:#E8EDFF; color:#141414;
}

/* END - HEADER BUTTONS */


/* =========================================
   YELLOW & ORANGE - WEBSITE BACKGROUND
   ========================================= */

#header-m1 {
    background-color: #FFFFFF;
    border-bottom:1px solid #141414;
    box-shadow:none;
}

/* END - WEBSITE BACKGROUND */
/* ===== BANG PHI DOI THE - PHAN CAP THANH VIEN ===== */
.section-gap:has(> .home-rate-tabs) > .description .title.text-center::after,
.fee-rate-block .description .title.text-center::after {
    display: none;
}
.section-gap:has(> .home-rate-tabs):has(.fee-login-note) > .description { margin-bottom: 12px !important; }
 .home-rate-tabs {
    border:1px solid #141414;
    border-radius:8px;
    background:#fff;
}
#excRateTabs { display:flex; flex-wrap:wrap; gap:8px; padding:12px; margin:0; justify-content:flex-start; }
#excRateTabs .nav-link { background:white !important; color:#141414 !important; border:1px solid #141414 !important; border-radius:8px !important; padding:8px 12px; font-size:13px; font-weight:600; }
#excRateTabs .nav-link.active { background:#2B4BFF !important; color:white !important; }
#excRateTabs .nav-link .badge { display:none; }
.home-rate-tabs .table-responsive {
    margin-top: 0;
    border: 0;
    border-radius: 0 0 7px 7px;
    overflow-x: auto;
    box-shadow: none;
}
.home-rate-tabs .table-module {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    --bs-table-striped-bg: transparent;
    --bs-table-accent-bg: transparent;
}
.home-rate-tabs .table-module tr { border: 0; }
.home-rate-tabs .table-module th,
.home-rate-tabs .table-module td {
    padding: 11px 10px;
    font-size: 14px;
    white-space: nowrap;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid #E1E3E6;
    box-shadow: none;
    color: #252525;
    background: #FFFFFF;
}
.home-rate-tabs .table-module thead th {
    font-weight: 600;
    background:#E8EDFF;
    color:#141414;
}
.home-rate-tabs .table-module tbody tr:last-child > * { border-bottom: 0; }
.home-rate-tabs .table-module tbody tr:nth-child(1) > :first-child {
    background: #FFFFFF;
    font-weight: 700;
    color:#2B4BFF;
}
.home-rate-tabs .table-module tbody tr:nth-child(2) > :first-child { background: #FFFFFF; color: #242424; font-weight: 600; }
.home-rate-tabs .table-module tbody tr:nth-child(3) > :first-child { background: #FFFFFF; color: #555555; font-weight: 500; }
@media (max-width: 767px) {
    .home-rate-tabs .table-responsive { scrollbar-width: thin; scrollbar-color: #D1D5DB transparent; }
    .home-rate-tabs .table-responsive::-webkit-scrollbar { height: 4px; }
    .home-rate-tabs .table-responsive::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 8px; }
    .home-rate-tabs .table-module th,
    .home-rate-tabs .table-module td { min-width: 84px; padding: 10px 8px; }
    .home-rate-tabs .table-module tr > :first-child { position: sticky; left: 0; z-index: 1; min-width: 100px; box-shadow: 1px 0 0 #E2E5EB; }
}

#excRateTabs .nav-link:focus-visible {
    outline-offset: -3px;
    outline:2px solid #2B4BFF;
}
/* END - EXCHANGE AND RATE TABS */
/* =========================================
   YELLOW & ORANGE - SECTION TITLES
   ========================================= */

/* Mau chu tieu de trang chu */
.home-page .description .title.text-center {
    text-align: left !important;
    font-size: clamp(23px, 2.5vw, 28px);
    padding-bottom: 0;
    padding-left: 0;
    border-left: 0;
    line-height: 1.3;
    font-family:Archivo,var(--font-theme);
    font-weight:800;
    color:#141414 !important;
}

/* Duong gach chan tieu de */
.home-page .description .title.text-center::after {
    background: #FF571F !important;
    width: 36px;
    height: 3px;
    border-radius: 10px;
    display: none;
}

/* END - SECTION TITLES */
/* ========================================
   HOME BANNER - MODERN SLIDER V1
   ======================================== */

.home-page .home-game-slider {
    padding: 0 !important;
    margin: 16px 0 24px !important;
    background: transparent !important;
}

.home-page #lb-banner-slider {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2048 / 682;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
}

.home-page #lb-banner-slider .lb-banner-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.45s ease !important;
}

.home-page #lb-banner-slider .lb-banner-slide.is-center {
    opacity: 1 !important;
    z-index: 3 !important;
    pointer-events: auto !important;
}

.home-page #lb-banner-slider .lb-banner-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .home-page .home-game-slider {
        margin: 12px 0 18px !important;
    }

    .home-page #lb-banner-slider {
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    border: 0;
}

    .home-page #lb-banner-slider,
    .home-page #lb-banner-slider .lb-banner-slide {
        border-radius: 12px !important;
    }
}

/* DTN BANNER V2 - BEGIN */
.home-game-slider.lb-hero.dtn-banner-v2 {margin:0 0 22px!important;padding:0!important;}
.dtn-banner-v2 #lb-banner-slider {position:relative!important;display:block!important;width:100%!important;max-width:1100px!important;margin:0 auto!important;height:auto!important;aspect-ratio:var(--dtn-ratio, 3.00293);overflow:hidden!important;border-radius:16px!important;background:transparent!important;touch-action:pan-y;}
.dtn-banner-v2 #lb-banner-slider .lb-banner-slide {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;z-index:0!important;transition:opacity .4s ease,visibility .4s!important;}
.dtn-banner-v2 #lb-banner-slider .lb-banner-slide.dtn-active {opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:1!important;}
.dtn-banner-v2 #lb-banner-slider .lb-banner-slide img {display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;}
.dtn-banner-v2 .dtn-arrow {position:absolute;top:50%;transform:translateY(-50%);z-index:5;border:1px solid #ffffff66;border-radius:50%;width:40px;height:40px;background:#201633b3;color:white;font-size:26px;line-height:1;display:grid;place-items:center;cursor:pointer;}
.dtn-banner-v2 .dtn-prev {left:12px}.dtn-banner-v2 .dtn-next {right:12px}
.dtn-banner-v2 .dtn-controls {display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;}
.dtn-banner-v2 .dtn-dot,.dtn-banner-v2 .dtn-pause {border:0;background:transparent;min-width:28px;height:28px;display:grid;place-items:center;cursor:pointer;color:#191611;}
.dtn-banner-v2 .dtn-dot::after {content:"";width:8px;height:8px;border-radius:8px;background:#b8b2c5;}
.dtn-banner-v2 .dtn-dot[aria-current=true]::after {width:24px;background:#191611;}
.dtn-banner-v2 button:focus-visible {outline:2px solid #191611;outline-offset:2px;}
@media(max-width:575px){.dtn-banner-v2 #lb-banner-slider {border-radius:12px!important;}.dtn-banner-v2 .dtn-arrow {display:none;}}
@media(prefers-reduced-motion:reduce){.dtn-banner-v2 #lb-banner-slider .lb-banner-slide {transition:none!important;}}
/* DTN BANNER V2 - UI REFINEMENT */

.home-game-slider.lb-hero.dtn-banner-v2 {
    margin-bottom: 14px !important;
}

.dtn-banner-v2 .dtn-arrow {
    width: 32px;
    height: 32px;
    font-size: 22px;
    background: rgba(20, 16, 35, .45);
    transition: background .2s ease;
}

.dtn-banner-v2 .dtn-arrow:hover {
    background: #191611;
}

.dtn-banner-v2 .dtn-controls {
    gap: 4px;
    margin-top: 5px;
}

.dtn-banner-v2 .dtn-dot {
    min-width: 24px;
    padding: 0;
}

.dtn-banner-v2 .dtn-dot::after {
    width: 6px;
    height: 6px;
}

.dtn-banner-v2 .dtn-dot[aria-current=true]::after {
    width: 20px;
}

.dtn-banner-v2 .dtn-pause {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    background: #FFF0B9;
}

.dtn-banner-v2 .dtn-pause::after {
    content: "";
    width: 3px;
    height: 10px;
    border-radius: 2px;
    background: #191611;
    box-shadow: 5px 0 0 #191611;
    transform: translateX(-2.5px);
}

.dtn-banner-v2 .dtn-pause[aria-label="Phát tự động"]::after {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #191611;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateX(1px);
}
/* DTN BANNER V2 - END */
/* DTN - An nut tam dung banner */
.dtn-banner-v2 .dtn-pause {
    display: none !important;
}

.dtn-banner-v2 .dtn-controls {
    justify-content: center !important;
    gap: 4px !important;
}

/* Tăng kích thước logo trên mobile */
@media (max-width: 767px) {
    #header-m1 .header-logo .brand-logo {
        width: clamp(120px, 40vw, 190px) !important;
        max-width: 100% !important;
    }

    #header-m1 .header-logo .brand-logo img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain;
    }
}
/* ===== MOBILE BOTTOM NAV - NEW UI ===== */

@media (max-width: 991.98px) {

    .bottom-nav-mobile {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        height: auto !important;
        min-height: 58px !important;

        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;

        background: #FFFFFF !important;
        border: 1px solid #E4DED4 !important;
        border-radius: 12px !important;
        box-shadow: none !important;

        padding: 5px !important;
        gap: 2px !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
    border-top: 1px solid #E4DED4 !important;
}

    .bottom-nav-mobile__item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 48px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;
        padding: 7px 2px !important;
        border-radius: 14px !important;

        color: #756D63 !important;
        background: transparent !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;

        transition: background-color .2s ease,
                    color .2s ease;
    }

    .bottom-nav-mobile__item i {
        font-size: 22px !important;
        line-height: 1 !important;
        color: inherit !important;
    }

    .bottom-nav-mobile__item span {
        font-size: 11px !important;
        white-space: nowrap !important;
        color: inherit !important;
    }

    .bottom-nav-mobile__item.is-active {
        color: #191611 !important;
        background: #FFF0C8 !important;
    }

    .bottom-nav-mobile__item:active {
        background: #FFF0B9 !important;
    }

    body:not(:has(#footer.footer)) {
        padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #footer .footer-bottom {
        padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));

    color: #756D63;

    border-top: 1px solid #DCD6CB;
}
}

/* ===== END MOBILE BOTTOM NAV ===== */

/* ===== WITHDRAW PAGE - MODERN UI ===== */

form[action="/tai-khoan/rut-tien"] {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 20, 60, 0.04);
}

/* Tieu de cac truong */
form[action="/tai-khoan/rut-tien"] .form-label {
    font-size: 15px;
    font-weight: 600;
    color: #252525;
    margin-bottom: 10px;
}

/* O nhap lieu va chon ngan hang */
form[action="/tai-khoan/rut-tien"] .form-control,
form[action="/tai-khoan/rut-tien"] .form-select,
form[action="/tai-khoan/rut-tien"] select {
    min-height: 50px;
    border: 1px solid #DCE0E6;
    border-radius: 12px;
    background-color: #F8F9FA;
    color: #252525;
    font-size: 15px;
    padding: 12px 14px;
    transition: border-color .2s ease,
                box-shadow .2s ease;
}

/* Trang thai focus */
form[action="/tai-khoan/rut-tien"] .form-control:focus,
form[action="/tai-khoan/rut-tien"] select:focus {
    border-color: #191611;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(25, 22, 17, .10);
    outline: none;
}

/* Placeholder */
form[action="/tai-khoan/rut-tien"] .form-control::placeholder {
    color: #8490A3;
    opacity: 1;
}

/* Checkbox */
form[action="/tai-khoan/rut-tien"] input[type="checkbox"] {
    accent-color: #191611;
}

form[action="/tai-khoan/rut-tien"] .form-check-input:checked {
    background-color: #191611;
    border-color: #191611;
}

/* Nut rut tien */
form[action="/tai-khoan/rut-tien"] button[type="submit"] {
    width: 100%;
    min-height: 50px;
    background: #FF571F !important;
    border: 1px solid #FF571F !important;
    border-radius: 12px !important;
    color: #191611 !important;
    font-size: 16px !important;
    font-weight: 600;
    box-shadow: none;
    transition: background-color .2s ease;
}

form[action="/tai-khoan/rut-tien"] button[type="submit"]:hover:not(:disabled) {
    background: #E84712 !important;
}

form[action="/tai-khoan/rut-tien"] button[type="submit"]:disabled {
    background: #F4E9DC !important;
    border-color: #F4E9DC !important;
    color: #78634D !important;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 767px) {
    form[action="/tai-khoan/rut-tien"] {
        padding: 16px;
        border-radius: 16px;
    }

    form[action="/tai-khoan/rut-tien"] .form-control,
    form[action="/tai-khoan/rut-tien"] select {
        font-size: 16px;
        min-height: 48px;
    }
}

/* ===== END WITHDRAW PAGE ===== */


/* ===== WITHDRAW LIMIT & FEE - MODERN UI ===== */

/* Khung han muc va phi */
.withdraw-limit-box {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 20, 60, .04);
}

/* Tieu de */
.withdraw-limit-box h2 {
    font-size: 19px !important;
    font-weight: 700;
    color: #252525;
    margin: 0 0 18px !important;
}

/* Giao dien chung cua hai bang */
.withdraw-limit-table,
.withdraw-fee-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF !important;
    font-size: 14px;
}

/* Loai bo nen xam xen ke */
.withdraw-limit-table tr,
.withdraw-fee-table tr,
.withdraw-limit-table td,
.withdraw-fee-table td {
    background: #FFFFFF !important;
    box-shadow: none !important;
}

/* Khoang cach va duong phan cach */
.withdraw-limit-table td,
.withdraw-fee-table td,
.withdraw-fee-table th {
    padding: 14px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #E4EBF2 !important;
    vertical-align: middle;
}

/* Bo duong ke dong cuoi */
.withdraw-limit-table tr:last-child td,
.withdraw-fee-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

/* Ten han muc */
.withdraw-limit-table td:first-child {
    color: #64748B !important;
    font-weight: 500;
}

/* Gia tri han muc */
.withdraw-limit-table td:last-child {
    color: #252525 !important;
    font-weight: 700;
    text-align: right;
}

/* Bang bieu phi */
.withdraw-fee-table {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* Tieu de bang phi */
.withdraw-fee-table th {
    background: #FFF0B9 !important;
    color: #191611 !important;
    font-size: 13px;
    font-weight: 600;
}

/* So tien phi */
.withdraw-fee-table td:last-child {
    color: #191611 !important;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 767px) {
    .withdraw-limit-box {
        padding: 16px;
        border-radius: 16px;
        margin-top: 20px;
    }

    .withdraw-limit-box h2 {
        font-size: 17px !important;
    }

    .withdraw-limit-table,
    .withdraw-fee-table {
        font-size: 13px;
    }

    .withdraw-limit-table td,
    .withdraw-fee-table td,
    .withdraw-fee-table th {
        padding: 12px 10px !important;
    }
}

/* ===== END WITHDRAW LIMIT & FEE ===== */

/* Hero: vùng độc lập, không float hoặc đổi vị trí bảng phí */
.gt6-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:start; margin-bottom:28px; background-image:linear-gradient(#14141408 1px,transparent 1px),linear-gradient(90deg,#14141408 1px,transparent 1px); background-size:24px 24px; }
.gt6-hero > .home-tabs { width:100%; min-width:0; margin:0; }
.gt6-intro { padding:24px 0; min-width:0; }
.gt6-intro h1 { font:800 clamp(42px,5vw,78px)/.98 Archivo,var(--font-theme); letter-spacing:-.045em; margin:0 0 20px; color:#141414; }
.gt6-intro h1 span { color:#2B4BFF; }
.gt6-intro p { font-size:16px; line-height:1.6; }
.gt6-rate-heading { background:#2B4BFF; color:white; padding:12px 16px; font-weight:700; }

@media(max-width:991px) { .gt6-hero { grid-template-columns:minmax(0,1fr); gap:12px; } }

/* V7: bố cục các vùng được nhận diện từ DOM hiện có */
.gt7-brand-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(105px,1fr)); gap:16px; margin:0; }
.gt7-brand-grid > * { width:auto; max-width:none; min-width:0; padding:0; margin:0; }
.gt7-brand-grid .card-image:hover { background:#E8EDFF; }
.gt7-rate-guest { position:relative; min-height:220px; }
.gt7-rate-guest > .fee-login-note { position:absolute; inset:0; display:grid; place-items:center; margin:0; padding:12px; background:#f2f3f5bb; z-index:3; }
.gt7-footer-wordmark { font:900 clamp(40px,10vw,144px)/1 Archivo,var(--font-theme); letter-spacing:-.065em; padding:32px 0 16px; color:#ffffff45; overflow-wrap:anywhere; }
.gt7-footer-wordmark span { color:#6075ff75; }
@media(max-width:575px) { .gt7-brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
