/* ============================================================
   Landing (Trang chủ + Tin tức) — thiết kế Nhiệt Huyết Giang Hồ
   Header/footer dùng chung toàn site; phần landing fixed-width 1920px.
   Giá trị px/hex copy chính xác từ landing-static.html / tin-tuc-static.html.
   ============================================================ */

/* --- reset tối thiểu (landing không nạp Bootstrap) --- */
.landing-page * { box-sizing: border-box; }
.landing-page { margin: 0; font-family: 'Noto Sans SC', sans-serif; }

/* ============================================================
   HEADER (dùng chung cả landing lẫn trang chức năng)
   ============================================================ */
.site-header {
    position: relative;
    z-index: 5;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0 56px;
    background-color: #fff;
    font-family: 'Noto Sans SC', sans-serif;
}
/* trên landing header trong suốt để lộ ảnh hero phía sau */
.landing-scene .site-header { background-color: rgba(255, 255, 255, 0.5); }
.site-logo {
    display: block;
    flex: none;
    align-self: flex-start;
}
.site-logo img {
    display: block;
    height: 96px;
    width: auto;
    margin-top: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
}
.site-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.site-nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(40, 20, 15, 0.15);
}
.site-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(40, 20, 15, 0.3);
    flex: none;
}
.site-nav-label {
    color: #2a1c12;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}
.site-nav-item.active .site-nav-dot { background: #ff4d2e; }
.site-nav-item.active .site-nav-label { color: #ff4d2e; font-weight: 700; }
.site-nav-item:hover .site-nav-label { color: #e0432a; }

.site-account {
    position: relative;
    flex: none;
}
.site-account summary {
    list-style: none;
}
.site-account summary::-webkit-details-marker {
    display: none;
}
.site-account .site-nav-item::after {
    display: none;
}
.site-account.active .site-nav-dot {
    background: #ff4d2e;
}
.site-account.active .site-nav-label {
    color: #ff4d2e;
    font-weight: 700;
}
.site-account-trigger {
    user-select: none;
}
.site-account-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
}
.site-account-caret {
    color: #76685d;
    font-size: 14px;
    transition: transform 160ms ease;
}
.site-account[open] .site-account-caret {
    transform: rotate(180deg);
}
.site-account-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 16px);
    right: 10px;
    width: 280px;
    padding: 10px;
    background: #fffdf9;
    border: 1px solid #eadfce;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(42, 28, 18, 0.18);
}
.site-account-menu::before {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 100%;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #fff;
    border-left: 7px solid transparent;
}
.site-account-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: #fff4e6;
    border: 1px solid #ead6c0;
    border-radius: 6px;
}
.site-account-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17847e;
    background: #fff;
    border: 1px solid rgba(23, 132, 126, 0.25);
    border-radius: 50%;
}
.site-account-avatar i {
    font-size: 27px;
}
.site-account-info-body {
    min-width: 0;
    flex: 1;
    text-align: right;
}
.site-account-info-name {
    overflow-wrap: anywhere;
    color: #2a1c12;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}
.site-account-info-balance {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 6px;
    color: #e0432a;
    font-size: 14px;
    font-weight: 700;
}
.site-account-info-balance i {
    flex: none;
    color: #d89a27;
    font-size: 17px;
}
.site-account-info-balance strong {
    color: #e0432a;
    font-size: 16px;
    font-weight: 800;
}
.site-account-game {
    margin: 10px 0;
    min-height: 46px !important;
    color: #fff !important;
    background: #e8432c;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 800;
    justify-content: center;
}
.site-account-game:hover,
.site-account-game:focus {
    color: #fff !important;
    background: #cd3823 !important;
}
.site-account-game i {
    color: #fff !important;
}
.site-account-links {
    display: grid;
    gap: 4px;
}
.site-account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    color: #2a1c12;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
}
.site-account-menu a:hover,
.site-account-menu a:focus {
    color: #e0432a;
    background: #f5f2ed;
}
.site-account-menu i {
    flex: none;
    color: #17847e;
    font-size: 18px;
}

/* ============================================================
   FOOTER (dùng chung)
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 26px 56px;
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'Noto Sans SC', sans-serif;
}
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.site-footer-brand span {
    font-size: 18px;
    font-weight: 800;
    color: #e0432a;
    letter-spacing: 1px;
}
.site-footer-sep {
    width: 1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.1);
}
.site-footer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================
   KHUNG LANDING fixed 1920px
   ============================================================ */
.landing-wrap {
    width: 100%;
    min-width: 1144px;
    margin: 0 auto;
    background: #1a0503;
    position: relative;
    overflow: hidden;
}
.landing-scene {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 1920px auto;
    background-color: #f0f2f1;
}

/* ============================================================
   TRANG CHỦ — hero + download bar
   ============================================================ */
.hero-home {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 700px;
}
.dl-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 535px;
    width: 806px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.dl-qr {
    width: 126px;
    height: 126px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.dl-qr img { display: block; width: 106px; height: 106px; }
.dl-stores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex: none;
}
.dl-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 172px;
    height: 59px;
    border-radius: 7px;
    padding: 0 12px;
    text-decoration: none;
    color: #fff;
}
.dl-btn-ios { background: #111; }
.dl-btn-android { background: #2b8a3e; }
.dl-btn-icon { font-size: 22px; line-height: 1; }
.dl-btn-text { display: flex; flex-direction: column; line-height: 1.1; }
.dl-btn-text small { font-size: 9px; color: rgba(255, 255, 255, 0.72); }
.dl-btn-text strong { font-size: 15px; font-weight: 700; }
.dl-tile {
    width: 104px;
    height: 126px;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    flex: none;
    text-decoration: none;
    text-align: center;
}
.dl-tile-pc {
    background: linear-gradient(180deg, #e8875a, #c85a2e);
    color: #fff;
}
.dl-tile-pc .dl-tile-icon { font-size: 22px; }
.dl-tile-pc .dl-tile-label { font-size: 12px; font-weight: 700; line-height: 1.25; }
.dl-tile-gift {
    background: linear-gradient(180deg, #ffcf5c, #e08a1e);
}
.dl-tile-gift .dl-tile-label { font-size: 15px; font-weight: 900; color: #7a2a08; }

/* ============================================================
   TRANG CHỦ — khối tin tức
   ============================================================ */
.home-news {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 16px;
    width: 1000px;
    margin: 0 auto;
    padding: 24px 0 40px;
}
.home-news-feature {
    flex: none;
    width: 500px;
    min-height: 260px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 24px rgba(60, 30, 10, 0.18);
    background: #d8d2c4;
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
}
.home-news-feature img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-news-card {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    padding: 20px 16px;
    box-shadow: 0 6px 24px rgba(60, 30, 10, 0.12);
}
/* news tabs — cấu trúc ym-tabs (jQuery ym.tabs.js) của website gốc */
.home-news-card .tab-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 34px 16px 0;
    list-style: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}
.home-news-card .tab-indicator li { cursor: pointer; }
.home-news-card .tab-indicator li a {
    display: block;
    padding: 8px 4px;
    color: rgba(30, 20, 15, 0.6);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.home-news-card .tab-indicator li.active a {
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    background: #2ec4b6;
    color: #fff;
    font-weight: 700;
}
.home-news-card .tab-indicator li.active a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #2ec4b6;
}
.home-news-more {
    position: absolute;
    top: 26px;
    right: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2ec4b6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    z-index: 2;
}
.home-news-card .tabs { position: relative; margin-top: 4px; }
.home-news-card .tab-item { width: 100%; height: 220px; overflow: hidden; display: none; }
.home-news-card .tabs > .tab-item:first-child { display: block; }
.home-news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.home-news-row-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    overflow: hidden;
}
.home-news-tag { flex: none; font-size: 14px; font-weight: 700; }
.home-news-title {
    font-size: 14px;
    color: #2a1c12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-news-date {
    flex: none;
    font-size: 14px;
    color: rgba(30, 20, 15, 0.4);
    margin-left: 20px;
}

/* ============================================================
   TRANG CHỦ — banner sự kiện
   ============================================================ */
.home-promo {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 15px;
    width: 1000px;
    margin: 0 auto;
    padding: 0 0 56px;
}
.home-promo-item {
    flex: 1;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    display: block;
    background: #2a1c12;
    padding: 0;
    border: 0;
    cursor: pointer;
}
.home-promo-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-news-feature:hover,
.home-news-feature:focus,
.home-promo-item:hover,
.home-promo-item:focus {
    transform: none;
    filter: none;
}

.home-banner-lightbox {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 36px;
    opacity: 0;
    transition: opacity 200ms ease;
}
.home-banner-lightbox[hidden] { display: none; }
.home-banner-lightbox.is-open { opacity: 1; }
.home-banner-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
}
.home-banner-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(1200px, 100%);
    max-height: 100%;
    transform: scale(.96);
    transition: transform 200ms ease;
}
.home-banner-lightbox.is-open .home-banner-lightbox-dialog { transform: scale(1); }
.home-banner-lightbox-dialog img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 72px);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
}
.home-banner-lightbox-close {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #e0432a;
    color: #fff;
    font-size: 24px;
    line-height: 28px;
    cursor: pointer;
}
.home-banner-lightbox-close:hover,
.home-banner-lightbox-close:focus { background: #c23a22; }
.landing-page.home-banner-lightbox-open { overflow: hidden; }

/* ============================================================
   TRANG CHỦ — giới thiệu nghề
   Port từ website gốc: index_bg03 + zytab2 + slide nghề.
   ============================================================ */
.home-role {
    position: relative;
    z-index: 3;
    width: 100%;
    min-width: 1144px;
    height: 540px;
    background: url('../images/home-role-bg.jpg') no-repeat 50% 0;
}
.home-role-main {
    position: relative;
    width: 1000px;
    height: 540px;
    margin: 0 auto;
}
.home-role-slider {
    width: 100%;
    height: 100%;
}
.home-role-tabs {
    position: relative;
    float: left;
    width: 162px;
    height: 459px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    background: url('../images/home-role-tabs.png') no-repeat;
}
.home-role-tabs li {
    position: absolute;
    width: 88px;
    height: 88px;
}
.home-role-tabs li button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
    border: 0;
    background: transparent;
}
.home-role-tabs li.a01 { top: 128px; left: 74px; }
.home-role-tabs li.a02 { top: 209px; left: 74px; }
.home-role-tabs li.a03 { top: 290px; left: 74px; }
.home-role-tabs li.a04 { top: 372px; left: 74px; }
.home-role-tabs li.a06 { top: 244px; left: 0; }
.home-role-tabs li.a07 { top: 163px; left: 0; }
.home-role-tabs li.a08 { top: 82px; left: 0; }
.home-role-tabs li.a09 { top: -1px; left: 0; }
.home-role-tabs li.a01.active {
    background: url('../images/home-role-tab-daoke.png') no-repeat;
}
.home-role-tabs li.a02.active {
    background: url('../images/home-role-tab-jianshi.png') no-repeat;
}
.home-role-tabs li.a03.active {
    background: url('../images/home-role-tab-qiangke.png') no-repeat;
}
.home-role-tabs li.a04.active {
    background: url('../images/home-role-tab-yishi.png') no-repeat;
}
.home-role-tabs li.a06.active {
    background: url('../images/home-role-tab-gongshou.png') no-repeat;
}
.home-role-tabs li.a07.active {
    background: url('../images/home-role-tab-fushi.png') no-repeat;
}
.home-role-tabs li.a08.active {
    background: url('../images/home-role-tab-quanshi.png') no-repeat;
}
.home-role-tabs li.a09.active {
    background: url('../images/home-role-tab-yanshi.png') no-repeat;
}
.home-role-slides {
    position: relative;
    float: left;
    height: 100%;
    margin-left: 100px;
}
.home-role-slide {
    position: absolute;
    left: 0;
    bottom: 0;
    display: none;
}
.home-role-slide.active {
    display: block;
}
.home-role-slide.slide01 {
    top: -55px;
    bottom: auto;
}
.home-role-slide img {
    display: block;
}

