@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+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, 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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #004B93;
    --primary-hover: #004780;
    --primary-rgb: 0, 75, 147;

    --brand-accent: #004B93;
    --brand-background: #F8F9FA;
    --brand-dark: #252525;
    --brand-light: #EAF3FB;
    --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;
    --font-theme: "Roboto", Arial, Helvetica, sans-serif;
}

[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: 120px; height: 40px; 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: #475569; 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: 100vw; margin-left: calc(50% - 50vw); }
.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: 40px; padding-right: 40px; }
.partner-marquee .partner-strip__item { flex: 0 0 136px; }
@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: 112px; } .partner-strip__item img { width: 96px; height: 34px; } }
@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: #FFFFFF;
}

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: #173D62;
}

.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-top: 10px;
    padding: clamp(14px, 2vw, 20px);
    background: #FFFAEE;
    border: 1px solid #EFDFB5;
    border-radius: 12px;
    color: #302B24;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.home-site-notice::before {
    content: "Thông báo";
    display: block;
    padding-left: 46px;
    min-height: 36px;
    line-height: 36px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #80540A;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect width='36' height='36' rx='9' fill='%23FFE8B3'/%3E%3Cg fill='none' stroke='%23A66A13' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 15h5l11-5v16l-11-5H9zM14 21l2 7h4l-2-5'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center;
}

.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: 8px;
}

.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: 4px;
    height: 40px;
    min-height: 40px !important;
}

.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ẻ cào - khối giao dịch chính */
.home-tabs:has(> #excExchangeTabs) {
    position: relative; max-width: 1180px; margin-inline: auto;
    padding: 24px; background: #fff;
    border: 1px solid #DCE4EC; border-radius: 12px;
    box-shadow: none;
}
#excExchangeTabs {
    position: static; width: 100%; margin: 0 0 20px !important;
    padding: 0; border: 0; background: transparent;
    justify-content: flex-start !important;
}
#excExchangeTabs #exc-single-tab {
    display: flex; align-items: center; gap: 12px;
    background: transparent !important; border: 0 !important;
    color: #102D49 !important; font-size: 28px; font-weight: 700;
    line-height: 1.25; padding: 0; text-align: left;
}
#excExchangeTabs #exc-single-tab::before {
    content: ""; width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004B93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='3'/%3E%3Cpath d='M3 9h18M6 15h4'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
    background-color: #EAF3FB;
}
#exc-single-exchange .home-exchange-form {
    background: transparent; border: 0; padding: 0; box-shadow: none;
}