/* ============================================================
   TRANG TIN TỨC
   ============================================================ */
.news-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 683px;
}
.news-body {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 150px;
    background: linear-gradient(to bottom, transparent 0, transparent 152px, #fff 152px, #fff 100%);
}
.news-body-col {
    display: flex;
    align-items: flex-start;
    width: 1000px;
    margin: -152px auto 0;
}
.news-sidebar {
    flex: none;
    width: 199px;
    height: 511px;
    box-sizing: content-box;
    background-repeat: no-repeat;
    background-position: top center;
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.news-sidebar-qr {
    box-sizing: content-box;
    width: 150px;
    height: 150px;
    background: transparent;
    border: 1px solid #3ab0b0;
    border-radius: 3px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-sidebar-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}
.news-sidebar-qr.sm {
    box-sizing: border-box;
    width: 156px;
    height: 154px;
    padding: 2px 3px;
    background: #82b1b3;
    border: 0;
    border-radius: 0 0 3px 3px;
    box-shadow: none;
}
.news-sidebar-caption {
    color: #fff;
    width: 100%;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
    text-align: center;
    background: url('../images/smtxt.png') no-repeat 50% 50%;
}
.news-store-btn {
    display: block;
    width: 170px;
    height: 50px;
    margin: 8px auto 0;
    overflow: hidden;
    background-image: url('../images/download.png');
    background-repeat: no-repeat;
    text-decoration: none;
}
.news-store-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.news-store-ios { background-position: 0 0; }
.news-store-ios:hover { background-position: -171px 0; }
.news-store-android { margin-top: 5px; background-position: 0 -54px; }
.news-store-android:hover { background-position: -171px -54px; }
.news-sidebar-divider {
    width: 100%;
    height: 2px;
    overflow: hidden;
    margin: 12px 0;
    background: url('../images/line.png') no-repeat;
}
.news-sidebar-follow {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 156px;
    height: 26px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 12px;
}
.news-content {
    position: relative;
    flex: none;
    width: 801px;
    min-height: 664px;
    padding: 0 0 76px;
    background-color: #fff;
}
.news-content-head {
    width: 733px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 0 10px;
    border-bottom: 1px solid #999999;
}
.news-content-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    color: #333;
    letter-spacing: 2px;
}
.news-breadcrumb { font-size: 12px; color: #999; line-height: 22px; }
.news-breadcrumb a { color: inherit; text-decoration: none; }
.news-breadcrumb a:hover,
.news-breadcrumb a:focus { color: #ff6633; text-decoration: underline; }
.news-breadcrumb b { color: #ff6633; font-weight: 400; }
.news-tabs {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 733px;
    height: 58px;
    margin: 34px auto 0;
}
.news-tab {
    position: relative;
    box-sizing: content-box;
    flex: none;
    width: 146px;
    height: 42px;
    margin-right: -1px;
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    line-height: 42px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #2fbdbd;
}
.news-tab.active {
    height: 58px;
    border: 0;
    background: url('../images/subnews.png') no-repeat 50% 0;
    color: #fff;
    font-weight: 400;
    z-index: 1;
}
.news-list {
    display: flex;
    flex-direction: column;
    width: 733px;
    margin: 10px auto 0;
    overflow: hidden;
}
.news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 77px;
    padding: 29px 0 23px;
    border-bottom: 1px dotted #d4d4d4;
    color: #333;
    text-decoration: none;
    overflow: hidden;
}
.news-row-main {
    display: flex;
    align-items: center;
    width: 625px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.news-pill {
    flex: none;
    box-sizing: border-box;
    font-size: 13px;
    font-style: normal;
    line-height: 24px;
    color: #fff;
    background: #2fbdbd;
    border-radius: 5px;
    width: auto;
    min-width: 54px;
    height: 24px;
    margin-right: 14px;
    padding: 0 8px;
    text-align: center;
    white-space: nowrap;
}
.news-row-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-row-date {
    flex: none;
    font-size: 13px;
    line-height: 24px;
    color: #333;
    margin-left: 20px;
}
.news-row:hover .news-row-title { color: #2fbdbd; }
.news-empty {
    padding: 48px 4px;
    text-align: center;
    color: rgba(30, 20, 15, 0.45);
    font-size: 16px;
}
.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 70px;
}
.news-page {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #bdbdbd;
    background: #fff;
    color: #666;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.news-page:hover { background: #ff6633; color: #fff; border-color: #cc6644; }
.news-page.active { background: #ff6633; color: #fff; font-weight: 700; border-color: #cc6644; }
.news-page.dots { border: none; background: transparent; pointer-events: none; }
.news-page.disabled {
    color: #aaa;
    cursor: default;
}
.news-page-summary {
    align-self: center;
    margin-left: 8px;
    color: #666;
    font-size: 13px;
    line-height: 30px;
    white-space: nowrap;
}
.news-desktop-top {
    position: absolute;
    right: -68px;
    bottom: 76px;
    width: 41px;
    height: 41px;
    background: url('../images/newstop.png') center / 41px 41px no-repeat;
}

/* ---- bài viết chi tiết, theo khung details của website gốc ---- */
.news-detail {
    width: 733px;
    margin: 35px auto 0;
}
.news-detail-title {
    margin: 0;
    color: #111;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}
.news-detail-time {
    margin-top: 15px;
    color: #056769;
    font-size: 13px;
    line-height: 1;
    text-align: center;
}
.news-detail-body {
    margin-top: 35px;
    color: #111;
    font-size: 13px;
    line-height: 24px;
    overflow-wrap: anywhere;
}
.news-detail-body p {
    margin: 0 0 15px;
}
.news-detail-body a {
    color: #111;
}
.news-detail-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}
.news-detail-body .article-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 15px 0;
    border: 0;
}

/* ============================================================
   TRANG TẢI GAME — dùng cùng khung Tin tức / Tin chi tiết
   ============================================================ */
.game-download-page {
    width: 733px;
    margin: 18px auto 0;
    color: #2a1c12;
}
.game-download-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 2px 8px;
    border-bottom: 1px solid #e5e1d8;
    text-align: left;
}
.game-download-icon {
    display: block;
    flex: none;
    width: 120px;
    height: 120px;
    border-radius: 18px;
    object-fit: cover;
}
.game-download-header h1 {
    margin: 0;
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}
.game-download-header p {
    max-width: 560px;
    margin: 0;
    color: #75695f;
    font-size: 20px;
    line-height: 1.55;
}
.game-download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 0;
    margin-top: 5px;
}
.game-download-card {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 2px 0;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    gap: 7px;
    align-items: center;
    border: 0;
    background: transparent;
    color: #2a1c12;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.game-download-card:hover,
.game-download-card:focus-visible {
    background: #f6fbfa;
    color: #2a1c12;
    box-shadow: none;
}
.game-download-card:focus-visible {
    outline: 2px solid #078b87;
    outline-offset: 2px;
}
.game-download-platform {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: #fff;
}
.game-download-platform img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.game-download-desktop {
    display: block;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #0078d4;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.game-download-card.support {
    background: transparent;
}
.game-download-card.support:hover,
.game-download-card.support:focus-visible { background: #f6fbfa; }
.game-download-copy { min-width: 0; text-align: center; }
.game-download-copy strong {
    display: block;
    color: #2a1c12;
    font-size: 15px;
    line-height: 1.3;
}
.game-download-copy small {
    display: block;
    margin-top: 3px;
    color: #75695f;
    font-size: 11px;
    line-height: 1.35;
}
.game-download-arrow {
    justify-self: center;
    color: #078b87;
    line-height: 0;
}
.game-download-arrow svg {
    display: block;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.game-download-empty {
    margin-top: 28px;
    padding: 22px;
    background: #f7f6f3;
    color: #75695f;
    font-size: 14px;
    text-align: center;
}
.game-download-visual {
    margin: 6px 0 0;
    overflow: hidden;
    background: #f7f6f3;
}
.game-download-visual img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}
.game-download-content {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #e5e1d8;
    color: #3e3e3e;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.game-download-content p { margin: 0 0 14px; }
.game-download-content img { display: block; max-width: 100%; height: auto; margin: 14px auto; }
.game-download-content a { color: #078b87; }
.game-browser-modal[hidden] { display: none; }
.game-browser-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    padding: 16px;
    place-items: center;
}
.game-browser-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.game-browser-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 26px;
    overflow-y: auto;
    border: 2px solid #ffd700;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-browser-modal.is-open .game-browser-modal-backdrop,
.game-browser-modal.is-open .game-browser-modal-dialog { opacity: 1; }
.game-browser-modal.is-open .game-browser-modal-dialog { transform: none; }
.game-browser-modal-dialog > img {
    display: block;
    width: auto;
    max-width: min(280px, 100%);
    max-height: 210px;
    margin: 0 auto 18px;
    object-fit: contain;
}
.game-browser-modal-dialog h2 {
    margin: 0 34px 14px;
    color: #ffd700;
    font-size: 26px;
    line-height: 1.25;
}
.game-browser-modal-dialog > p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.65;
}
.game-browser-modal-note {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background: rgba(255, 215, 0, 0.1);
    color: #f4efe1;
    font-size: 14px;
    line-height: 1.6;
}
.game-browser-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.game-browser-modal-confirm {
    min-width: 150px;
    min-height: 46px;
    margin-top: 20px;
    padding: 10px 24px;
    border: 1px solid #ffd700;
    border-radius: 4px;
    background: #ffd700;
    color: #211800;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.game-browser-modal-close:focus-visible,
.game-browser-modal-confirm:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.game-browser-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .game-download-card,
    .game-browser-modal-backdrop,
    .game-browser-modal-dialog { transition: none; }
}

/* ============================================================
   TRANG CHỨC NĂNG (subpage) — khung tin tức + nội dung light
   Khung/sidebar dùng class riêng (không đụng Bootstrap).
   ============================================================ */
.subpage-page { margin: 0; font-family: 'Noto Sans SC', sans-serif; }

.subpage-hero {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 683px;
}
.subpage-body {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 150px;
    background: linear-gradient(to bottom, transparent 0, transparent 152px, #fff 152px, #fff 100%);
}
.subpage-col {
    display: flex;
    align-items: flex-start;
    width: 1000px;
    margin: -152px auto 0;
}
.subpage-col.no-sidebar { width: 1000px; }
.subpage-col.no-sidebar .subpage-content { width: 1000px; }
.subpage-col.no-sidebar .subpage-content .container,
.subpage-col.no-sidebar .subpage-content .container-fluid {
    width: 900px;
}

/* ---- sidebar menu điều hướng ---- */
.side-menu {
    flex: none;
    align-self: flex-start;
    width: 199px;
    height: 531px;
    box-sizing: border-box;
    padding: 20px 0 0;
    background-color: #1a7d78;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 199px 531px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}
.side-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 20px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transition: color .2s ease, background-color .2s ease;
}
.side-menu-item:first-child { border-top: 0; }
.side-menu-item i { flex: 0 0 18px; width: 18px; font-size: 18px; text-align: center; }
.side-menu-item:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.side-menu-item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    outline: 2px solid #fff;
    outline-offset: -3px;
}
.side-menu-item.active {
    background: #fff;
    color: #17847e;
    font-weight: 700;
}
.side-menu-item.active:hover,
.side-menu-item.active:focus-visible {
    background: #f3fbfa;
    color: #126d68;
}
/* ---- khối nội dung trắng (bọc view Bootstrap, re-skin light) ---- */
.subpage-content {
    position: relative;
    flex: none;
    width: 801px;
    min-height: 664px;
    min-width: 0;
    background: #fff;
    border-radius: 0;
    padding: 0 0 76px;
    box-shadow: none;
    /* override biến dark của app.css sang light trong phạm vi này */
    --bg: #f0f2f1;
    --surface: #ffffff;
    --surface-2: #f2f0ec;
    --line: #e5e1d8;
    --text: #2a1c12;
    --muted: #6b5d4f;
    --gold: #e0432a;
    color: #2a1c12;
}
/* Bootstrap container bên trong panel: bỏ giới hạn/đệm ngang để khớp panel */
.subpage-content .container,
.subpage-content .container-fluid {
    max-width: none;
    width: 733px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    margin-inline: auto;
}
.feature-content-head {
    width: 733px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 0 10px;
    border-bottom: 1px solid #999;
}
.feature-content-title {
    color: #333;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 2px;
}
.feature-content-main {
    min-width: 0;
}
.subpage-content .email-verify-notice {
    display: grid !important;
    width: 733px;
    max-width: 100%;
    margin: 2px auto 16px;
    padding: 12px 14px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px !important;
    align-items: center;
}
.subpage-content .email-verify-notice > i { color: #b77a13; }
.subpage-content .email-verify-notice .btn-warning { white-space: nowrap; }
.subpage-content .email-verify-notice .btn-close { margin: 0; }
/* các màu hardcode dark trong app.css cần lật sáng ở phạm vi này */
.subpage-content .form-control,
.subpage-content .form-select,
.subpage-content .form-check-input {
    background-color: #fff;
    border-color: #d9d4ca;
    color: #2a1c12;
}
.subpage-content .form-control:focus,
.subpage-content .form-select:focus {
    background-color: #fff;
    color: #2a1c12;
    border-color: #2ec4b6;
    box-shadow: 0 0 0 0.2rem rgba(46, 196, 182, 0.2);
}
.subpage-content .form-control::placeholder { color: rgba(30, 20, 15, 0.4); }
.subpage-content .nav-link { color: #2a1c12; }
.subpage-content a:hover { color: #c23a22; }
.subpage-content .btn-primary {
    background: #e0432a;
    border-color: #e0432a;
    color: #fff;
}
.subpage-content .btn-primary:hover,
.subpage-content .btn-primary:focus {
    background: #c23a22;
    border-color: #c23a22;
    color: #fff;
}
.subpage-content .card-hover:hover,
.subpage-content .card-hover:focus-within {
    border-color: rgba(46, 196, 182, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.2), 0 18px 42px rgba(46, 196, 182, 0.08);
}

/* ---- bề mặt chức năng đồng bộ với panel Tin tức ---- */
.subpage-content .container.py-4,
.subpage-content .container.py-5 {
    padding-top: 28px !important;
    padding-bottom: 48px !important;
}
.subpage-content .card {
    border: 1px solid #e5e1d8;
    border-radius: 6px !important;
    background: #fff;
    box-shadow: 0 8px 22px rgba(42, 28, 18, 0.06);
}
.subpage-content .card-header,
.subpage-content .card-footer {
    border-color: #e5e1d8;
    background: #faf9f6;
}
.subpage-content .table {
    --bs-table-bg: transparent;
    --bs-table-color: #2a1c12;
    --bs-table-hover-bg: #f7fbfa;
    color: #2a1c12;
}
.subpage-content .table > :not(caption) > * > * {
    border-color: #e5e1d8;
}
.subpage-content .table thead th {
    color: #4f3d35;
    background: #faf9f6;
    font-weight: 700;
}
.subpage-content .btn-outline-light {
    border-color: #d9d4ca;
    color: #4f3d35;
    background: #fff;
}
.subpage-content .btn-outline-light:hover,
.subpage-content .btn-outline-light:focus {
    border-color: #2fbdbd;
    color: #17847e;
    background: #f2f8f7;
}
.subpage-content .alert {
    border-radius: 6px;
}
.subpage-content .alert-info {
    --bs-alert-bg: #eef9f8;
    --bs-alert-border-color: #77c9c4;
    --bs-alert-color: #165e5a;
}
.subpage-content .alert-warning {
    --bs-alert-bg: #fff8e9;
    --bs-alert-border-color: #e0b55d;
    --bs-alert-color: #76551c;
}
.subpage-content .alert-success {
    --bs-alert-bg: #edf9f1;
    --bs-alert-border-color: #62bb86;
    --bs-alert-color: #175c35;
}
.subpage-content .alert-danger {
    --bs-alert-bg: #fff0ed;
    --bs-alert-border-color: #ef8a79;
    --bs-alert-color: #8a2d22;
}

/* ---- Lịch sử nạp / đổi xu: cùng nhịp danh sách với trang tin tức ---- */
.history-page {
    width: 733px;
    margin: 0 auto;
    color: #333;
    background: #fff;
}

/* ---- Nạp xu Banking: bề mặt phẳng, đồng bộ nhịp Tin tức ---- */
.subpage-content .topup-page {
    width: 733px;
    margin: 0 auto;
    padding: 28px 0 48px;
    color: #2a1c12;
}
.topup-page button,
.topup-page a { -webkit-tap-highlight-color: transparent; }
.topup-promo {
    position: relative;
    display: flex;
    min-height: 74px;
    margin-bottom: 18px;
    padding: 14px 22px 14px 76px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cfe8e5;
    background: linear-gradient(105deg, #eef9f8 0%, #fffaf3 100%);
}
.topup-promo::after {
    position: absolute;
    right: -28px;
    bottom: -52px;
    width: 134px;
    height: 134px;
    border: 1px solid rgba(7, 139, 135, .13);
    border-radius: 50%;
    content: "";
}
.topup-promo > img { position: absolute; left: 22px; width: 38px; height: 38px; object-fit: contain; }
.topup-promo div { position: relative; z-index: 1; }
.topup-promo span,
.topup-promo strong { display: block; }
.topup-promo span { margin-bottom: 2px; color: #078b87; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.topup-promo strong { color: #2a1c12; font-size: 18px; line-height: 1.35; }
.topup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.topup-primary { display: grid; gap: 18px; min-width: 0; }
.topup-section,
.topup-qr-panel {
    border: 1px solid #e2dcd4;
    background: #fff;
}
.topup-section { padding: 22px; }
.topup-section-head,
.topup-qr-head { display: flex; gap: 12px; align-items: flex-start; }
.topup-section-head { margin-bottom: 18px; }
.topup-step {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    background: #078b87;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}
.topup-section-head h2,
.topup-qr-head h2,
.topup-block-title h2 { margin: 0; color: #2a1c12; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.topup-section-head h2,
.topup-qr-head h2 { font-size: 17px; line-height: 1.35; }
.topup-section-head p,
.topup-qr-head p { margin: 3px 0 0; color: #75695f; font-size: 12px; line-height: 1.45; }
.topup-bank-list { margin: 0; }
.topup-bank-list > div { display: grid; min-height: 50px; padding: 10px 0; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: center; border-bottom: 1px dashed #ddd6ce; }
.topup-bank-list > div:first-child { border-top: 1px dashed #ddd6ce; }
.topup-bank-list dt { color: #75695f; font-size: 12px; font-weight: 500; }
.topup-bank-list dd { display: flex; min-width: 0; margin: 0; gap: 8px; align-items: center; justify-content: flex-end; text-align: right; }
.topup-bank-list dd strong { overflow-wrap: anywhere; color: #2a1c12; font-size: 15px; }
.topup-bank-mark { display: inline-grid; min-width: 37px; height: 25px; padding: 0 5px; place-items: center; background: #e9f6f4; color: #087d77; font-size: 10px; font-weight: 900; }
.topup-transfer-code { color: #d7462e !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.topup-copy {
    display: inline-flex;
    flex: none;
    min-height: 34px;
    padding: 6px 9px;
    gap: 5px;
    align-items: center;
    border: 1px solid #d5cec5;
    background: #fff;
    color: #5e5147;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.topup-copy:hover,
.topup-copy:focus-visible { border-color: #078b87; background: #eff9f8; color: #006d69; }
.topup-note { display: flex; margin-top: 14px; padding: 11px 12px; gap: 9px; border-left: 3px solid #078b87; background: #eff9f8; color: #315d59; }
.topup-note i { flex: none; margin-top: 1px; color: #078b87; font-size: 19px; }
.topup-note p { margin: 0; font-size: 12px; line-height: 1.55; }
.topup-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.topup-package {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 94px;
    padding: 13px 42px 11px 12px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #ded7cf;
    background: #fff;
    color: #2a1c12;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.topup-package:hover,
.topup-package:focus-visible { border-color: #69bbb6; background: #f8fcfb; }
.topup-package.active { border-color: #078b87; background: #eff9f8; box-shadow: inset 0 0 0 1px #078b87; }
.topup-package-price { color: #2a1c12; font-size: 15px; font-weight: 800; line-height: 1.25; }
.topup-package-value { margin-top: 4px; color: #75695f; font-size: 11px; }
.topup-package-value b { color: #d7462e; font-size: 13px; }
.topup-package-bonus { margin-top: 2px; color: #078b87; font-size: 10px; font-weight: 700; }
.topup-package img { position: absolute; right: 6px; bottom: 7px; width: 39px; height: 39px; object-fit: contain; }
.topup-package-custom > i { position: absolute; right: 14px; top: 16px; color: #078b87; font-size: 22px; }
.topup-custom-field { margin-top: 12px; }
.topup-custom-field label { display: block; margin-bottom: 6px; color: #62564c; font-size: 12px; font-weight: 700; }
.topup-input-wrap { position: relative; }
.topup-input-wrap input { width: 100%; height: 44px; padding: 9px 42px 9px 12px; border: 1px solid #d6cec5; outline: 0; color: #2a1c12; font-size: 16px; }
.topup-input-wrap input:focus { border-color: #078b87; box-shadow: 0 0 0 3px rgba(7, 139, 135, .13); }
.topup-input-wrap span { position: absolute; top: 50%; right: 14px; color: #75695f; transform: translateY(-50%); }
.topup-custom-field small { display: block; margin-top: 5px; color: #8a7d72; font-size: 10px; }
.topup-receive { display: grid; margin-top: 14px; padding: 13px; grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 7px; align-items: center; background: #faf8f5; }
.topup-receive > div { min-width: 0; text-align: center; }
.topup-receive span,
.topup-receive strong { display: block; }
.topup-receive div > span { color: #75695f; font-size: 10px; }
.topup-receive div > strong { margin-top: 3px; color: #2a1c12; font-size: 12px; white-space: nowrap; }
.topup-receive-plus,
.topup-receive-equals { color: #9d9288; font-size: 15px; }
.topup-receive-total { padding: 8px 5px; background: #078b87; }
.topup-receive-total span,
.topup-receive-total strong { color: #fff !important; }
.topup-qr-panel { position: sticky; top: 18px; padding: 18px; }
.topup-qr-head { margin-bottom: 15px; }
.topup-qr-frame { position: relative; padding: 8px; border: 1px solid #d9d3cb; background: #fff; }
.topup-qr-frame::before,
.topup-qr-frame::after { position: absolute; width: 24px; height: 24px; border-color: #078b87; content: ""; pointer-events: none; }
.topup-qr-frame::before { top: -1px; left: -1px; border-top: 3px solid #078b87; border-left: 3px solid #078b87; }
.topup-qr-frame::after { right: -1px; bottom: -1px; border-right: 3px solid #078b87; border-bottom: 3px solid #078b87; }
.topup-qr-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.topup-qr-summary { display: flex; margin-top: 12px; padding: 11px 0; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2dcd4; }
.topup-qr-summary span { color: #75695f; font-size: 11px; }
.topup-qr-summary strong { color: #d7462e; font-size: 17px; }
.topup-qr-caption { display: flex; margin: 11px 0 0; gap: 6px; color: #75695f; font-size: 10px; line-height: 1.5; }
.topup-qr-caption i { flex: none; color: #078b87; font-size: 15px; }
.topup-aftercare { display: grid; margin-top: 18px; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.topup-guides,
.topup-support { padding: 20px; border-top: 3px solid #078b87; background: #f8f7f4; }
.topup-block-title { margin-bottom: 14px; }
.topup-block-title > span { display: block; margin-bottom: 3px; color: #078b87; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topup-block-title h2 { font-size: 16px; line-height: 1.4; }
.topup-guide-grid { display: grid; gap: 8px; }
.topup-guide { display: grid; min-height: 68px; padding: 10px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #e0d9d1; background: #fff; color: #2a1c12 !important; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.topup-guide:hover,
.topup-guide:focus-visible { border-color: #69bbb6; background: #f1faf9; }
.topup-guide-icon { display: grid; width: 38px; height: 38px; place-items: center; background: #eaf7f6; color: #078b87; font-size: 20px; }
.topup-guide b,
.topup-guide small { display: block; }
.topup-guide b { color: #2a1c12; font-size: 12px; }
.topup-guide small { margin-top: 2px; color: #75695f; font-size: 10px; line-height: 1.35; }
.topup-guide > i { color: #078b87; }
.topup-support-list { display: grid; gap: 8px; }
.topup-support-list a { display: grid; min-height: 55px; padding: 8px 10px; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid #ddd6ce; color: #2a1c12 !important; text-decoration: none; }
.topup-support-list a:hover,
.topup-support-list a:focus-visible { background: #fff; }
.topup-support-list a > i:first-child { color: #078b87; font-size: 22px; }
.topup-support-list a > i:last-child { color: #9b9086; }
.topup-support-list b,
.topup-support-list small { display: block; }
.topup-support-list b { font-size: 12px; }
.topup-support-list small { color: #75695f; font-size: 10px; }
.topup-account-warning { display: flex; min-height: 96px; padding: 20px; gap: 14px; align-items: center; border: 1px solid #e4bd6c; background: #fff8e9; color: #76551c; }
.topup-account-warning > i { flex: none; font-size: 28px; }
.topup-account-warning strong,
.topup-account-warning span { display: block; }
.topup-account-warning span { margin-top: 3px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .topup-package,
    .topup-copy,
    .topup-guide { transition: none; }
}
.history-search {
    margin: 0 0 26px;
    padding: 0 0 22px;
    border-bottom: 1px solid #e3ddd6;
}
.history-search-grid {
    display: grid;
    grid-template-columns: minmax(210px, 2fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
    gap: 12px;
    align-items: end;
}
.history-search .form-label {
    margin-bottom: 6px;
    color: #6b5d4f;
    font-size: 13px;
    font-weight: 600;
}
.history-search .form-control {
    min-height: 42px;
    border-radius: 0;
    font-size: 14px;
}
.history-search-actions {
    display: flex;
    gap: 7px;
}
.history-search-actions .btn {
    min-height: 42px;
    border-radius: 0;
    white-space: nowrap;
}
.history-desktop-list { width: 100%; }
.history-list-head,
.history-list-row {
    display: grid;
    align-items: center;
    column-gap: 12px;
}
.history-list-head {
    min-height: 34px;
    color: #5d5149;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.history-list-row {
    min-height: 50px;
    padding: 6px 0;
    border-bottom: 1px dotted #d4d4d4;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
}
.history-topup-grid { grid-template-columns: .9fr 1.15fr .8fr 1fr 1.25fr; }
.history-exchange-grid { grid-template-columns: .95fr 1fr .65fr 1.8fr 1.05fr; }
.history-list-row > span,
.history-list-row > strong,
.history-list-row > time {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.history-code,
.history-role { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.history-exchange-grid .history-package {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.history-amount { color: #e9402b; font-weight: 700; }
.history-list-row .badge-status {
    display: inline-flex;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
}
.history-list-row .badge-status-success {
    color: #17623f !important;
}
.history-list-row .badge-status-success i { color: #17623f !important; }
.history-list-row .badge-status-warning {
    color: #805500;
}
.history-list-row .badge-status-danger {
    color: #84271e;
}
.history-list-row .badge-status-secondary {
    color: #5c5148;
}
.history-empty {
    display: grid;
    min-height: 210px;
    place-content: center;
    justify-items: center;
    color: rgba(30, 20, 15, .48);
    text-align: center;
}
.history-empty i { margin-bottom: 8px; color: #2fbdbd; font-size: 34px; }
.history-empty p { margin: 0; }
.history-pagination { margin-top: 58px; }

/* ---- Đổi xu / Giftcode ---- */
.transaction-page {
    width: 733px;
    max-width: 100%;
    margin: 0 auto;
    padding: 22px 0 52px;
    color: #2a1c12;
}
.transaction-balance {
    display: grid;
    min-height: 68px;
    margin-bottom: 26px;
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
    gap: 2px 16px;
    align-items: center;
    background: #f7f6f3;
}
.transaction-balance > span { display: inline-flex; gap: 7px; align-items: center; color: #75695f; font-size: 13px; }
.transaction-balance > span i { color: #078b87; font-size: 19px; }
.transaction-balance > strong { grid-column: 1; color: #d7462e; font-size: 21px; line-height: 1.25; }
.transaction-balance > a { grid-column: 2; grid-row: 1 / 3; display: inline-flex; gap: 5px; align-items: center; color: #006d69 !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.transaction-form { width: 100%; margin: 0; }
.transaction-section-head { display: flex; margin: 0 0 13px; gap: 11px; align-items: center; }
.transaction-section-head > span { display: grid; width: 36px; height: 36px; flex: none; place-items: center; background: #078b87; color: #fff; font-size: 12px; font-weight: 800; }
.transaction-section-head strong { display: block; }
.transaction-section-head strong { color: #2a1c12; font-size: 17px; line-height: 1.35; }
.transaction-package-head { margin-top: 25px; }
.transaction-field { margin-bottom: 0; }
.transaction-field .form-label { margin-bottom: 7px; color: #51453c; font-size: 13px; font-weight: 700; }
.transaction-input { position: relative; }
.transaction-input > i { position: absolute; z-index: 2; top: 50%; left: 14px; color: #078b87; font-size: 20px; pointer-events: none; transform: translateY(-50%); }
.transaction-input .form-control,
.transaction-input .form-select {
    width: 100%;
    min-height: 50px;
    padding: 10px 42px;
    border: 1px solid #d8d0c7;
    border-radius: 3px;
    background-color: #fff;
    color: #2a1c12;
    font-size: 14px;
    box-shadow: none;
}
.transaction-input .form-select { padding-right: 44px; }
.transaction-input .form-control { padding-right: 14px; }
.transaction-input .form-control::placeholder { color: #a0968d; opacity: 1; }
.transaction-input .form-control:hover,
.transaction-input .form-select:hover { border-color: #a9c9c6; }
.transaction-input .form-control:focus,
.transaction-input .form-select:focus { border-color: #078b87; box-shadow: 0 0 0 3px rgba(7, 139, 135, .12); }
.role-picker { position: relative; width: 100%; }
.role-picker-trigger {
    display: grid;
    width: 100%;
    min-height: 58px;
    padding: 8px 13px;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    gap: 10px;
    align-items: center;
    border: 1px solid #d8d0c7;
    border-radius: 3px;
    background: #fff;
    color: #2a1c12;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.role-picker-trigger:hover { border-color: #a9c9c6; }
.role-picker-trigger:focus-visible,
.role-picker.is-open .role-picker-trigger { border-color: #078b87; outline: 0; box-shadow: 0 0 0 3px rgba(7, 139, 135, .12); }
.role-picker-trigger > i:first-child { color: #078b87; font-size: 22px; }
.role-picker-trigger > i:last-child { color: #75695f; font-size: 18px; transition: transform .2s ease; }
.role-picker.is-open .role-picker-trigger > i:last-child { transform: rotate(180deg); }
.role-picker-value { min-width: 0; }
.role-picker-value strong,
.role-picker-value small { display: block; overflow-wrap: anywhere; }
.role-picker-value strong { color: #2a1c12; font-size: 15px; line-height: 1.3; }
.role-picker-value small { margin-top: 2px; color: #75695f; font-size: 12px; line-height: 1.3; }
.role-picker-panel {
    position: absolute;
    z-index: 100;
    top: calc(100% + 7px);
    left: 0;
    display: flex;
    width: 100%;
    max-height: 360px;
    padding: 10px;
    flex-direction: column;
    border: 1px solid #b9d5d2;
    background: #fff;
    box-shadow: 0 16px 36px rgba(31, 50, 47, .18);
}
.role-picker-panel[hidden],
.role-picker-backdrop[hidden] { display: none !important; }
.role-picker-panel-head { display: none; }
.role-picker-search { position: relative; display: block; flex: none; margin: 0 0 8px; }
.role-picker-search > i { position: absolute; top: 50%; left: 12px; color: #078b87; font-size: 18px; pointer-events: none; transform: translateY(-50%); }
.role-picker-search input { width: 100%; height: 44px; padding: 8px 12px 8px 38px; border: 1px solid #d8d0c7; border-radius: 3px; background: #f9f8f6; color: #2a1c12; font-size: 14px; outline: 0; }
.role-picker-search input::placeholder { color: #8c8178; opacity: 1; }
.role-picker-search input:focus { border-color: #078b87; box-shadow: 0 0 0 3px rgba(7, 139, 135, .12); }
.role-picker-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.role-picker-option {
    display: grid;
    width: 100%;
    min-height: 55px;
    padding: 8px 10px;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    gap: 9px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #eee9e3;
    background: #fff;
    color: #2a1c12;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.role-picker-option:hover,
.role-picker-option:focus-visible { background: #edf8f7; color: #006d69; outline: 0; }
.role-picker-option.is-selected { background: #e5f5f3; color: #006d69; }
.role-picker-option > i:first-child { color: #078b87; font-size: 20px; }
.role-picker-option > i:last-child { color: #078b87; font-size: 18px; opacity: 0; }
.role-picker-option.is-selected > i:last-child { opacity: 1; }
.role-picker-option span { min-width: 0; }
.role-picker-option strong,
.role-picker-option small { display: block; overflow-wrap: anywhere; }
.role-picker-option strong { font-size: 14px; line-height: 1.3; }
.role-picker-option small { margin-top: 2px; color: #75695f; font-size: 12px; line-height: 1.3; }
.role-picker-empty { margin: 0; padding: 24px 12px; color: #75695f; font-size: 13px; text-align: center; }
.exchange-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.exchange-package { min-width: 0; cursor: pointer; }
.exchange-package > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.exchange-package-content {
    position: relative;
    display: flex;
    min-height: 84px;
    padding: 13px 44px 12px 13px;
    flex-direction: column;
    justify-content: center;
    background: #f7f6f3;
    color: #2a1c12;
    box-shadow: inset 0 0 0 1px transparent;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.exchange-package-content > strong { overflow: hidden; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.exchange-package-content > span { margin-top: 4px; color: #d7462e; font-size: 15px; font-weight: 800; }
.exchange-package-content img { position: absolute; right: 7px; bottom: 7px; width: 34px; height: 34px; object-fit: contain; }
.exchange-package:hover .exchange-package-content { background: #eaf7f6; }
.exchange-package > input:focus-visible + .exchange-package-content { box-shadow: inset 0 0 0 2px #078b87, 0 0 0 3px rgba(7, 139, 135, .14); }
.exchange-package > input:checked + .exchange-package-content { background: #eaf7f6; color: #006d69; box-shadow: inset 0 0 0 2px #078b87; }
.exchange-summary {
    display: grid;
    min-height: 82px;
    margin: 22px 0 12px;
    padding: 14px 17px;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    background: #f7f6f3;
}
.exchange-summary > div > span,
.exchange-summary > div > strong,
.exchange-summary > div > small { display: block; }
.exchange-summary > div > span { color: #75695f; font-size: 12px; }
.exchange-summary > div > strong { margin-top: 2px; color: #2a1c12; font-size: 18px; }
.exchange-summary > i { color: #9c9188; font-size: 21px; }
.exchange-summary-result { text-align: right; }
.exchange-summary-result > strong { color: #078b87 !important; }
.exchange-summary-result > small { margin-top: 1px; color: #d7462e; font-size: 11px; font-weight: 700; }
.exchange-summary.is-insufficient .exchange-summary-result > strong { color: #d7462e !important; }
.transaction-submit {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 3px;
    background: #e0432a;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}
.transaction-submit:hover,
.transaction-submit:focus { background: #c63823; color: #fff; }
.transaction-submit:disabled { background: #cfc8c0; color: #fff; opacity: 1; cursor: not-allowed; }
.transaction-submit i { font-size: 20px; }
.giftcode-page .transaction-section-head + .transaction-field { margin-bottom: 25px; }
.giftcode-code-field .form-control { letter-spacing: .04em; }
.transaction-empty {
    display: flex;
    min-height: 110px;
    padding: 20px;
    gap: 13px;
    align-items: center;
    border-left: 3px solid #078b87;
    background: #edf8f7;
    color: #315d59;
}
.transaction-empty > i { flex: none; color: #078b87; font-size: 30px; }
.transaction-empty strong,
.transaction-empty span { display: block; }
.transaction-empty strong { color: #2a1c12; font-size: 16px; }
.transaction-empty span { margin-top: 3px; font-size: 13px; line-height: 1.5; }
.transaction-empty a { color: #006d69 !important; font-weight: 800; }

/* ---- Bảo mật tài khoản: bố cục phẳng theo trang Tin tức ---- */
.security-page {
    width: 733px;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 0 52px;
    color: #2a1c12;
}
.security-overview {
    padding: 16px 20px 12px;
    border-top: 1px solid #cfe4e2;
    border-bottom: 1px solid #cfe4e2;
    background: #f7fbfa;
}
.security-score-head {
    display: flex;
    min-height: 34px;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.security-score-head h2 {
    display: flex;
    margin: 0;
    gap: 8px;
    align-items: center;
    color: #2a1c12;
    font-size: 20px;
    font-weight: 700;
}
.security-score-head h2 i { color: #17847e; font-size: 25px; }
.security-score-head > strong { color: #17847e; font-size: 24px; line-height: 1; }
.security-score-head > strong small { font-size: 13px; font-weight: 700; }
.security-overview.is-warning .security-score-head > strong { color: #b77a13; }
.security-overview.is-danger .security-score-head > strong { color: #d13d2a; }
.security-progress { height: 5px; margin: 12px 0 7px; overflow: hidden; background: #dfeae8; }
.security-progress > span { display: block; height: 100%; background: #198754; }
.security-overview.is-warning .security-progress > span { background: #c28a22; }
.security-overview.is-danger .security-progress > span { background: #d13d2a; }
.security-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}
.security-status {
    display: flex;
    min-width: 0;
    min-height: 37px;
    padding: 7px 0;
    gap: 7px;
    align-items: center;
    border-bottom: 1px dotted #d9d2ca;
    color: #685b50;
    font-size: 13px;
    font-weight: 600;
}
.security-status:nth-last-child(-n + 2) { border-bottom: 0; }
.security-status i { flex: none; font-size: 18px; }
.security-status.is-ok i { color: #198754; }
.security-status.is-warning i { color: #b77a13; }
.security-status.is-danger i { color: #d13d2a; }
.security-section-head { margin: 24px 0 7px; }
.security-section-head h2 { margin: 0; color: #2a1c12; font-size: 21px; font-weight: 700; }
.security-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    border-top: 1px solid #e1dbd3;
}
.security-action {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 72px;
    padding: 10px 38px 10px 4px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #e1dbd3;
    background: #fff;
    color: #2a1c12;
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}
.security-action[aria-busy="true"] { cursor: wait; opacity: .65; pointer-events: none; }
.security-action:hover,
.security-action:focus-visible {
    background: #f4faf9;
    color: #2a1c12;
    outline: 0;
}
.security-action:focus-visible { box-shadow: inset 0 0 0 2px #17847e; }
.security-action-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #eaf8f7;
    color: #17847e;
    font-size: 22px;
}
.security-action-copy { display: block; min-width: 0; }
.security-action-copy strong,
.security-action-copy small { display: block; }
.security-action-copy strong { color: #2a1c12; font-size: 15px; line-height: 1.35; }
.security-action-copy small {
    margin-top: 2px;
    overflow: hidden;
    color: #786a5f;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.security-action-state {
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}
.security-action-state.is-ready { background: #e8f6ee; color: #187344; }
.security-action-state.is-required { background: #fff0ea; color: #b84a27; }
.security-action-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    color: #9b8e83;
    font-size: 18px;
    transform: translateY(-50%);
}
.security-modal { --bs-modal-zindex: 1090; }
.security-modal .security-popup-dialog {
    width: calc(100% - 40px);
    max-width: 520px;
    margin: 20px auto;
}
.security-modal .modal-content {
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border: 1px solid rgba(7, 139, 135, .28) !important;
    border-top: 4px solid #17847e !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #2a1c12 !important;
    box-shadow: 0 22px 60px rgba(12, 55, 52, .25);
}
.security-modal .modal-header {
    flex: none;
    min-height: 64px;
    padding: 10px 18px;
    border-color: #d7e7e5;
    background: #eff9f8;
}
.security-modal .modal-body { padding: 16px 18px 18px; overflow-y: auto; }
.security-modal .modal-title {
    display: flex;
    margin: 0;
    gap: 8px;
    align-items: center;
    color: #2a1c12 !important;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 22px !important;
    font-weight: 700;
}
.security-modal .modal-title i { color: #17847e; font-size: 24px; }
.security-modal .btn-close { width: 44px; height: 44px; padding: 0; background-position: center; }
.security-modal .form-label { margin-bottom: 6px; color: #564b43 !important; font-size: 14px; font-weight: 700; }
.security-modal .form-control { min-height: 48px; padding: 9px 12px; border-color: #d9d4ca; background: #fff; color: #2a1c12; font-size: 15px; }
.security-modal .form-control::placeholder { color: #a2958b; opacity: 1; }
.security-modal .form-control:focus { border-color: #17847e; box-shadow: 0 0 0 3px rgba(23, 132, 126, .14); }
.security-form-field + .security-form-field { margin-top: 14px; }
.security-modal .alert { margin-bottom: 14px; font-size: 13px; line-height: 1.45; }
.security-modal .security-form-field + .alert,
.security-modal .security-form-field + .security-channel { margin-top: 10px; }
.security-password-control { position: relative; }
.security-password-control .form-control { padding-right: 48px; }
.security-password-control > button {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #75695f;
    font-size: 21px;
    transform: translateY(-50%);
}
.security-password-control > button:hover,
.security-password-control > button:focus-visible { background: #eaf7f6; color: #006d69; outline: 0; }
.security-current-value,
.security-channel {
    display: flex;
    min-height: 46px;
    margin-bottom: 14px;
    padding: 9px 12px;
    gap: 10px;
    align-items: center;
    background: #f2f8f7;
    color: #62564c;
    font-size: 13px;
}
.security-current-value { justify-content: space-between; }
.security-current-value strong { max-width: 70%; color: #2a1c12; overflow-wrap: anywhere; text-align: right; }
.security-channel i { flex: none; color: #17847e; font-size: 22px; }
.security-channel strong { color: #006d69; }
.security-otp-input { font-size: 20px !important; font-weight: 700; letter-spacing: .22em; text-align: center; }
.security-otp-input::placeholder { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.security-modal .modal-footer {
    display: grid;
    padding: 12px 18px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-color: #d7e7e5;
    background: #fff;
}
.security-modal .modal-footer > * { width: 100%; min-width: 0; min-height: 46px; margin: 0; }
.security-modal .modal-footer .btn { display: inline-flex; border-radius: 4px; gap: 6px; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.security-modal .btn-primary { border-color: #e0432a; background: #e0432a; color: #fff; }
.security-modal .btn-primary:hover,
.security-modal .btn-primary:focus { border-color: #c43823; background: #c43823; color: #fff; }
.security-modal .btn-outline-light { border-color: #d9d4ca; background: #fff; color: #4f433a; }
.security-modal .btn-outline-light:hover,
.security-modal .btn-outline-light:focus { border-color: #17847e; background: #eef8f7; color: #006d69; }
.security-modal .btn-danger { border-color: #c83b28; background: #c83b28; color: #fff; }
.security-modal .security-modal-footer-single { grid-template-columns: 1fr; }

/* ---- Tổng quan tài khoản ---- */
.account-overview {
    width: 100%;
    margin: 0;
    padding: 16px 0 0;
}

@media (min-width: 768px) {
    .account-overview {
        width: 733px;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding-top: 28px;
    }
}
.account-dashboard-panel {
    background: #fff;
}
.account-profile-panel {
    padding: 16px 20px;
    border-top: 1px solid #cfe4e2;
    border-bottom: 1px solid #cfe4e2;
    background: #f7fbfa;
}
.account-profile-layout {
    display: flex;
    width: 100%;
    min-height: 68px;
    gap: 16px;
    align-items: center;
}
.account-profile-avatar {
    display: flex;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid #9fd5d1;
    border-radius: 50%;
    background: #fff;
    color: #17847e;
    font-size: 30px;
}
.account-profile-content { min-width: 0; flex: 1; text-align: right; }
.account-profile-name-row {
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.25;
}
.account-profile-name {
    color: #24170f;
    font-size: 24px;
    font-weight: 700;
}
.account-profile-order {
    color: #82766c;
    font-size: 14px;
    font-weight: 600;
    vertical-align: baseline;
}
.account-profile-userid {
    display: block;
    margin-top: 3px;
    color: #82766c;
    font-size: 16px;
    line-height: 1.2;
}
.account-profile-userid-label { color: #6f645b; }
.account-profile-userid-value { color: #17847e; font-weight: 700; }
.account-profile-separator { margin: 0 7px; color: #b1a69c; }
.account-profile-balance {
    display: flex;
    margin-top: 6px;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    color: #e0432a;
    font-size: 17px;
    font-weight: 700;
}
.account-profile-balance i { color: #2fbdbd; font-size: 18px; }
.account-profile-balance > strong { color: #e0432a; font-size: 25px; font-weight: 800; }
.account-feature-grid {
    display: block;
    padding: 12px 0 0;
}
.account-feature-link {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 58px;
    padding: 10px 12px;
    gap: 12px;
    align-items: center;
    color: #2a1c12;
    border-bottom: 1px dotted #cfc8c0;
    background: #fff;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.account-feature-link:last-child {
    border-bottom: 0;
}
.account-feature-link:hover,
.account-feature-link:focus-visible {
    color: #17847e;
    background: #f7fbfa;
}
.account-feature-link:focus-visible {
    outline: 2px solid #2fbdbd;
    outline-offset: -2px;
}
.account-feature-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #17847e;
    font-size: 19px;
    line-height: 1;
    background: #eaf7f6;
}
.account-feature-copy { display: block; min-width: 0; flex: 1; }
.account-feature-copy strong {
    display: block;
    color: #2a1c12;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}
.account-feature-arrow {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    color: #8f8379;
    font-size: 18px;
}

/* ---- trang Đăng nhập / Đăng ký (2 tab) ---- */
.subpage-content .auth-page { width: 733px; max-width: 100%; padding: 28px 0 52px !important; }
.auth-wrap { width: 100%; margin: 0 auto; color: #2a1c12; }
.auth-intro {
    display: flex;
    min-height: 86px;
    margin-bottom: 18px;
    padding: 15px 20px;
    gap: 14px;
    align-items: center;
    border-left: 3px solid #078b87;
    background: linear-gradient(100deg, #edf8f7 0%, #fffaf2 100%);
}
.auth-intro-icon { display: grid; width: 100px; height: 60px; flex: none; place-items: center; }
.auth-intro-icon img { display: block; width: 100%; max-height: 60px; object-fit: contain; }
.auth-intro > div { min-width: 0; flex: 1; text-align: center; }
.auth-eyebrow { display: block; margin-bottom: 3px; color: #078b87; font-size: 18px; font-weight: 800; letter-spacing: .03em; line-height: 1.3; }
.auth-intro h2 { margin: 0; color: #75695f; font-family: 'Noto Sans SC', sans-serif; font-size: 14px; font-weight: 500; line-height: 1.45; }
.auth-tabs { display: grid; margin: 0 0 24px; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-tab {
    display: inline-flex;
    min-height: 52px;
    padding: 12px 18px;
    gap: 8px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #f5f3ef;
    color: #75695f;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.auth-tab:hover,
.auth-tab:focus-visible { background: #eaf7f6; color: #006d69; }
.auth-tab.active { background: #078b87; color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.auth-tab i { font-size: 20px; }
.auth-panel[hidden] { display: none; }
.auth-panel { max-width: 100%; }
.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.auth-field { min-width: 0; margin-bottom: 17px; }
.auth-form-grid .auth-field { margin-bottom: 0; }
.auth-field .form-label { margin-bottom: 7px; color: #51453c; font-size: 14px; font-weight: 700; }
.auth-input { position: relative; }
.auth-input > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 14px;
    color: #078b87;
    font-size: 19px;
    pointer-events: none;
    transform: translateY(-50%);
}
.auth-input .form-control {
    width: 100%;
    min-height: 50px;
    padding: 11px 44px 11px 44px;
    border: 1px solid #d8d0c7;
    border-radius: 4px;
    background: #fff;
    color: #2a1c12;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
}
.auth-input:not(.auth-password) .form-control { padding-right: 14px; }
.auth-input .form-control::placeholder { color: #a0968d; opacity: 1; }
.auth-input .form-control:hover { border-color: #a9c9c6; }
.auth-input .form-control:focus { border-color: #078b87; box-shadow: 0 0 0 3px rgba(7, 139, 135, .12); }
.auth-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #75695f;
    cursor: pointer;
    font-size: 20px;
    transform: translateY(-50%);
}
.auth-password-toggle:hover,
.auth-password-toggle:focus-visible { background: #eaf7f6; color: #006d69; outline: 0; }
.auth-options { display: flex; margin: 2px 0 18px; gap: 16px; align-items: center; justify-content: space-between; }
.auth-options > a { color: #d7462e !important; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-remember { display: inline-flex; gap: 9px; align-items: center; color: #51453c; cursor: pointer; font-size: 13px; font-weight: 600; }
.auth-remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.auth-switch { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: #cfc8c0; transition: background-color .2s ease; }
.auth-switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ''; transition: transform .2s ease; }
.auth-remember input:checked + .auth-switch { background: #078b87; }
.auth-remember input:checked + .auth-switch::after { transform: translateX(16px); }
.auth-remember input:focus-visible + .auth-switch { box-shadow: 0 0 0 3px rgba(7, 139, 135, .2); }
.auth-submit { display: inline-flex; width: 100%; min-height: 52px; gap: 8px; align-items: center; justify-content: center; border: 0; border-radius: 3px; background: #e0432a; color: #fff; font-size: 16px; font-weight: 800; }
.auth-submit:hover,
.auth-submit:focus { background: #c63823; color: #fff; }
.auth-submit i { font-size: 20px; }
.auth-register-form .auth-submit { margin-top: 18px; }

/* ---- Nạp nhanh Banking: progressive disclosure, QR trong modal sẵn có ---- */
.subpage-content .topup-page {
    width: 733px;
    margin: 0 auto;
    padding: 28px 0 52px;
    color: #2a1c12;
}
.topup-page button,
.topup-page a { -webkit-tap-highlight-color: transparent; }
.topup-page .topup-promo {
    min-height: 58px;
    margin: 0 0 26px;
    padding: 10px 18px 10px 61px;
    border: 0;
    border-left: 3px solid #078b87;
    background: linear-gradient(100deg, #edf8f7 0%, #fffaf2 100%);
}
.topup-page .topup-promo::after { display: none; }
.topup-page .topup-promo > img { left: 17px; width: 31px; height: 31px; margin: 0; }
.topup-page .topup-promo span { margin: 0 0 1px; font-size: 10px; letter-spacing: .1em; }
.topup-page .topup-promo strong { font-size: 15px; line-height: 1.35; }
.topup-quick { width: 100%; margin: 0; }
.topup-quick-head { margin-bottom: 18px; }
.topup-quick-head > span { display: block; margin-bottom: 3px; color: #078b87; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topup-quick-head h2 { margin: 0; color: #2a1c12; font-size: 24px; font-weight: 700; line-height: 1.35; }
.topup-quick-head p { margin: 5px 0 0; color: #75695f; font-size: 13px; line-height: 1.55; }
.topup-page .topup-package-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.topup-page .topup-package {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 54px;
    padding: 9px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #f5f3ef;
    color: #3b2f27;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.topup-page .topup-package:hover,
.topup-page .topup-package:focus-visible { background: #eaf7f6; color: #006d69; }
.topup-page .topup-package.active { background: #078b87; color: #fff; box-shadow: none; }
.topup-page .topup-package img { display: none; position: absolute; right: 3px; bottom: 2px; width: 28px; height: 28px; margin: 0; object-fit: contain; }
.topup-page .topup-package.active img { display: block; }
.topup-page .topup-package-custom { gap: 6px; background: #fff; color: #078b87; box-shadow: inset 0 0 0 1px #c7dedb; }
.topup-page .topup-package-custom > i { position: static; font-size: 17px; }
.topup-page .topup-custom-field { grid-column: span 2; max-width: none; margin: 0; }
.topup-page .topup-input-wrap { display: grid; height: 54px; grid-template-columns: minmax(0, 1fr) 58px; }
.topup-page .topup-input-wrap input { width: 100%; height: 54px; padding: 9px 12px; border: 1px solid #c7dedb; border-right: 0; background: #fff; }
.topup-page .topup-input-wrap span { position: static; display: grid; height: 54px; place-items: center; background: #e7e3df; color: #685c52; font-size: 12px; font-weight: 700; transform: none; }
.topup-page .topup-custom-field.active .topup-input-wrap { box-shadow: inset 0 0 0 2px #078b87; }
.topup-summary {
    display: grid;
    margin: 22px 0 14px;
    padding: 15px 18px;
    grid-template-columns: 1fr auto 1.25fr;
    gap: 18px;
    align-items: center;
    background: #f8f7f4;
}
.topup-summary > div { min-width: 0; }
.topup-summary span,
.topup-summary strong,
.topup-summary small { display: block; }
.topup-summary span { color: #75695f; font-size: 13px; }
.topup-summary strong { margin-top: 2px; color: #2a1c12; font-size: 18px; white-space: nowrap; }
.topup-summary-flow { display: flex; gap: 8px; align-items: center; justify-content: center; }
.topup-summary-flow > i { flex: none; color: #a39a91; font-size: 18px; }
.topup-summary-flow small { color: #078b87; font-size: 13px; white-space: nowrap; }
.topup-summary-flow small b { font-weight: 800; }
.topup-summary-total { text-align: right; }
.topup-summary-total strong { color: #d7462e; }
.topup-create-qr {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 11px 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #e0432a;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: background-color .2s ease;
}
.topup-create-qr:hover,
.topup-create-qr:focus-visible { background: #c63823; }
.topup-create-qr:disabled { cursor: not-allowed; opacity: .48; }
.topup-create-qr span { display: inline-flex; gap: 8px; align-items: center; }
.topup-create-qr span i { font-size: 20px; }
.topup-create-qr strong { font-size: 15px; }
.topup-trust { display: flex; margin: 9px 0 0; gap: 6px; align-items: center; justify-content: center; color: #75695f; font-size: 11px; }
.topup-trust i { color: #078b87; font-size: 16px; }
.topup-utility { width: 100%; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #e4ded7; }
.topup-guide-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topup-guide-links a { display: inline-flex; min-height: 50px; padding: 11px 14px; gap: 10px; align-items: center; background: #f7f6f3; color: #4e4239; font-size: 15px; font-weight: 700; text-decoration: none; }
.topup-guide-links a i { color: #078b87; font-size: 22px; }
.topup-guide-links a:hover,
.topup-guide-links a:focus-visible { color: #c23a22; }
.topup-support-links { display: grid; width: 100%; margin-top: 18px; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; color: #75695f; font-size: 14px; }
.topup-support-links > span { font-weight: 700; }
.topup-support-links a { display: inline-flex; gap: 7px; align-items: center; justify-content: center; color: #3f3731; font-size: 14px; font-weight: 700; text-decoration: none; }
.topup-support-brand { display: block; width: 21px; height: 21px; flex: none; object-fit: contain; }
.topup-payment-modal { z-index: 1060; }
.topup-payment-modal .topup-payment-dialog { width: min(94vw, 880px); max-width: 880px; margin-right: auto; margin-left: auto; }
.topup-payment-modal .modal-content { max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid rgba(7, 139, 135, .35) !important; border-top: 4px solid #078b87 !important; border-radius: 8px !important; background: #fff !important; color: #2a1c12 !important; box-shadow: 0 22px 60px rgba(12, 55, 52, .28); }
.topup-payment-modal .modal-header { padding: 19px 26px; border-color: #d7e7e5; background: #eff9f8; }
.topup-payment-modal .modal-title { margin: 0; color: #2a1c12; font-size: 26px; font-weight: 700; }
.topup-modal-kicker { display: block; margin-bottom: 3px; color: #078b87; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.topup-payment-modal .modal-body { padding: 22px 26px 26px; overflow-y: auto; }
.topup-modal-summary { display: flex; margin-bottom: 20px; padding-bottom: 16px; gap: 32px; align-items: center; justify-content: center; border-bottom: 1px solid #e4ded7; color: #75695f; font-size: 14px; }
.topup-modal-summary strong { margin-left: 4px; color: #d7462e; font-size: 19px; }
.topup-payment-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.topup-modal-qr > p { margin: 0 0 10px; color: #62564c; font-size: 14px; font-weight: 700; text-align: center; }
.topup-payment-modal .topup-qr-frame { width: 100%; padding: 7px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px #d9d3cb; }
.topup-payment-modal .topup-qr-frame img { width: 100%; aspect-ratio: 1; margin: 0; object-fit: contain; }
.topup-payment-modal .topup-qr-frame::before,
.topup-payment-modal .topup-qr-frame::after { display: none; }
.topup-bank-transfer-head { display: flex; margin-bottom: 4px; padding-bottom: 8px; gap: 11px; align-items: center; border-bottom: 1px solid #e4ded7; }
.topup-bank-transfer-head > i { color: #078b87; font-size: 27px; }
.topup-bank-transfer-head strong,
.topup-bank-transfer-head span { display: block; }
.topup-bank-transfer-head strong { font-size: 19px; }
.topup-bank-transfer-head span { color: #75695f; font-size: 13px; }
.topup-bank-name-row { display: grid; padding: 7px 0; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px dashed #ddd6ce; }
.topup-bank-name-row span { color: #75695f; font-size: 13px; }
.topup-bank-name-row strong { color: #2a1c12; font-size: 16px; }
.topup-copy-row { display: grid; padding: 8px 0; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; border-bottom: 1px dashed #ddd6ce; }
.topup-copy-row > span { color: #75695f; font-size: 13px; }
.topup-copy-row > strong { min-width: 0; overflow-wrap: anywhere; color: #2a1c12; font-size: 18px; }
.topup-copy-row > button { grid-column: 2; grid-row: 1 / 3; display: inline-flex; min-height: 38px; padding: 6px 11px; gap: 5px; align-items: center; border: 0; background: #eaf7f6; color: #006d69; cursor: pointer; font-size: 13px; font-weight: 700; }
.topup-payment-modal .topup-note,
.topup-processing-note { display: flex; margin-top: 8px; padding: 9px 11px; gap: 8px; border: 0; border-left: 3px solid #d7462e; background: #fff4f0; color: #6b3b32; }
.topup-payment-modal .topup-note > i,
.topup-processing-note > i { flex: none; margin-top: 2px; color: #d7462e; font-size: 20px; }
.topup-payment-modal .topup-note p,
.topup-processing-note p { margin: 0; font-size: 13px; line-height: 1.4; }
.topup-processing-note { margin-top: 6px; border-left-color: #078b87; background: #eff9f8; color: #315d59; }
.topup-processing-note > i { color: #078b87; }
.topup-processing-note a { color: #006d69; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.topup-payment-modal .modal-footer { display: flex; padding: 15px 26px; gap: 10px; border-color: #d7e7e5; background: #fff; }
.topup-payment-modal .modal-footer .btn { display: inline-flex; min-width: 160px; min-height: 46px; margin: 0; gap: 6px; align-items: center; justify-content: center; font-size: 15px; line-height: 1.2; }
.topup-payment-modal .modal-footer .btn-outline-light { border-color: #d6cec5; background: #fff; color: #4d4138; }
.topup-payment-modal .modal-footer .btn-primary { border-color: #e0432a; background: #e0432a; color: #fff; }
.topup-payment-modal .modal-footer .btn-primary:hover,
.topup-payment-modal .modal-footer .btn-primary:focus { border-color: #c63823; background: #c63823; color: #fff; }
.topup-account-warning { display: flex; min-height: 90px; padding: 18px; gap: 12px; align-items: center; border: 0; background: #fff8e9; color: #76551c; }
.topup-account-warning > i { flex: none; font-size: 26px; }
.topup-account-warning strong,
.topup-account-warning span { display: block; }
.topup-account-warning span { margin-top: 3px; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
    .auth-tab,
    .auth-switch,
    .auth-switch::after,
    .topup-page .topup-package,
    .topup-create-qr { transition: none; }
}

/* ---- Nhân vật: bố cục phẳng theo trang Lịch sử ---- */
.character-page { width: 733px; }
.character-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.character-sync {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #6b5d4f;
    font-size: 13px;
}
.character-sync > i { flex: none; color: #078b87; font-size: 16px; }
.character-refresh { margin: 0; }
.character-refresh button,
.character-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 13px;
    border: 1px solid #d8d0c7;
    border-radius: 3px;
    background: #fff;
    color: #006d69;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}
.character-refresh button:hover:not(:disabled),
.character-back:hover { border-color: #078b87; background: #edf8f7; }
.character-refresh button:disabled { color: #a79c92; cursor: not-allowed; }
.character-refresh button.is-loading > i { animation: character-spin .9s linear infinite; }

.character-filter { position: relative; display: block; margin-bottom: 10px; }
.character-filter > i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #078b87;
    font-size: 18px;
    pointer-events: none;
    transform: translateY(-50%);
}
.character-filter input {
    width: 100%;
    height: 40px;
    padding: 8px 12px 8px 38px;
    border: 1px solid #d8d0c7;
    border-radius: 3px;
    background: #f9f8f6;
    color: #2a1c12;
    font-size: 14px;
    outline: 0;
}
.character-filter input:focus { border-color: #078b87; box-shadow: 0 0 0 3px rgba(7, 139, 135, .12); }

.character-grid {
    display: grid;
    grid-template-columns: 1.75fr 1.1fr .45fr .9fr 1fr .7fr 20px;
    align-items: center;
    column-gap: 12px;
}
.character-list-head {
    min-height: 34px;
    color: #5d5149;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}
.character-row {
    min-height: 54px;
    padding: 7px 0;
    border-bottom: 1px dotted #d4d4d4;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .18s ease;
}
.character-row:hover { background: #f7fbfa; color: #333; }
.character-row > span:not(.character-cell-name) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.character-row > span[data-label]::before { content: none; }
.character-cell-name {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.character-cell-name > i { flex: none; color: #078b87; font-size: 27px; }
.character-cell-name > span { min-width: 0; }
.character-cell-name strong,
.character-cell-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.character-cell-name strong { color: #2a1c12; font-size: 14px; }
.character-cell-name small {
    margin-top: 1px;
    color: #75695f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}
.character-cell-level { font-weight: 700; }
.character-cell-power { color: #e9402b; font-weight: 700; }
.character-cell-pending { grid-column: 3 / 7; color: #006d69; }
.character-cell-go { color: #a79c92; text-align: right; }
.character-row:hover .character-cell-go { color: #078b87; }

.character-empty,
.character-list-empty {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 20px;
    border-left: 3px solid #078b87;
    background: #edf8f7;
    color: #315d59;
}
.character-empty { min-height: 110px; }
.character-empty > i { flex: none; color: #078b87; font-size: 30px; }
.character-empty strong,
.character-empty span { display: block; }
.character-empty strong { color: #2a1c12; font-size: 16px; }
.character-empty span { margin-top: 3px; font-size: 13px; line-height: 1.5; }
.character-list-empty { margin: 10px 0 0; font-size: 13px; }

/* ---- Nhân vật: khối chi tiết (dùng chung trang riêng + modal) ---- */
.character-detail-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.character-detail-avatar { flex: none; color: #078b87; font-size: 44px; line-height: 1; }
.character-detail-ident { flex: 1; min-width: 0; }
.character-detail-ident strong,
.character-detail-ident small { display: block; overflow-wrap: anywhere; }
.character-detail-ident strong { color: #2a1c12; font-size: 18px; line-height: 1.3; }
.character-detail-ident small { margin-top: 2px; color: #75695f; font-size: 12px; }
.character-detail-state { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.character-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.character-tag.is-online { background: #e4f6ec; color: #1c7a44; }
.character-tag.is-offline { background: #eeeae5; color: #6f6259; }
.character-tag.is-banned { background: #fdeae7; color: #c0341e; }
.character-detail-note {
    display: flex;
    gap: 8px;
    margin: 14px 0 0;
    padding: 11px 14px;
    border-left: 3px solid #d9932a;
    background: #fdf6e8;
    color: #7a5a19;
    font-size: 13px;
    line-height: 1.5;
}
.character-detail-note > i { flex: none; font-size: 18px; }
.character-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    column-gap: 26px;
}
.character-detail-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dotted #ddd7d0;
}
.character-detail-item dt { color: #75695f; font-size: 13px; font-weight: 400; }
.character-detail-item dd {
    margin: 0;
    color: #2a1c12;
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
}
.character-detail-item dd.is-strong { font-weight: 700; }
.character-detail-item dd.is-gold { color: #e9402b; font-weight: 700; }
.character-detail-page .character-detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.character-modal .character-detail-list { grid-template-columns: minmax(0, 1fr); }
.character-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
    color: #75695f;
    font-size: 13px;
}
.character-modal-loading > i { font-size: 20px; animation: character-spin .9s linear infinite; }
@keyframes character-spin { to { transform: rotate(360deg); } }

/* ============ Bảng xếp hạng ============ */
.leaderboard-page { color: #2a1c12; }
.leaderboard-page .lb-nav { display: grid; gap: 8px; margin-bottom: 16px; }
.leaderboard-page .lb-nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.leaderboard-page .lb-nav-label {
    flex: 0 0 128px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b5d4f;
}
.leaderboard-page .lb-chip {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #e0d9cd;
    border-radius: 999px;
    background: #fff;
    color: #5a4a3c;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.leaderboard-page .lb-chip:hover { border-color: #e0432a; color: #e0432a; }
.leaderboard-page .lb-chip:focus-visible,
.leaderboard-page .lb-more:focus-visible { outline: 3px solid rgba(224, 67, 42, .28); outline-offset: 2px; }
.leaderboard-page .lb-chip.is-active { background: #e0432a; border-color: #e0432a; color: #fff; font-weight: 600; }
.leaderboard-page .lb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.leaderboard-page .lb-scope { display: flex; align-items: center; gap: 8px; }
.leaderboard-page .lb-scope label { margin: 0; font-size: 13px; font-weight: 600; color: #6b5d4f; white-space: nowrap; }
.leaderboard-page .lb-scope .form-select { width: auto; min-width: 220px; }
.leaderboard-page .lb-synced { font-size: 12.5px; color: #8a7c6d; }
.leaderboard-page .lb-card { overflow: hidden; }
.leaderboard-page .lb-table { margin: 0; }
.leaderboard-page .lb-table tr[hidden] { display: none !important; }
.leaderboard-page .lb-table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6b5d4f;
    background: #faf9f6;
    border-bottom: 2px solid #ece7dd;
    white-space: nowrap;
}
.leaderboard-page .lb-col-rank { width: 84px; }
.leaderboard-page .lb-col-value { width: 150px; white-space: nowrap; }
.leaderboard-page .lb-table tbody td { vertical-align: middle; }
.leaderboard-page .lb-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 40px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #241a10;
    font-weight: 700;
    font-size: 13px;
}
.leaderboard-page .lb-rank-no { font-weight: 600; color: #8a7c6d; }
.leaderboard-page .lb-name { font-weight: 700; color: #b1381f; }
.leaderboard-page .lb-meta { margin-top: 2px; font-size: 12.5px; color: #8a7c6d; }
.leaderboard-page .lb-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    background: #efeae1;
    color: #6b5d4f;
    font-size: 11.5px;
    font-weight: 600;
}
.leaderboard-page .lb-bw-1 { background: #e3effb; color: #2f6fb0; }
.leaderboard-page .lb-bw-2 { background: #f6e6f0; color: #9b3b78; }
.leaderboard-page .lb-server {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 4px;
    background: #efeae1;
    color: #5a4a3c;
    font-size: 12.5px;
}
.leaderboard-page .lb-value { font-weight: 700; color: #b1381f; font-variant-numeric: tabular-nums; }
.leaderboard-page .lb-top-1 { background: rgba(213, 168, 79, .10); }
.leaderboard-page .lb-top-2 { background: rgba(154, 160, 166, .10); }
.leaderboard-page .lb-top-3 { background: rgba(176, 107, 58, .10); }
.leaderboard-page .lb-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
.leaderboard-page .lb-more { min-width: 158px; border-radius: 999px; padding: 6px 22px; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.leaderboard-page .lb-note { margin-top: 14px; font-size: 12.5px; color: #8a7c6d; }