#excSingleRows .row-item > [class*=col]:has(.home-telco)::before { content: "Nhà mạng"; }
#excSingleRows .row-item > [class*=col]:has(input[name="code"])::before { content: "Mã nạp"; }
#excSingleRows .row-item > [class*=col]:has(input[name="serial"])::before { content: "Số serial"; }
#excSingleRows .row-item > [class*=col]:has(.home-amount)::before { content: "Mệnh giá"; }
#excSingleRows .row-item > [class*=col]::before {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #252525;
}
#excSingleRows .form-control,
#excSingleRows .form-select {
    height: 46px;
    min-height: 46px;
    border: 1px solid #CCD1DA;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #252525;
    font-size: 16px;
}
#excSingleRows select.home-telco,
#excSingleRows select.home-amount {
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364758B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}
#excSingleRows input[name="code"],
#excSingleRows input[name="serial"] { padding-right: 36px; }
#excSingleRows .form-control:focus,
#excSingleRows .form-select:focus {
    border-color: #004B93;
    box-shadow: 0 0 0 2px rgba(0, 75, 147,.12);
}
#excSingleForm .form-check-input:checked {
    background-color: #004B93;
    border-color: #004B93;
}
.home-rule-link, #excSingleForm a { color: #004B93 !important; }
.home-rule-link:hover { color: #252525 !important; }
.home-exchange-form .home-submit-btn {
    min-height: 46px;
    min-width: 220px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    background: #FF861C !important;
    border-color: #FF861C !important;
    color: #172B40 !important;
}
.home-exchange-form .home-submit-btn:not(:disabled):hover {
    background: #E87513 !important;
    border-color: #E87513 !important;
}
.home-exchange-form .home-submit-btn:disabled {
    background: #F4E9DC !important;
    border-color: #F4E9DC !important;
    color: #78634D !important;
    cursor: not-allowed;
    opacity: 1;
}
@media (max-width: 767px) {
    .home-tabs:has(> #excExchangeTabs) { padding: 14px; border-radius: 10px; }
    #excExchangeTabs { margin-bottom: 12px !important; }
    #excExchangeTabs #exc-single-tab { font-size: 24px; gap: 10px; }
    #excExchangeTabs #exc-single-tab::before { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
    #excSingleRows .row-item > [class*=col] { padding-top: 6px; padding-bottom: 6px; }
    #excSingleForm .home-submit-btn { width: 100%; min-width: 0; }
}

.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 .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: "\2013";
    margin-right: 8px;
}

.fee-login-note {
    margin: 12px auto 0;
    padding: 12px;
    color: #252525;
    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: var(--fee-header-bottom, 50px) 1px 1px var(--fee-group-width, 100px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 6px;
    background: #FFFFFF;
    color: #475569 !important;
    border-radius: 0 0 7px 0;
    line-height: 1.35;
}
.fee-guest-overlay > i { color: #64748B; }
.fee-guest-overlay .fee-guest-login {
    color: #004B93;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.fee-guest-overlay .fee-guest-login:hover { color: #252525; }
.fee-guest-overlay .fee-guest-login:focus-visible { outline: 2px solid #004B93; outline-offset: 2px; }
@media (max-width: 767px) {
    .home-rate-tabs .fee-login-note.fee-guest-overlay { font-size: 13px; gap: 4px; }
}

.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: 1px solid #d1d5db;
    border-radius: 10px;
    min-height: 124px;
    padding: 12px;
}

.home-brand-card .card-image {
    min-height: 72px;
    border-radius: 8px;
}

.home-brand-card .card-image img {
    max-height: 48px;
    width: auto;
}

.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 biên tập đồng đều */
.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: #102D49;
    font-weight: 700;
    font-size: clamp(23px, 2.5vw, 30px);
    padding-left: 14px;
    border-left: 4px solid #FF861C;
}
.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: 24px; margin: 0;
}
.home-page .section-gap:has(.home-news-featured) > .row:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.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 { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-news-featured__media { display: block; min-width: 0; }
.home-news-featured__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.home-news-featured__meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; color: #64748B; font-size: 13px; }
.home-news-featured__meta span { display: inline-flex; align-items: center; gap: 5px; }
.home-news-featured__meta .fa-calendar-alt { display: none; }
.home-news-featured__body a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #252525; font-size: 18px; font-weight: 600; line-height: 1.45; }
.home-news-featured__body a:hover { color: #004B93; }
.home-news-featured__summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; color: #526071; font-size: 15px; line-height: 1.5; }
.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-block; padding: 5px 0; color: #004B93; font-size: 14px; font-weight: 600; }
.home-news-more::after { content: " →"; }
.home-news-more:hover { color: #004780; text-decoration: underline; }
@media (min-width: 768px) {
    .home-page .section-gap:has(.home-news-featured) > .row > :only-child { grid-column: 1 / -1; }
    .home-page .section-gap:has(.home-news-featured) > .row > :only-child .home-news-featured { display: grid; grid-template-columns: 42% minmax(0,1fr); align-items: center; gap: 24px; }
}
@media (max-width: 767px) {
    .home-page .section-gap:has(.home-news-featured) > .row,
    .home-page .section-gap:has(.home-news-featured) > .row:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .home-news-featured__body a { font-size: 16px; }
    .home-news-featured__summary { font-size: 14px; }
}

.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: #004B93; 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: #004B93; }
.buy-brand-tile.is-active, .buy-brand-tile:has(input:checked) { background: #EAF3FB; border-color: #004B93; }
.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: #004B93; 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: #004B93; }
.buy-value-tile:focus-visible, .buy-brand-tile:focus-within { outline: 2px solid #004B93; outline-offset: 2px; }
.buy-value-tile.is-selected, .buy-value-tile[aria-pressed="true"] { background: #EAF3FB; border-color: #004B93; }
.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: #004B93; 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: #004B93; 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: #FF861C !important; border-color: #FF861C !important; color: #172B40 !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: #004B93; 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: 210px;
    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: uppercase;
    font-weight: 700;
    color: var(--gray-700);
    font-size: 13px;
    height: 42px;
    white-space: nowrap;
}

.header-m1 .header-navigation > ul > li > a::before {
    content: none;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    transform: scaleX(0);
    background: #0a3d91;
    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 { background: #102D49; color: #DAE7F3; padding: 28px 0 0; font-size: 14px; margin: 0; border: 0; }
#footer > .container > .row { display: grid; grid-template-columns: 1fr 1fr 1.5fr; 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: 1 / -1; padding: 12px 30% 24px 0; border-bottom: 1px solid #386186; position: relative; }
#footer > .container > .row > :first-child::after { content: ""; 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='%23FFB66D' 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 { color: #FFFFFF; font-size: 25px; font-weight: 800; font-style: italic; }
#footer .footer-item_text, #footer p, #footer li, #footer .text-muted { color: #DAE7F3; line-height: 1.65; }
#footer .footer-item_title { color: #FFFFFF; font-size: 15px; font-weight: 700; margin-bottom: 12px; display: block; }
#footer .footer-item_title::before { content: none; }
#footer li { margin-bottom: 8px; }
#footer a { color: #DAE7F3; overflow-wrap: anywhere; }
#footer a:hover { color: #FFB66D; }
#footer i { color: #FFB66D; }
#footer .footer-bottom { background: #0C233A; border-top: 1px solid #386186; margin-top: 24px; padding: 14px 0; }
@media (max-width: 767px) {
    #footer > .container > .row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
    #footer > .container > .row > :first-child { padding-right: 0; }
    #footer > .container > .row > :first-child::after { display: 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 var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: calc(54px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-mobile__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--gray-500);
    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: var(--primary-color);
}

#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(4px, 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 #004B93;
        color: #004B93;
        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;
    }

    .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) ===== */
.home-page .section-gap:has(> .home-steps) .title.text-center::after {
    display: none;
}

/* Khối 3 bước: dạng quy trình không khung card, icon nối nhau bằng gạch đứt */
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-step {
    position: relative;
    padding: 8px 12px 0;
    text-align: left;
}

.home-step::after {
    content: "";
    position: absolute;
    top: 40px;
    left: auto;
    right: 0;
    border-top: 1px solid #B9C9D8;
    width: 24px;
}

.home-step:last-child::after {
    display: none;
}

.home-step__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 100px;
    height: 58px;
    margin-bottom: 12px;
    border-radius: 0;
    background: transparent;
    color: #004B93;
    font-size: 34px;
}

.home-step__badge {
    position: absolute;
    top: 0;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #C65A08;
    font-size: 34px;
    font-weight: 700;
    left: 0;
    line-height: 1.5;
}

.home-step__title {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #102D49;
}

.home-step__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-600);
}

/* Khối lợi ích: nền trung tính, màu nhấn ở icon */
.home-page .section-gap:has(> .home-why-grid) {
    background: #004B93;
    padding: clamp(20px, 3vw, 36px);

    border-radius: 12px;
}
.home-page .section-gap:has(> .home-why-grid) .description .title {
    color: #FFFFFF !important;
    border-left-color: #FF861C;
}
.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}
.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%;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.home-why-card__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 44px 44px;
    background-image: var(--why-icon);
    flex-shrink: 0;
}
.home-why-card__icon i { display: none; }
.home-why-card__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}
.home-why-card__desc {
    font-size: 15px;
    line-height: 1.6;
    color: #E2EDF8;
    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%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23FFB66D%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M26%203%208%2025h13l-3%2020%2022-27H26z%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%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23FFB66D%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%208h20l18%2018-17%2017L5%2022z%22%2F%3E%3Ccircle%20cx%3D%2215%22%20cy%3D%2217%22%20r%3D%222.5%22%2F%3E%3Cpath%20d%3D%22m19%2031%2012-12%22%2F%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%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23FFB66D%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M24%204%2041%2011v13c0%2010-8%2017-17%2021C15%2041%207%2034%207%2024V11z%22%2F%3E%3Cpath%20d%3D%22m16%2024%206%206%2011-13%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%2048%2048%22%20fill%3D%22none%22%20stroke%3D%22%23FFB66D%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%2026v-6a17%2017%200%200%201%2034%200v12c0%207-6%2012-13%2012h-5%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%2222%22%20width%3D%2210%22%20height%3D%2215%22%20rx%3D%224%22%2F%3E%3Crect%20x%3D%2234%22%20y%3D%2222%22%20width%3D%2210%22%20height%3D%2215%22%20rx%3D%224%22%2F%3E%3C%2Fsvg%3E");
}

@media (max-width: 991.98px) {
    .home-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .home-why-grid { gap: 10px; }
    .home-why-card { padding: 10px 0; }
    .home-why-card__icon { width: 44px; height: 44px; background-size: 38px 38px; margin-bottom: 10px; }
    .home-why-card__title { font-size: 15px; }
    .home-why-card__desc { font-size: 14px; line-height: 1.55; }
}

/* Khối đánh giá: thông tin người dùng, sao và nội dung */
.home-page .section-gap:has(> .row .home-review-card) {
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.home-page .section-gap:has(> .row .home-review-card) .title.text-center::after,
.home-page .section-gap:has(> .home-faq) .title.text-center::after {
    display: none;
}
.home-page .section-gap > .row:has(.home-review-card) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}
.home-page .section-gap > .row:has(.home-review-card) > div {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.home-review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 16px 8px 0;
    gap: 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-right: 1px solid #DCE4EC;
}
.home-page .section-gap > .row:has(.home-review-card) > div:last-child .home-review-card { border-right: 0; }
.home-review-card__author {
    order: -1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-review-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EAF3FB;
    color: #004B93;
    font-size: 16px;
    font-weight: 600;
    flex: 0 0 auto;
}
.home-review-card__avatar--img { object-fit: cover; }
.home-review-card__name { display: block; font-size: 15px; font-weight: 600; color: #182230; }
.home-review-card__meta { display: block; font-size: 13px; color: #475569; }
.home-review-card__stars { color: #D99013; font-size: 16px; letter-spacing: 1px; }
.home-review-card__stars[aria-label="5/5 sao"]::after {
    content: "5.0";
    margin-left: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
}
.home-review-card__comment {
    margin: 0;
    font-size: 15px;
    font-style: normal;
    line-height: 1.65;
    color: #303846;
    overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
    .home-page .section-gap:has(> .row .home-review-card) { padding: 0; }
    .home-page .section-gap > .row:has(.home-review-card) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .home-review-card { padding: 12px 0; border-right: 0; border-bottom: 1px solid #DCE4EC; }
}

/* FAQ: hai cột desktop, một cột mobile; giữ details/summary gốc */
.home-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0 24px;
    max-width: none;
    margin: 0 auto;
}
.home-faq__item {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    border-bottom: 1px solid #DCE4EC;
}
.home-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 600;
    color: #102D49;
    cursor: pointer;
    list-style: none;
}
.home-faq__question::-webkit-details-marker { display: none; }
.home-faq__question::marker { content: ""; }
.home-faq__question:focus-visible { outline: 2px solid #004B93; outline-offset: -3px; }
.home-faq__arrow { display: none; }
.home-faq__question::after {
    content: "+";
    flex: 0 0 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: #475569;
}
.home-faq__item[open] { background: #F2F5F8; border-color: #B9D5EA; }
.home-faq__item[open] .home-faq__question { color: #004B93; }
.home-faq__item[open] .home-faq__question::after { content: "−"; color: #004B93; }
.home-faq__answer { padding: 0 8px 16px; font-size: 15px; line-height: 1.65; color: #475569; }
@media (max-width: 991.98px) {
    .home-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .home-faq__question { padding: 12px 14px; font-size: 15px; }
    .home-faq__answer { padding: 0 14px 14px; }
}

@media screen and (max-width: 991.98px) {
    .home-steps {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 18px;
    }

    .home-step::after {
        display: none;
    }
}

/* ---------- 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 - BLUE & ORANGE
   GIAI DOAN 01: MAU THUONG HIEU
   ========================================= */



/* END - BLUE & ORANGE */

/* =========================================
   BLUE & ORANGE - HEADER BUTTONS
   ========================================= */

.header-nologin {
    gap: 10px;
}

/* Nut dang ky va dang nhap */
.header-nologin .btn.btn-small {
    border-radius: 6px;
    padding: 0 18px;
    height: 36px;
    min-height: 36px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

/* Nut dang ky */
.header-nologin .btn-register { background: #fff; color: #004B93; border: 1px solid #B9D5EA; }
.header-nologin .btn-register:hover { background: #F3F4F6; color: #004B93; border-color: #004B93; }
.header-nologin .btn-login { background: #004B93; color: #fff; border: 1px solid #004B93; }
.header-nologin .btn-login:hover { background: #004780; color: #fff; border-color: #004780; }

/* END - HEADER BUTTONS */


/* =========================================
   BLUE & ORANGE - WEBSITE BACKGROUND
   ========================================= */

#header-m1 {
    background-color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 75, 147, 0.05);
}

/* 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; }
#excRateTabs {
    gap: 6px;
    border-bottom: none;
}
#excRateTabs .nav-link {
    background: #FFFFFF !important;
    color: #344054 !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .2s, color .2s;

    border-bottom: 2px solid #E4EBF2 !important;
}
#excRateTabs .nav-link .fa-fire,
#excRateTabs .nav-link .fa-fire-alt,
#excRateTabs .nav-link .fa-fire-flame-curved { display: none; }
#excRateTabs .nav-link > .badge { margin-left: 0 !important; }
#excRateTabs .nav-link:hover {
    background: #FFFFFF !important;
    color: #004B93 !important;
    border-color: #DCE0E6 !important;
}
#excRateTabs .nav-link.active {
    background: #EAF3FB !important;
    color: #004B93 !important;
    border-color: transparent !important;

    border-bottom: 2px solid #FF861C !important;
    font-weight: 700;
}
.home-rate-tabs .table-responsive {
    margin-top: 12px;
    border: 1px solid #E2E5EB;
    border-radius: 8px;
    overflow-x: auto;
}
.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 #E2E5EB;
    box-shadow: none;
    color: #252525;
    background: #FFFFFF;
}
.home-rate-tabs .table-module thead th {
    background: #EAF3FB;
    font-weight: 600;

    color: #173D62;
}
.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: #FFF5DE;
    color: #80540A;
}
.home-rate-tabs .table-module tbody tr:nth-child(2) > :first-child {
    background: #EAF3FB;
    color: #004B93;
}
.home-rate-tabs .table-module tbody tr:nth-child(3) > :first-child {
    background: #F3F4F6;
    color: #475569;
}
@media (max-width: 767px) {
    #excRateTabs {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        padding-bottom: 0;
        gap: 6px;
    }
    .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;
    }
    #excRateTabs .nav-item { flex: 0 0 auto; }
    #excRateTabs .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 44px;
        padding: 6px 9px;
        font-size: 13px;
        border-radius: 6px !important;
    }
    .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;
    }
}

/* END - EXCHANGE AND RATE TABS */
/* =========================================
   BLUE & ORANGE - SECTION TITLES
   ========================================= */

/* Mau chu tieu de trang chu */
.home-page .description .title.text-center {
    color: #102D49 !important;
    font-weight: 700;
    text-align: left !important;
    font-size: clamp(23px, 2.5vw, 30px);
    padding-bottom: 0;
    padding-left: 14px;
    border-left: 4px solid #FF861C;
    line-height: 1.3;
}

/* Duong gach chan tieu de */
.home-page .description .title.text-center::after {
    background: #FF861C !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: 2.8 / 1;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.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;
    }

    .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, 2.8);overflow:hidden!important;border-radius:16px!important;background:#f4f2f8!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:#004B93;}
.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:#004B93;}
.dtn-banner-v2 button:focus-visible {outline:2px solid #004B93;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: #004B93;
}

.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: #EAF3FB;
}

.dtn-banner-v2 .dtn-pause::after {
    content: "";
    width: 3px;
    height: 10px;
    border-radius: 2px;
    background: #004B93;
    box-shadow: 5px 0 0 #004B93;
    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 #004B93;
    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, 44vw, 200px) !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: 64px !important;

        display: flex !important;
        align-items: stretch !important;
        justify-content: space-between !important;

        background: #FFFFFF !important;
        border: 1px solid #E9E5F0 !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 24px rgba(30, 20, 60, 0.12) !important;

        padding: 5px !important;
        gap: 2px !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
    }

    .bottom-nav-mobile__item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 54px !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: #64748B !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: #004B93 !important;
        background: #EAF3FB !important;
    }

    .bottom-nav-mobile__item:active {
        background: #EAF3FB !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));
    }
}

/* ===== 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: #004B93;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 75, 147, .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: #004B93;
}

form[action="/tai-khoan/rut-tien"] .form-check-input:checked {
    background-color: #004B93;
    border-color: #004B93;
}

/* Nut rut tien */
form[action="/tai-khoan/rut-tien"] button[type="submit"] {
    width: 100%;
    min-height: 50px;
    background: #FF861C !important;
    border: 1px solid #FF861C !important;
    border-radius: 12px !important;
    color: #172B40 !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: #E87513 !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: #EAF3FB !important;
    color: #173D62 !important;
    font-size: 13px;
    font-weight: 600;
}

/* So tien phi */
.withdraw-fee-table td:last-child {
    color: #004B93 !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 ===== */


