/* ============================================
   pages.css — Layout + page-specific styles
   Design: Deep blue + orange-gold + cyan accents
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --hdr-bg: #0b1a3b;
    --hdr-border: #ff8c00;
    --primary: #f97316;
    --accent: #ff8c00;
    --accent-light: #ffa940;
    --cyan: #00d4ff;
    --blue-dark: #0a1628;
    --blue-mid: #142850;
    --gold: #ffd700;
    --text-warm: #f0e6d6;
    --text-body: #222;
    --card-bg: rgba(255, 255, 255, 0.93);
    --card-border: #1a2a5e;
    --font-heading: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
    --font-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}

/* ===== GLOBAL FONT OVERRIDE ===== */
body,
body * {
    font-family: var(--font-body) !important;
    letter-spacing: 0;
}

.f-sVN-Avengeance,
.f-tahoma,
.f-tahomabold,
.f-LG_OnePieceUI2,
.f-Roboto-Regular,
.f-utm_facebook,
.f-utm_facebook_kt {
    font-family: var(--font-body) !important;
}

/* ===== GAME HEADER — Minimal ===== */
.game-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    background: transparent;
    border-bottom: none;
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        height 0.3s ease;
}

.game-header--scrolled {
    height: 60px;
    background: rgba(6, 15, 43, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.game-header__inner {
    max-width: 1260px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
}

/* Logo */
.game-header__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.game-header__icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

.game-header__wordmark {
    height: 60px;
    max-width: 390px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
}

/* Nav */
.game-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.game-nav__link,
.game-nav__link:link,
.game-nav__link:visited,
.game-nav__link:active,
.game-nav__btn,
.game-nav__btn:link,
.game-nav__btn:visited,
.game-nav__btn:active {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.7px;
    text-decoration: none;
    color: #111;
    padding: 0;
    width: 148px;
    height: 50px;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2.png")
        no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    transition: filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    text-shadow: none;
}

.game-nav__link:hover {
    color: #111;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.game-nav__link.router-link-active,
.game-nav__link.router-link-exact-active {
    color: #111;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center;
    background-size: contain;
}

.game-nav__link.router-link-active::after,
.game-nav__link.router-link-exact-active::after {
    display: none;
}

.game-nav__separator {
    display: none;
}

/* User section */
.game-nav__link--user {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.game-nav__avatar {
    display: none;
}

.game-nav__link--logout,
.game-nav__link--logout:link,
.game-nav__link--logout:visited,
.game-nav__link--logout:active {
    color: #111;
}

.game-nav__link--logout:hover {
    color: #111;
}

/* Auth buttons */
.game-nav__btn {
    font-size: 16px;
    font-weight: 400;
    color: #111;
    letter-spacing: 0.7px;
    padding: 0;
    width: 128px;
    height: 46px;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2.png")
        no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

.game-nav__btn--login {
    color: #111;
}

.game-nav__btn--login:hover {
    color: #111;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center;
    background-size: contain;
}

.game-nav__btn--register {
    color: #111;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2.png")
        no-repeat center;
    background-size: contain;
}

.game-nav__btn--register:hover {
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center;
    background-size: contain;
    filter: brightness(1.1);
}

/* Mobile hamburger */
.game-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.game-header__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    transition: all 0.3s;
    position: relative;
    transform-origin: center;
}

.game-header__toggle span.open:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.game-header__toggle span.open:nth-child(2) {
    opacity: 0;
}

.game-header__toggle span.open:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1060px) {
    .game-header__wordmark {
        height: 50px;
        max-width: 320px;
    }

    .game-header__icon {
        width: 46px;
        height: 46px;
    }

    .game-nav__link,
    .game-nav__btn {
        width: 118px;
        height: 42px;
        font-size: 15px;
    }

    .game-nav__link--user {
        max-width: 118px;
    }
}

@media (max-width: 860px) {
    .game-header__toggle {
        display: flex;
    }

    .game-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        margin-left: 0;
        background: rgba(6, 15, 43, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 80px 16px 20px;
        gap: 8px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 2000;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .game-nav--open {
        transform: translateX(0);
    }

    .game-nav__locator {
        display: none;
    }

    .game-nav__link,
    .game-nav__btn {
        width: 100%;
        max-width: 250px;
        height: 50px;
        margin: 0 auto;
        justify-content: center;
    }
    .game-nav__link--user {
        max-width: 250px;
    }

    .game-header__wordmark {
        height: 44px;
        max-width: 270px;
    }

    .game-header__icon {
        width: 42px;
        height: 42px;
    }

    .game-header--scrolled {
        height: 60px;
    }

    .game-header--scrolled ~ .game-nav,
    .game-header--scrolled .game-nav {
        top: 60px;
    }
}

@media (max-width: 560px) {
    .game-header {
        height: 60px;
    }

    .game-header__inner {
        padding: 0 14px;
    }

    .game-nav {
        top: 60px;
    }

    .game-header__wordmark {
        height: 30px;
        max-width: 170px;
    }

    .game-header__icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
}

/* ==============================
   CLIENT READABILITY PASS
   Softer, home-matched theme + mobile cards
   ============================== */
:root {
    --client-bg: #081a36;
    --client-deep: #0b1732;
    --client-ink: #18243a;
    --client-muted: #657084;
    --client-panel: rgba(255, 248, 232, 0.96);
    --client-panel-soft: rgba(255, 252, 244, 0.94);
    --client-panel-blue: rgba(13, 35, 69, 0.9);
    --client-line: rgba(134, 88, 35, 0.2);
    --client-line-blue: rgba(113, 177, 210, 0.18);
    --client-gold: #d99a24;
    --client-gold-soft: #fff1c4;
    --client-orange: #d96f22;
    --client-cyan: #58c5d6;
    --client-red: #c2412d;
    --client-green: #218a5b;
    --client-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

html body #app,
html body #app *,
html body .game-footer,
html body .game-footer *,
html body .sidebar_right,
html body .sidebar_right *,
html body .welcome-popup-overlay,
html body .welcome-popup-overlay * {
    font-style: oblique 6deg !important;
}

.inner-page {
    background:
        linear-gradient(
            180deg,
            rgba(4, 12, 31, 0.7) 0%,
            rgba(8, 26, 54, 0.94) 44%,
            rgba(5, 14, 33, 0.98) 100%
        ),
        url("/assets/frontend/home/v1/images/fullBg.jpg") center top / cover
            fixed;
}

.client-page {
    width: min(1080px, calc(100% - 36px));
    margin-bottom: 42px;
}

.client-page--post {
    width: min(1160px, calc(100% - 36px));
}

.client-breadcrumb {
    margin-bottom: 14px;
    color: rgba(255, 239, 206, 0.82);
    font-size: 12px;
}

.client-breadcrumb a {
    color: #ffd78a !important;
}

.client-panel,
.rankings-container,
.giftcode-container,
.topup-box,
.side-box,
.post-detail,
.sidebar-widget,
.client-page-head--split {
    background:
        linear-gradient(
            180deg,
            rgba(255, 252, 244, 0.97),
            rgba(255, 246, 224, 0.95)
        ),
        var(--client-panel);
    border: 1px solid var(--client-line);
    border-radius: 10px;
    box-shadow: var(--client-shadow);
}

.client-panel__eyebrow {
    color: #a75716;
    font-size: 11px;
    font-weight: 800;
}

.client-panel__title,
.profile-section-title,
.post-detail h1,
.history h3,
.sidebar-widget h4 {
    color: var(--client-ink);
    font-weight: 800;
}

.client-panel__title {
    font-size: 28px;
}

.client-panel__desc {
    color: #6d5c45;
    font-size: 13px;
}

.game-nav {
    gap: 8px;
}

.game-nav__link,
.game-nav__link:link,
.game-nav__link:visited,
.game-nav__link:active,
.game-nav__btn,
.game-nav__btn:link,
.game-nav__btn:visited,
.game-nav__btn:active {
    width: auto;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    background: rgba(7, 20, 45, 0.54);
    background-image: none !important;
    border: 1px solid rgba(255, 214, 138, 0.28);
    border-radius: 999px;
    color: #fff3d4;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.game-nav__link:hover,
.game-nav__btn:hover,
.game-nav__link.router-link-active,
.game-nav__link.router-link-exact-active,
.game-nav__btn.router-link-active {
    background: rgba(217, 154, 36, 0.22) !important;
    border-color: rgba(255, 216, 138, 0.64);
    color: #fff8e8 !important;
    filter: none;
}

.game-nav__btn--login,
.game-nav__btn--register {
    background: rgba(255, 218, 121, 0.18) !important;
}

.client-auth-shell {
    grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
    gap: 16px;
}

.client-auth-card {
    background:
        linear-gradient(180deg, rgba(14, 39, 78, 0.92), rgba(10, 28, 58, 0.94)),
        url("/assets/frontend/home/v1/images/bg-box-new.png") center / cover;
    border-color: var(--client-line-blue);
}

.client-auth-card .client-panel__title {
    color: #fff4d7;
}

.client-auth-card .client-panel__desc {
    color: rgba(255, 241, 209, 0.78);
}

.client-field {
    color: #4f412e;
}

.client-field input,
.client-field select,
.login-box input,
.auth-box input,
.form-group input,
.form-group select,
.modal input,
.table-info input {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(124, 82, 34, 0.24);
    color: var(--client-ink);
}

.client-field input:focus,
.client-field select:focus,
.modal input:focus,
.table-info input:focus {
    border-color: rgba(217, 154, 36, 0.72);
    box-shadow: 0 0 0 4px rgba(217, 154, 36, 0.16);
}

.client-btn--primary,
.login-box button,
.auth-box button {
    background: linear-gradient(180deg, #f1b948, #c66d22);
    color: #1f1306 !important;
    box-shadow: 0 12px 24px rgba(120, 61, 14, 0.22);
}

.client-btn--primary:hover,
.login-box button:hover,
.auth-box button:hover,
.action-btn:hover {
    filter: brightness(1.03);
}

.client-segment,
.tab-navigation,
.client-tab-list {
    background: rgba(12, 31, 60, 0.06);
    border-color: rgba(124, 82, 34, 0.16);
}

.client-segment a,
.tab-btn {
    color: #634b2f !important;
}

.client-segment a.active,
.client-segment a.router-link-active,
.tab-btn.active {
    background: linear-gradient(180deg, #15365f, #0d2444) !important;
    color: #fff1cc !important;
    box-shadow: 0 8px 16px rgba(13, 36, 68, 0.18);
}

.tab-content,
.history,
.qr-box {
    background: rgba(255, 255, 255, 0.52) !important;
    border-color: rgba(124, 82, 34, 0.16) !important;
}

.ranking-table,
.history table {
    min-width: 0;
}

.ranking-table th,
.ranking-table td,
.history th,
.history td,
.table-info td {
    border-bottom-color: rgba(124, 82, 34, 0.14);
    color: var(--client-ink);
}

.ranking-table th,
.history th {
    background: rgba(21, 54, 95, 0.08);
    color: #5e4c34;
}

.ranking-table tbody tr:hover td,
.history tbody tr:hover td {
    background: rgba(255, 241, 196, 0.45);
}

.rank-cup.gold {
    background: #e9b63f;
}

.rank-cup.silver {
    background: #d8dee6;
}

.rank-cup.bronze {
    background: #dfa06b;
}

.giftcode-header,
.giftcode-details,
.item-card {
    background: rgba(255, 255, 255, 0.48);
}

.giftcode-header:hover {
    background: rgba(255, 241, 196, 0.42);
}

.giftcode-item,
.item-card {
    border-color: rgba(124, 82, 34, 0.15);
}

.copy-icon {
    background: rgba(21, 54, 95, 0.1);
    color: #15365f;
}

.note {
    background: rgba(255, 241, 196, 0.5);
    border-color: rgba(217, 154, 36, 0.28);
    color: #70420f;
}

.action-btn,
.post-action-btn,
.page-btn {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(124, 82, 34, 0.22);
    color: var(--client-ink) !important;
}

.status-active,
.status-success {
    background: rgba(33, 138, 91, 0.14);
    color: #16633f;
}

.status-pending {
    background: rgba(217, 154, 36, 0.18);
    color: #70420f;
}

.status-failed {
    background: rgba(194, 65, 45, 0.13);
    color: #8f2f22;
}

.post-content,
.content-preview-text,
.sidebar-widget p,
.profile-stat,
.profile-meta dt,
.client-auth-note,
.giftcode-stats,
.giftcode-hint,
.qr-caption {
    color: var(--client-muted);
}

.post-meta span {
    background: rgba(21, 54, 95, 0.08);
    color: #5e4c34;
}

.widget-link,
.content-read-more-btn,
.client-auth-note a {
    color: #106f82 !important;
}

@media (max-width: 860px) {
    .game-nav {
        width: min(310px, calc(100vw - 44px));
        padding: 76px 14px 18px;
        background: rgba(7, 20, 45, 0.97);
    }

    .game-nav__link,
    .game-nav__btn {
        width: 100%;
        max-width: none;
        height: 42px;
        justify-content: flex-start;
        padding: 0 16px;
    }

    .client-page,
    .client-page--auth,
    .client-page--post {
        width: min(100% - 22px, 680px);
    }

    .client-page-head,
    .client-page-head--split {
        gap: 14px;
    }

    .client-auth-shell,
    .topup-grid,
    .topup-grid--card,
    .client-profile-grid,
    .post-wrapper {
        grid-template-columns: 1fr;
    }

    .client-auth-card {
        min-height: 150px;
    }

    .button-grid-2x2,
    .button-grid-1x3 {
        grid-template-columns: 1fr 1fr;
    }

    .post-detail,
    .sidebar-widget {
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 640px) {
    .inner-page {
        padding-top: 78px;
    }

    .client-page {
        width: calc(100% - 18px);
    }

    .client-panel__title,
    .post-detail h1 {
        font-size: 22px;
    }

    .client-panel__desc {
        font-size: 12px;
    }

    .client-panel > .client-page-head,
    .rankings-container > .client-page-head,
    .giftcode-container > .client-page-head,
    .client-page-head--split,
    .client-auth-card,
    .client-auth-form,
    .topup-box,
    .side-box,
    .profile-card,
    .profile-actions,
    .post-detail,
    .sidebar-widget {
        padding: 16px;
    }

    .tabs-container,
    .client-tabs,
    .giftcode-list {
        margin: 14px 16px 0;
    }

    .client-segment {
        grid-template-columns: 1fr;
    }

    .tab-navigation,
    .client-tab-list {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab-navigation::-webkit-scrollbar,
    .client-tab-list::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        min-width: 118px;
    }

    .tab-content {
        border: 0 !important;
        background: transparent !important;
    }

    .ranking-table,
    .ranking-table thead,
    .ranking-table tbody,
    .ranking-table tr,
    .ranking-table th,
    .ranking-table td,
    .history table,
    .history thead,
    .history tbody,
    .history tr,
    .history th,
    .history td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .ranking-table thead,
    .history thead {
        display: none;
    }

    .ranking-table tbody,
    .history tbody {
        display: grid;
        gap: 10px;
    }

    .ranking-table tr,
    .history tr {
        padding: 12px;
        border: 1px solid rgba(124, 82, 34, 0.16);
        border-radius: 10px;
        background: rgba(255, 252, 244, 0.74);
    }

    .ranking-table td,
    .history td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(124, 82, 34, 0.1);
        text-align: right !important;
        word-break: break-word;
    }

    .ranking-table td:last-child,
    .history td:last-child {
        border-bottom: 0;
    }

    .ranking-table td::before,
    .history td::before {
        flex: 0 0 auto;
        color: #6d5c45;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ranking-table td:nth-child(1)::before {
        content: "Hạng";
    }

    .ranking-table td:nth-child(2)::before {
        content: "Nhân vật";
    }

    .ranking-table td:nth-child(3)::before {
        content: "Chỉ số";
    }

    .history td:nth-child(1)::before {
        content: "Thời gian";
    }

    .history td:nth-child(2)::before {
        content: "Số tiền";
    }

    .history td:nth-child(3)::before {
        content: "Trạng thái";
    }

    .history td:nth-child(4)::before {
        content: "Mã thẻ";
    }

    .history td:nth-child(5)::before {
        content: "Mệnh giá";
    }

    .history td:nth-child(6)::before {
        content: "Thời gian";
    }

    .history td:nth-child(7)::before {
        content: "Trạng thái";
    }

    .topup-grid--card .history td:nth-child(1)::before {
        content: "STT";
    }

    .topup-grid--card .history td:nth-child(2)::before {
        content: "Loại thẻ";
    }

    .topup-grid--card .history td:nth-child(3)::before {
        content: "Seri";
    }

    .topup-grid--card .history td:nth-child(4)::before {
        content: "Mã thẻ";
    }

    .topup-grid--card .history td:nth-child(5)::before {
        content: "Mệnh giá";
    }

    .topup-grid--card .history td:nth-child(6)::before {
        content: "Thời gian";
    }

    .topup-grid--card .history td:nth-child(7)::before {
        content: "Trạng thái";
    }

    .ranking-table td[colspan]::before,
    .history td[colspan]::before {
        display: none;
        content: "";
    }

    .rank-number {
        justify-content: space-between !important;
    }

    .topup-box--qr {
        order: 1;
    }

    .side-box {
        order: 2;
    }

    .table-info,
    .table-info tbody,
    .table-info tr,
    .table-info td {
        display: block;
        width: 100%;
    }

    .table-info tr {
        padding: 9px 0;
        border-bottom: 1px solid rgba(124, 82, 34, 0.12);
    }

    .table-info td {
        padding: 2px 0;
        border: 0;
    }

    .table-info td:first-child {
        width: 100%;
        font-size: 12px;
    }

    .giftcode-header {
        align-items: flex-start;
        min-height: auto;
        gap: 12px;
    }

    .giftcode-name {
        font-size: 15px;
        word-break: break-all;
    }

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

    .profile-card--account {
        flex-direction: row;
        align-items: center;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-meta div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .button-grid-2x2,
    .button-grid-1x3,
    .post-actions,
    .btn-row,
    .modal-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .action-btn,
    .post-action-btn,
    .client-btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .client-panel > .client-page-head,
    .rankings-container > .client-page-head,
    .giftcode-container > .client-page-head,
    .client-page-head--split,
    .client-auth-card,
    .client-auth-form,
    .topup-box,
    .side-box,
    .profile-card,
    .profile-actions,
    .post-detail,
    .sidebar-widget {
        padding: 14px;
    }

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

    .profile-card--account {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Function page final responsive fixes */
.client-auth-art {
    position: relative;
    min-height: 188px;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 216, 138, 0.2);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 216, 138, 0.16),
            transparent 32%
        ),
        linear-gradient(135deg, rgba(7, 20, 45, 0.88), rgba(30, 58, 105, 0.76));
}

.client-auth-logo {
    position: relative;
    z-index: 2;
    width: 142px;
    max-width: 60%;
    margin: 18px 0 0 18px;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.32));
}

.client-auth-hero {
    position: absolute;
    right: -24px;
    bottom: -72px;
    z-index: 1;
    width: min(250px, 64%);
    opacity: 0.92;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.client-auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.client-auth-links a {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(217, 154, 36, 0.28);
    border-radius: 999px;
    background: rgba(255, 248, 232, 0.68);
    color: #3f2d17;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.profile-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 16px;
}

.profile-dashboard > .alert,
.profile-hero-card,
.profile-actions {
    grid-column: 1 / -1;
}

.profile-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.profile-hero-card__main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.profile-hero-card__main .client-panel__title {
    margin-bottom: 8px;
    word-break: break-word;
}

.profile-balance-grid,
.profile-wallet-grid,
.profile-stat-grid,
.disciple-preview {
    display: grid;
    gap: 10px;
}

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

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

.profile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.disciple-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
}

.profile-balance-card,
.profile-wallet-grid > div,
.profile-stat-grid > div,
.disciple-power,
.disciple-preview > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(124, 82, 34, 0.14);
    border-radius: 10px;
    background: rgba(255, 252, 244, 0.74);
}

.profile-balance-card span,
.profile-wallet-grid span,
.profile-stat-grid span,
.disciple-power span,
.disciple-preview span {
    display: block;
    margin-bottom: 4px;
    color: #6d5c45;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-balance-card strong,
.profile-wallet-grid strong,
.profile-stat-grid strong,
.disciple-power strong,
.disciple-preview strong {
    display: block;
    min-width: 0;
    color: #1f2d44;
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.profile-card__head {
    margin-bottom: 14px;
}

.profile-card__head .client-panel__eyebrow {
    margin-bottom: 4px;
}

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

.profile-meta--compact div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(124, 82, 34, 0.12);
    border-radius: 10px;
    background: rgba(255, 252, 244, 0.66);
}

.profile-empty,
.profile-muted {
    color: #6d5c45;
}

.profile-muted {
    margin: 0;
    line-height: 1.6;
}

.disciple-summary {
    display: grid;
    gap: 10px;
}

@media (max-width: 860px) {
    .game-header--menu-open {
        background: rgba(7, 20, 45, 0.96);
        border-bottom-color: rgba(255, 216, 138, 0.22);
        backdrop-filter: blur(12px);
    }

    .game-header--menu-open .game-header__toggle span {
        background: #fff3d4;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        position: fixed !important;
        top: 64px !important;
        right: 10px !important;
        bottom: auto !important;
        left: 10px !important;
        z-index: 2000;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - 82px);
        margin: 0 !important;
        padding: 12px !important;
        gap: 8px;
        overflow: auto;
        border: 1px solid rgba(255, 216, 138, 0.22);
        border-radius: 12px;
        background: rgba(7, 20, 45, 0.98) !important;
        box-shadow: 0 22px 46px rgba(0, 0, 0, 0.38);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) !important;
        transition:
            opacity 0.18s ease,
            transform 0.18s ease;
    }

    .game-nav--open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) !important;
    }

    .game-nav__link,
    .game-nav__btn {
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        text-align: center;
    }

    .game-nav__link--user {
        max-width: none !important;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 1900;
        background: rgba(0, 0, 0, 0.32);
    }

    .client-auth-shell {
        grid-template-columns: 1fr;
    }

    .client-auth-art {
        min-height: 126px;
    }

    .client-auth-hero {
        right: -18px;
        bottom: -58px;
        width: 186px;
    }

    .profile-dashboard,
    .profile-hero-card {
        grid-template-columns: 1fr;
    }

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

/* Latest VPS refinements: ATM QR, profile layout, mobile header */
.qr-box {
    position: relative;
    min-height: 292px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-image--disabled {
    filter: grayscale(1) blur(4px);
    opacity: 0.38;
    pointer-events: none;
    user-select: none;
}

.qr-disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    min-width: 168px;
    padding: 10px 14px;
    border: 1px solid rgba(154, 52, 18, 0.26);
    border-radius: 8px;
    background: rgba(255, 247, 237, 0.94);
    color: #9a3412;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.qr-box--disabled .qr-caption {
    color: #9a3412;
}

.client-page--profile {
    max-width: 1120px;
}

.profile-dashboard {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 1080px;
    margin: 0 auto;
}

.profile-dashboard > .alert,
.profile-hero-card,
.profile-card--character,
.profile-card--wallet,
.profile-actions {
    grid-column: 1 / -1 !important;
}

.profile-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
}

.profile-hero-card__main,
.profile-balance-grid,
.profile-card,
.profile-actions {
    min-width: 0;
}

.profile-meta--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.profile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.profile-wallet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.profile-balance-card,
.profile-wallet-grid > div,
.profile-stat-grid > div,
.profile-meta--compact div {
    border-color: rgba(124, 82, 34, 0.18) !important;
    background: rgba(255, 252, 244, 0.86) !important;
}

.profile-wallet-grid strong,
.profile-stat-grid strong,
.profile-balance-card strong {
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 64px !important;
        background: rgba(7, 20, 45, 0.98) !important;
        z-index: 3000 !important;
    }

    .game-header__toggle {
        position: relative;
        z-index: 3200 !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        bottom: auto !important;
        z-index: 3100 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: auto !important;
        max-height: calc(100dvh - 84px) !important;
        overflow-y: auto !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px) !important;
    }

    .game-nav--open,
    .game-header--scrolled .game-nav--open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) !important;
    }

    .mobile-overlay {
        z-index: 2900 !important;
    }

    .profile-hero-card,
    .profile-dashboard {
        grid-template-columns: 1fr !important;
    }

    .profile-meta--compact,
    .profile-stat-grid,
    .profile-wallet-grid,
    .profile-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .game-nav,
    .game-header--scrolled .game-nav {
        grid-template-columns: 1fr !important;
    }

    .profile-hero-card__main {
        align-items: flex-start;
    }

    .profile-meta--compact,
    .profile-stat-grid,
    .profile-wallet-grid,
    .profile-balance-grid,
    .button-grid-2x2,
    .button-grid-1x3 {
        grid-template-columns: 1fr !important;
    }
}

/* Live override: homepage titles, larger logo, auth card polish */
.box-list-new .tab-content .tab-detail .item-new-box,
.box-list-new .tab-content .tab-detail .item-new-box:link,
.box-list-new .tab-content .tab-detail .item-new-box:visited {
    color: #fff2cf !important;
}

.box-list-new .tab-content .tab-detail .item-new-box .cat-des {
    color: #fff2cf !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.62);
}

.box-list-new .tab-content .tab-detail .item-new-box:hover .cat-des {
    color: #ffd66d !important;
}

.box-list-new .tab-content .tab-detail .item-new-box .date-open {
    color: rgba(255, 242, 207, 0.74) !important;
}

.game-header {
    height: 96px !important;
}

.game-header--scrolled {
    height: 84px !important;
}

.game-header__inner {
    min-height: 100%;
}

.game-header__logo {
    min-width: 0;
}

.game-header__wordmark {
    width: 230px !important;
    height: auto !important;
    max-width: min(30vw, 260px) !important;
    max-height: none !important;
}

.game-header--scrolled .game-header__wordmark {
    width: 210px !important;
    height: auto !important;
    max-width: min(28vw, 240px) !important;
    max-height: none !important;
}

.client-auth-card {
    border-left: 0 !important;
    border-right: 0 !important;
}

.client-auth-art {
    display: flex !important;
    align-items: center !important;
    min-height: 190px !important;
    padding: 24px !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.client-auth-logo {
    width: 178px !important;
    max-width: 48% !important;
    margin: 0 !important;
}

.client-auth-hero {
    right: 18px !important;
    bottom: -60px !important;
    width: min(240px, 58%) !important;
}

@media (max-width: 1060px) {
    .game-header__wordmark {
        height: 72px !important;
        max-width: 430px !important;
    }

    .game-header--scrolled .game-header__wordmark {
        height: 66px !important;
        max-width: 390px !important;
    }
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 72px !important;
    }

    .game-header__inner {
        padding: 0 12px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 62px !important;
        max-width: min(290px, calc(100vw - 76px)) !important;
    }

    .game-header__toggle {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        align-items: center;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 78px !important;
    }

    .client-auth-art {
        min-height: 170px !important;
        padding: 20px !important;
    }
}

@media (max-width: 560px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 66px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 56px !important;
        max-width: min(250px, calc(100vw - 74px)) !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 72px !important;
    }

    .client-auth-art {
        min-height: 150px !important;
        padding: 16px !important;
    }

    .client-auth-logo {
        width: 148px !important;
        max-width: 54% !important;
    }

    .client-auth-hero {
        right: 8px !important;
        bottom: -48px !important;
        width: min(190px, 56%) !important;
    }
}

/* Absolute last overrides: FontAwesome must beat global font, comments must scroll */
.fa,
.fa-classic,
.fa-sharp,
.fas,
.fa-solid {
    font-family:
        "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-family:
        "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family:
        "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
}

.fa::before,
.fa-classic::before,
.fa-sharp::before,
.fas::before,
.fa-solid::before,
.far::before,
.fa-regular::before,
.fab::before,
.fa-brands::before {
    font-family: inherit !important;
}

.fb-comments-shell {
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.fb-comments {
    display: grid !important;
    max-height: clamp(300px, 45vh, 520px) !important;
    margin-top: 0 !important;
    padding: 14px !important;
    gap: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fb-comments::-webkit-scrollbar {
    width: 8px;
}

.fb-comments::-webkit-scrollbar-track {
    background: transparent;
}

.fb-comments::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

@media (max-width: 640px) {
    .fb-comments {
        max-height: 360px !important;
        padding: 12px 10px !important;
    }
}

/* Final client polish: Font Awesome 6, readable navbar, stable post comments */
.fa,
.fa-classic,
.fa-sharp,
.fas,
.fa-solid {
    font-family:
        "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-family:
        "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family:
        "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
}

.game-nav__link,
.game-nav__link:link,
.game-nav__link:visited,
.game-nav__link:active,
.game-nav__link--logout,
.game-nav__link--logout:link,
.game-nav__link--logout:visited,
.game-nav__link--logout:active {
    color: #111827 !important;
    text-shadow: none !important;
}

.game-nav__link:hover,
.game-nav__link.router-link-active,
.game-nav__link.router-link-exact-active,
.game-nav__link--logout:hover {
    color: #111827 !important;
}

.game-nav__link .text,
.game-nav__link span,
.game-nav__link--logout .text,
.game-nav__link--logout span {
    color: inherit !important;
}

.client-page--post .post-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px) !important;
    gap: 22px !important;
    align-items: start !important;
}

.client-page--post .post-sidebar {
    position: sticky !important;
    top: 92px !important;
}

.client-page--post .fb-comments-shell {
    display: flex !important;
    flex-direction: column !important;
    max-height: min(560px, 52vh) !important;
    overflow: hidden !important;
}

.client-page--post .fb-comments {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.client-page--post .fb-comment {
    min-width: 0 !important;
}

.client-page--post .fb-comment__main,
.client-page--post .fb-bubble {
    min-width: 0 !important;
    max-width: 100% !important;
}

.client-page--post .fb-bubble p {
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 980px) {
    .client-page--post .post-wrapper {
        grid-template-columns: 1fr !important;
    }

    .client-page--post .post-sidebar {
        position: static !important;
    }
}

@media (max-width: 640px) {
    .client-page--post {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .client-page--post .post-detail,
    .client-page--post .sidebar-widget {
        border-radius: 10px !important;
    }

    .client-page--post .fb-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .client-page--post .fb-action {
        min-width: 0 !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 13px !important;
    }

    .client-page--post .fb-composer {
        align-items: flex-start !important;
    }

    .client-page--post .fb-composer__foot {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .client-page--post .fb-comments-shell {
        max-height: 430px !important;
    }
}

/* Stable post-detail reset */
.client-page--post {
    width: min(1080px, calc(100% - 28px)) !important;
}

.client-page--post .post-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 720px) minmax(240px, 300px) !important;
    gap: 22px !important;
    align-items: start !important;
    justify-content: center !important;
}

.client-page--post .post-detail,
.client-page--post .sidebar-widget {
    background: #fff8e8 !important;
    border: 1px solid rgba(176, 115, 38, 0.22) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 44px rgba(2, 8, 23, 0.28) !important;
}

.client-page--post .post-detail {
    padding: 20px !important;
    overflow: hidden !important;
}

.client-page--post .post-detail h1 {
    color: #172033 !important;
    font-size: clamp(24px, 3vw, 34px) !important;
    line-height: 1.2 !important;
    margin: 8px 0 14px !important;
}

.client-page--post .client-panel__eyebrow {
    color: #b45f12 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.client-page--post .post-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.client-page--post .post-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: rgba(21, 54, 95, 0.08) !important;
    color: #566176 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.client-page--post .content-preview,
.client-page--post .post-content {
    color: #1f2937 !important;
}

.client-page--post .content-preview-text,
.client-page--post .post-content {
    max-width: 100%;
    line-height: 1.75 !important;
}

.client-page--post .content-preview-text {
    max-height: 260px !important;
    overflow: hidden !important;
    position: relative;
}

.client-page--post .content-preview-text::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0), #fff8e8);
}

.client-page--post .content-read-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 0 !important;
    background: transparent !important;
    color: #0f7182 !important;
    font-weight: 900 !important;
}

.client-page--post .fb-engagement {
    margin-top: 20px !important;
    border-top: 1px solid rgba(124, 82, 34, 0.16) !important;
}

.client-page--post .fb-engagement__summary {
    min-height: 46px !important;
    color: #5f6b7d !important;
}

.client-page--post .fb-engagement__summary button,
.client-page--post .fb-action,
.client-page--post .fb-comment__actions button {
    color: #5f6b7d !important;
}

.client-page--post .fb-actions {
    border-color: rgba(124, 82, 34, 0.14) !important;
}

.client-page--post .fb-action {
    min-height: 42px !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.client-page--post .fb-action:hover,
.client-page--post .fb-action.active {
    background: rgba(24, 119, 242, 0.1) !important;
    color: #1877f2 !important;
}

.client-page--post .fb-composer {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: start !important;
}

.client-page--post .fb-composer textarea {
    min-height: 50px !important;
    max-height: 130px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #eef2f7 !important;
    color: #111827 !important;
}

.client-page--post .fb-composer textarea::placeholder {
    color: #9aa4b2 !important;
}

.client-page--post .fb-composer__foot {
    color: #7a8699 !important;
}

.client-page--post .fb-composer__foot button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #1877f2 !important;
    color: #fff !important;
}

.client-page--post .fb-comments-shell {
    margin-top: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(124, 82, 34, 0.16) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

.client-page--post .fb-comments-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.client-page--post .fb-comments-head strong {
    color: #172033 !important;
}

.client-page--post .fb-comments-head span {
    color: #667085 !important;
}

.client-page--post .fb-comments {
    display: grid !important;
    gap: 14px !important;
    max-height: clamp(300px, 46vh, 520px) !important;
    min-height: 150px !important;
    margin: 0 !important;
    padding: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
}

.client-page--post .fb-empty {
    background: #f8fafc !important;
    color: #667085 !important;
}

.client-page--post .fb-comment-thread {
    display: grid !important;
    gap: 10px !important;
}

.client-page--post .fb-comment {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
}

.client-page--post .fb-comment--compact {
    grid-template-columns: 32px minmax(0, 1fr) !important;
}

.client-page--post .fb-avatar {
    background: linear-gradient(135deg, #e59a13, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.client-page--post .fb-avatar--small {
    width: 38px !important;
    height: 38px !important;
    border: 2px solid #ffffff !important;
}

.client-page--post .fb-comment--compact .fb-avatar--small {
    width: 32px !important;
    height: 32px !important;
}

.client-page--post .fb-bubble {
    display: inline-block !important;
    max-width: min(100%, 560px) !important;
    padding: 9px 13px !important;
    border-radius: 18px !important;
    background: #f0f2f5 !important;
    color: #111827 !important;
}

.client-page--post .fb-bubble strong {
    color: #111827 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.client-page--post .fb-bubble p {
    color: #1f2937 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.client-page--post .fb-comment__actions {
    gap: 10px !important;
    padding: 5px 0 0 12px !important;
    color: #667085 !important;
}

.client-page--post .fb-comment__actions button,
.client-page--post .fb-comment__actions span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.client-page--post .fb-comment__actions button:hover,
.client-page--post .fb-comment__actions button.active {
    color: #1877f2 !important;
}

.client-page--post .fb-replies {
    display: grid !important;
    gap: 10px !important;
    margin-left: 52px !important;
    padding-left: 12px !important;
    border-left: 2px solid #e5e7eb !important;
}

.client-page--post .post-sidebar {
    position: sticky !important;
    top: 92px !important;
    display: grid !important;
    gap: 14px !important;
}

.client-page--post .sidebar-widget {
    padding: 18px !important;
}

.client-page--post .sidebar-widget h4 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #172033 !important;
}

.client-page--post .widget-link,
.client-page--post .sidebar-widget p {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 8px !important;
    border-radius: 8px !important;
    color: #0f7182 !important;
}

.client-page--post .widget-link:hover {
    background: #eef2f7 !important;
    color: #1877f2 !important;
}

.client-page--post
    :is(
        .fa,
        .fa-classic,
        .fa-sharp,
        .fas,
        .fa-solid,
        .far,
        .fa-regular,
        .fab,
        .fa-brands
    ),
.client-page--post
    :is(
        .fa,
        .fa-classic,
        .fa-sharp,
        .fas,
        .fa-solid,
        .far,
        .fa-regular,
        .fab,
        .fa-brands
    )::before {
    font-style: normal !important;
    font-synthesis: none !important;
    line-height: 1 !important;
}

.client-page--post :is(.fa, .fa-classic, .fa-sharp, .fas, .fa-solid)::before,
.client-page--post :is(.fa, .fa-classic, .fa-sharp, .fas, .fa-solid) {
    font-family:
        "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free",
        FontAwesome !important;
    font-weight: 900 !important;
}

.client-page--post :is(.far, .fa-regular)::before,
.client-page--post :is(.far, .fa-regular) {
    font-family:
        "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free",
        FontAwesome !important;
    font-weight: 400 !important;
}

.client-page--post :is(.fab, .fa-brands)::before,
.client-page--post :is(.fab, .fa-brands) {
    font-family:
        "Font Awesome 7 Brands", "Font Awesome 6 Brands",
        "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
}

@media (max-width: 900px) {
    .client-page--post {
        width: min(100% - 20px, 720px) !important;
    }

    .client-page--post .post-wrapper {
        grid-template-columns: 1fr !important;
    }

    .client-page--post .post-sidebar {
        position: static !important;
        order: -1;
    }
}

@media (max-width: 640px) {
    .client-page--post {
        width: calc(100% - 14px) !important;
    }

    .client-page--post .post-detail,
    .client-page--post .sidebar-widget {
        padding: 14px !important;
        border-radius: 10px !important;
    }

    .client-page--post .post-detail h1 {
        font-size: 22px !important;
    }

    .client-page--post .post-meta {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .client-page--post .fb-engagement__summary {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    .client-page--post .fb-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    .client-page--post .fb-action {
        gap: 5px !important;
        padding: 0 4px !important;
        font-size: 12px !important;
    }

    .client-page--post .fb-composer {
        grid-template-columns: 36px minmax(0, 1fr) !important;
    }

    .client-page--post .fb-composer__foot span {
        display: none !important;
    }

    .client-page--post .fb-comments {
        max-height: 360px !important;
        padding: 12px 10px !important;
    }

    .client-page--post .fb-comment {
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }

    .client-page--post .fb-avatar--small {
        width: 34px !important;
        height: 34px !important;
    }

    .client-page--post .fb-replies,
    .client-page--post .fb-composer--reply {
        margin-left: 18px !important;
    }
}

/* Final FontAwesome/comment fixes */
.fa,
.fa-classic,
.fa-sharp,
.fas,
.fa-solid {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 7 Brands" !important;
    font-weight: 400 !important;
}

.fa::before,
.fa-classic::before,
.fa-sharp::before,
.fas::before,
.fa-solid::before,
.far::before,
.fa-regular::before,
.fab::before,
.fa-brands::before {
    font-family: inherit !important;
}

.fb-comments-shell {
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.fb-comments {
    display: grid !important;
    max-height: clamp(300px, 45vh, 520px) !important;
    margin-top: 0 !important;
    padding: 14px !important;
    gap: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fb-comments::-webkit-scrollbar {
    width: 8px;
}

.fb-comments::-webkit-scrollbar-track {
    background: transparent;
}

.fb-comments::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

@media (max-width: 640px) {
    .fb-comments {
        max-height: 360px !important;
        padding: 12px 10px !important;
    }
}

/* Post detail comment polish */
.client-page--post {
    width: min(1060px, calc(100% - 32px)) !important;
}

.post-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 720px) minmax(240px, 300px) !important;
    align-items: start !important;
    justify-content: center !important;
    gap: 22px !important;
}

.post-detail {
    overflow: hidden;
    padding: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 20px 46px rgba(2, 8, 23, 0.28) !important;
}

.post-detail > .client-panel__eyebrow,
.post-detail > h1,
.post-detail > .post-meta,
.post-detail > .content-preview,
.post-detail > .post-content,
.post-detail > .fb-engagement {
    margin-left: 18px;
    margin-right: 18px;
}

.post-detail > .client-panel__eyebrow {
    margin-top: 18px;
    color: #b56a10;
}

.post-detail h1 {
    margin-top: 6px;
    margin-bottom: 10px;
    color: #111827 !important;
    font-size: 26px;
    line-height: 1.25;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
    margin-bottom: 14px;
}

.post-meta span {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #667085 !important;
    font-size: 12px !important;
}

.content-preview,
.post-content {
    color: #1f2937 !important;
}

.content-read-more-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    padding: 0 !important;
    border: 0;
    background: transparent !important;
    color: #e18a08 !important;
    font-weight: 900 !important;
}

.fb-engagement {
    margin-top: 18px !important;
    padding-bottom: 18px;
    border-top: 1px solid #e5e7eb !important;
}

.fb-engagement__summary {
    min-height: 44px !important;
    color: #667085 !important;
}

.fb-engagement__summary > span,
.fb-engagement__summary button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.fb-like-dot {
    width: 22px !important;
    height: 22px !important;
    margin-right: 0 !important;
    background: #1877f2 !important;
    font-size: 11px !important;
}

.fb-actions {
    gap: 4px !important;
    padding: 6px 0 !important;
    border-color: #e5e7eb !important;
}

.fb-action {
    min-height: 40px !important;
    border-radius: 8px !important;
    color: #667085 !important;
}

.fb-action i,
.fb-comment__actions i,
.widget-link i,
.sidebar-widget h4 i,
.sidebar-widget p i {
    width: 16px;
    text-align: center;
}

.fb-action:hover,
.fb-action.active {
    background: #eef5ff !important;
    color: #1877f2 !important;
}

.fb-composer {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    margin-top: 12px !important;
}

.fb-composer textarea {
    min-height: 42px !important;
    max-height: 130px;
    resize: vertical !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #f0f2f5 !important;
    color: #111827 !important;
}

.fb-composer textarea:focus {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14) !important;
}

.fb-composer__foot button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1877f2 !important;
}

.fb-comments-shell {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.fb-comments-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
}

.fb-comments-head > div {
    display: grid;
    gap: 2px;
}

.fb-comments-head strong {
    color: #111827;
    font-size: 15px;
}

.fb-comments-head span {
    color: #667085;
    font-size: 12px;
}

.fb-comments-head > i {
    color: #98a2b3;
}

.fb-comments {
    max-height: clamp(280px, 46vh, 520px);
    margin-top: 0 !important;
    padding: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fb-comments::-webkit-scrollbar {
    width: 8px;
}

.fb-comments::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.fb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc !important;
    color: #667085 !important;
}

.fb-comment-thread {
    gap: 10px !important;
}

.fb-comment {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 10px !important;
}

.fb-comment--compact {
    grid-template-columns: 30px minmax(0, 1fr) !important;
}

.fb-avatar {
    background: linear-gradient(135deg, #f59e0b, #3b82f6) !important;
    box-shadow: none !important;
}

.fb-avatar--small {
    width: 36px !important;
    height: 36px !important;
    border: 2px solid #fff;
}

.fb-comment--compact .fb-avatar--small {
    width: 30px !important;
    height: 30px !important;
}

.fb-bubble {
    max-width: min(100%, 560px) !important;
    padding: 9px 12px !important;
    border-radius: 18px !important;
    background: #f0f2f5 !important;
}

.fb-bubble strong {
    color: #111827 !important;
}

.fb-bubble p {
    color: #1f2937 !important;
}

.fb-comment__actions {
    gap: 9px !important;
    padding-left: 12px !important;
    color: #667085 !important;
}

.fb-comment__actions button,
.fb-comment__actions span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fb-replies {
    position: relative;
    margin-left: 48px !important;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
}

.post-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
}

.sidebar-widget {
    padding: 18px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.sidebar-widget h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #111827 !important;
}

.widget-link,
.sidebar-widget p {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 10px 8px;
    border-radius: 8px;
    color: #344054 !important;
}

.widget-link:hover {
    background: #f0f2f5;
    color: #1877f2 !important;
}

@media (max-width: 900px) {
    .post-wrapper {
        grid-template-columns: 1fr !important;
    }

    .post-sidebar {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .client-page--post {
        width: calc(100% - 18px) !important;
    }

    .post-detail > .client-panel__eyebrow,
    .post-detail > h1,
    .post-detail > .post-meta,
    .post-detail > .content-preview,
    .post-detail > .post-content,
    .post-detail > .fb-engagement {
        margin-left: 12px;
        margin-right: 12px;
    }

    .post-detail h1 {
        font-size: 21px;
    }

    .post-meta {
        gap: 6px !important;
    }

    .fb-engagement__summary {
        align-items: stretch !important;
    }

    .fb-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .fb-action {
        gap: 5px !important;
        padding: 0 4px;
        font-size: 12px !important;
    }

    .fb-composer {
        grid-template-columns: 36px minmax(0, 1fr) !important;
    }

    .fb-comments {
        max-height: 380px;
        padding: 12px 10px;
    }

    .fb-replies,
    .fb-composer--reply {
        margin-left: 18px !important;
    }
}

/* Final header logo switch: PC logo_horizon, mobile bannergame */
.game-header {
    height: 84px !important;
}

.game-header--scrolled {
    height: 74px !important;
}

.game-header__logo {
    height: 100% !important;
    max-width: 300px !important;
    display: flex !important;
    align-items: center !important;
}

.game-header__wordmark {
    display: block !important;
    width: auto !important;
    height: 76px !important;
    max-width: 290px !important;
    max-height: 76px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.game-header--scrolled .game-header__wordmark {
    width: auto !important;
    height: 66px !important;
    max-width: 260px !important;
    max-height: 66px !important;
}

@media (max-width: 1060px) {
    .game-header__logo {
        max-width: 250px !important;
    }

    .game-header__wordmark {
        height: 64px !important;
        max-width: 240px !important;
        max-height: 64px !important;
    }

    .game-header--scrolled .game-header__wordmark {
        height: 58px !important;
        max-width: 220px !important;
        max-height: 58px !important;
    }
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 62px !important;
    }

    .game-header__inner {
        padding: 0 12px !important;
    }

    .game-header__logo {
        width: 58px !important;
        max-width: 58px !important;
        flex: 0 0 58px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .game-header__toggle {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 68px !important;
        max-height: calc(100dvh - 78px) !important;
    }
}

@media (max-width: 390px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 58px !important;
    }

    .game-header__logo {
        width: 54px !important;
        max-width: 54px !important;
        flex-basis: 54px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 64px !important;
    }
}

/* Header logo source split: desktop logo_horizon, mobile bannergame */
.game-header {
    height: 84px !important;
}

.game-header--scrolled {
    height: 74px !important;
}

.game-header__logo {
    height: 100% !important;
    max-width: 300px !important;
    display: flex !important;
    align-items: center !important;
}

.game-header__wordmark {
    display: block !important;
    width: auto !important;
    height: 76px !important;
    max-width: 290px !important;
    max-height: 76px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.game-header--scrolled .game-header__wordmark {
    width: auto !important;
    height: 66px !important;
    max-width: 260px !important;
    max-height: 66px !important;
}

@media (max-width: 1060px) {
    .game-header__logo {
        max-width: 250px !important;
    }

    .game-header__wordmark {
        height: 64px !important;
        max-width: 240px !important;
        max-height: 64px !important;
    }

    .game-header--scrolled .game-header__wordmark {
        height: 58px !important;
        max-width: 220px !important;
        max-height: 58px !important;
    }
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 62px !important;
    }

    .game-header__inner {
        padding: 0 12px !important;
    }

    .game-header__logo {
        width: 58px !important;
        max-width: 58px !important;
        flex: 0 0 58px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .game-header__toggle {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 68px !important;
        max-height: calc(100dvh - 78px) !important;
    }
}

@media (max-width: 390px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 58px !important;
    }

    .game-header__logo {
        width: 54px !important;
        max-width: 54px !important;
        flex-basis: 54px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 64px !important;
    }
}

/* Logo fit correction: keep the new tall PNG proportional and inside header */
.game-header {
    height: 76px !important;
}

.game-header--scrolled {
    height: 68px !important;
}

.game-header__logo {
    width: auto !important;
    max-width: 220px !important;
    overflow: visible;
}

.game-header__wordmark {
    width: auto !important;
    height: 68px !important;
    max-width: 210px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.game-header--scrolled .game-header__wordmark {
    width: auto !important;
    height: 60px !important;
    max-width: 190px !important;
    max-height: 60px !important;
}

@media (max-width: 1060px) {
    .game-header__wordmark {
        height: 62px !important;
        max-width: 190px !important;
        max-height: 62px !important;
    }

    .game-header--scrolled .game-header__wordmark {
        height: 56px !important;
        max-width: 176px !important;
        max-height: 56px !important;
    }
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 62px !important;
    }

    .game-header__inner {
        padding: 0 12px !important;
    }

    .game-header__logo {
        max-width: calc(100vw - 74px) !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: auto !important;
        height: 54px !important;
        max-width: min(165px, calc(100vw - 86px)) !important;
        max-height: 54px !important;
    }

    .game-header__toggle {
        width: 42px !important;
        height: 42px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 68px !important;
        max-height: calc(100dvh - 78px) !important;
    }
}

@media (max-width: 560px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 58px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 50px !important;
        max-width: min(150px, calc(100vw - 82px)) !important;
        max-height: 50px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 64px !important;
    }
}

@media (max-width: 390px) {
    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 46px !important;
        max-width: min(138px, calc(100vw - 78px)) !important;
        max-height: 46px !important;
    }
}

@media (max-width: 390px) {
    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 50px !important;
        max-width: min(220px, calc(100vw - 70px)) !important;
    }
}

/* Final homepage/auth polish */
.box-list-new .tab-content .tab-detail .item-new-box,
.box-list-new .tab-content .tab-detail .item-new-box:link,
.box-list-new .tab-content .tab-detail .item-new-box:visited {
    color: #fff2cf !important;
}

.box-list-new .tab-content .tab-detail .item-new-box .cat-des {
    color: #fff2cf !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.62);
}

.box-list-new .tab-content .tab-detail .item-new-box:hover .cat-des {
    color: #ffd66d !important;
}

.box-list-new .tab-content .tab-detail .item-new-box .date-open {
    color: rgba(255, 242, 207, 0.74) !important;
}

.game-header {
    height: 96px !important;
}

.game-header--scrolled {
    height: 84px !important;
}

.game-header__inner {
    min-height: 100%;
}

.game-header__logo {
    min-width: 0;
}

.game-header__wordmark {
    width: 230px !important;
    height: auto !important;
    max-width: min(30vw, 260px) !important;
    max-height: none !important;
}

.game-header--scrolled .game-header__wordmark {
    width: 210px !important;
    height: auto !important;
    max-width: min(28vw, 240px) !important;
    max-height: none !important;
}

.client-auth-card {
    border-left: 0 !important;
    border-right: 0 !important;
}

.client-auth-art {
    display: flex !important;
    align-items: center !important;
    min-height: 190px !important;
    padding: 24px !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.client-auth-logo {
    width: 178px !important;
    max-width: 48% !important;
    margin: 0 !important;
}

.client-auth-hero {
    right: 18px !important;
    bottom: -60px !important;
    width: min(240px, 58%) !important;
}

@media (max-width: 1060px) {
    .game-header__wordmark {
        height: 72px !important;
        max-width: 430px !important;
    }

    .game-header--scrolled .game-header__wordmark {
        height: 66px !important;
        max-width: 390px !important;
    }
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 72px !important;
    }

    .game-header__inner {
        padding: 0 12px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 62px !important;
        max-width: min(290px, calc(100vw - 76px)) !important;
    }

    .game-header__toggle {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        align-items: center;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 78px !important;
    }

    .client-auth-art {
        min-height: 170px !important;
        padding: 20px !important;
    }
}

@media (max-width: 560px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 66px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 56px !important;
        max-width: min(250px, calc(100vw - 74px)) !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        top: 72px !important;
    }

    .client-auth-art {
        min-height: 150px !important;
        padding: 16px !important;
    }

    .client-auth-logo {
        width: 148px !important;
        max-width: 54% !important;
    }

    .client-auth-hero {
        right: 8px !important;
        bottom: -48px !important;
        width: min(190px, 56%) !important;
    }
}

@media (max-width: 390px) {
    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 50px !important;
        max-width: min(220px, calc(100vw - 70px)) !important;
    }
}

/* Facebook-like post engagement */
.fb-engagement {
    margin-top: 24px;
    border-top: 1px solid rgba(124, 82, 34, 0.16);
}

.fb-engagement button {
    font-family: inherit;
}

.fb-engagement__summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.fb-engagement__summary button {
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-weight: 700;
}

.fb-like-dot {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-size: 12px;
}

.fb-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(124, 82, 34, 0.12);
    border-bottom: 1px solid rgba(124, 82, 34, 0.12);
}

.fb-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.fb-action:hover,
.fb-action.active {
    background: rgba(24, 119, 242, 0.08);
    color: #1877f2;
}

.fb-message {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
}

.fb-composer {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.fb-composer--reply {
    grid-template-columns: 32px minmax(0, 1fr);
    margin: 8px 0 0 48px;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #2563eb);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.fb-avatar--small,
.fb-composer--reply .fb-avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.fb-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.fb-composer__body {
    min-width: 0;
}

.fb-composer textarea {
    width: 100%;
    min-height: 44px;
    resize: vertical;
    padding: 11px 13px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    outline: none;
    background: #f2f4f7;
    color: #101828;
    font: inherit;
    line-height: 1.45;
}

.fb-composer textarea:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.fb-composer__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: #98a2b3;
    font-size: 12px;
}

.fb-composer__foot button {
    min-height: 30px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #1877f2;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.fb-composer__foot button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.fb-composer__foot .plain {
    background: transparent;
    color: #667085;
}

.fb-comments {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.fb-empty {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 252, 244, 0.72);
    color: #6d5c45;
    text-align: center;
    font-weight: 700;
}

.fb-comment-thread {
    display: grid;
    gap: 8px;
}

.fb-comment {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
}

.fb-comment--compact {
    grid-template-columns: 28px minmax(0, 1fr);
}

.fb-comment__main {
    min-width: 0;
}

.fb-bubble {
    display: inline-block;
    max-width: min(100%, 680px);
    padding: 9px 12px;
    border-radius: 16px;
    background: #f2f4f7;
    color: #101828;
}

.fb-bubble strong {
    display: block;
    margin-bottom: 2px;
    color: #101828;
    font-size: 13px;
    font-weight: 900;
}

.fb-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.fb-comment__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 4px 0 0 12px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.fb-comment__actions button {
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-weight: 800;
}

.fb-comment__actions button:hover,
.fb-comment__actions button.active {
    color: #1877f2;
}

.fb-replies {
    display: grid;
    gap: 8px;
    margin-left: 48px;
}

@media (max-width: 720px) {
    .fb-engagement__summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .fb-actions {
        gap: 4px;
    }

    .fb-action {
        font-size: 12px;
    }

    .fb-composer__foot span {
        display: none;
    }

    .fb-replies,
    .fb-composer--reply {
        margin-left: 20px;
    }
}

@media (max-width: 640px) {
    .client-page--ranking .tab-navigation,
    .client-page--ranking .client-tab-list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        overflow: visible !important;
    }

    .client-page--ranking .tab-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px;
        padding: 0 4px;
        font-size: 11px !important;
        white-space: nowrap;
    }

    .client-page--ranking .tab-content {
        padding: 10px 0 0 !important;
    }

    .client-page--ranking .ranking-table {
        display: table !important;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        overflow: hidden;
        border: 1px solid rgba(124, 82, 34, 0.14);
        border-radius: 10px;
        background: rgba(255, 252, 244, 0.78);
    }

    .client-page--ranking .ranking-table thead {
        display: table-header-group !important;
    }

    .client-page--ranking .ranking-table tbody {
        display: table-row-group !important;
    }

    .client-page--ranking .ranking-table tr {
        display: table-row !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .client-page--ranking .ranking-table th,
    .client-page--ranking .ranking-table td {
        display: table-cell !important;
        width: auto !important;
        padding: 9px 6px !important;
        border-bottom: 1px solid rgba(124, 82, 34, 0.1);
        color: #21304a;
        font-size: 11px;
        line-height: 1.3;
        text-align: left !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal !important;
    }

    .client-page--ranking .ranking-table th {
        color: #6d5c45;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .client-page--ranking .ranking-table th:first-child,
    .client-page--ranking .ranking-table td:first-child {
        width: 42px !important;
        text-align: center !important;
    }

    .client-page--ranking .ranking-table td:nth-child(2) {
        max-width: 118px;
        font-weight: 900;
    }

    .client-page--ranking .ranking-table td:nth-child(3) {
        width: 36% !important;
        text-align: right !important;
    }

    .client-page--ranking .ranking-table td::before {
        display: none !important;
        content: "" !important;
    }

    .client-page--ranking .rank-cup {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .client-page--giftcode .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .client-page--giftcode .item-card {
        min-width: 0;
        padding: 8px;
    }

    .client-page--giftcode .item-name {
        font-size: 11px;
        line-height: 1.3;
    }

    .client-page--topup .history {
        border: 0 !important;
        background: transparent !important;
    }

    .client-page--topup .history h3 {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid rgba(124, 82, 34, 0.14);
        border-radius: 10px;
        background: rgba(255, 252, 244, 0.74);
    }

    .client-page--topup .history tbody {
        gap: 8px;
    }

    .client-page--topup .history tr {
        padding: 10px 12px !important;
        border-color: rgba(124, 82, 34, 0.14) !important;
        box-shadow: 0 10px 24px rgba(74, 47, 18, 0.08);
    }

    .client-page--topup .history td {
        gap: 10px;
        padding: 7px 0 !important;
        font-size: 12px;
        line-height: 1.35;
    }

    .client-page--topup .history td::before {
        min-width: 76px;
        color: #6d5c45;
        text-align: left;
    }

    .client-page--topup .history td[colspan] {
        display: block !important;
        padding: 12px 0 !important;
        color: #6d5c45;
        text-align: center !important;
    }

    .profile-dashboard {
        gap: 12px;
    }

    .profile-hero-card {
        padding: 16px;
    }

    .profile-hero-card__main {
        align-items: flex-start;
    }

    .profile-meta--compact,
    .profile-stat-grid,
    .profile-wallet-grid,
    .profile-balance-grid,
    .disciple-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .game-nav,
    .game-header--scrolled .game-nav {
        grid-template-columns: 1fr;
    }

    .client-page--giftcode .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .client-page--giftcode .item-card {
        padding: 7px 5px;
    }
}

/* ===== GAME FOOTER ===== */
.game-footer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--blue-dark) 0%, #060d1e 100%);
    border-top: 3px solid var(--accent);
    padding: 50px 24px 0;
    color: var(--text-warm);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
}

.game-footer__glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        180deg,
        rgba(255, 140, 0, 0.12) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.game-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 30px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.game-footer__left {
    text-align: center;
}

.game-footer__logo {
    height: 60px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.4));
}

.game-footer__brand {
    font-family: var(--font-heading);
    font-size: 18px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.game-footer__tagline {
    font-size: 12px;
    color: #7a8eb5;
    margin: 4px 0 0;
}

.game-footer__center {
    text-align: center;
}

.game-footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 14px;
}

.game-footer__links a {
    color: var(--text-warm);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
}

.game-footer__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.game-footer__links a:hover {
    color: var(--accent);
}
.game-footer__links a:hover::after {
    width: 100%;
}

.game-footer__nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
}

.game-footer__nav a {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--cyan);
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    transition: all 0.25s;
}

.game-footer__nav a:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.game-footer__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    font-family: var(--font-heading);
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    padding: 6px 20px;
    border-radius: 20px;
    transition: all 0.25s;
}

.social-btn--zalo {
    background: linear-gradient(135deg, #0068ff, #0098ff);
}

.social-btn--fb {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-footer__right {
    text-align: center;
}

.game-footer__right p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #8da0c0;
}

.game-footer__age {
    max-width: 100px;
    margin-top: 10px;
    opacity: 0.85;
}

.game-footer__bottom {
    text-align: center;
    margin-top: 30px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.game-footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: #5a6f8f;
}

.game-footer__bottom strong {
    color: var(--accent);
}

.game-footer__char {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 80px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .game-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .game-footer__char {
        display: none;
    }
    .game-footer {
        padding: 30px 16px 0;
    }
}

/* ===== INNER PAGE WRAPPER ===== */
.inner-page {
    background: linear-gradient(
        180deg,
        #0b1a3b 0%,
        #142850 30%,
        #1a3060 60%,
        #0b1a3b 100%
    );
    background-attachment: scroll;
    min-height: calc(100vh - 68px);
    padding-top: 88px;
    padding-bottom: 40px;
    position: relative;
}

.inner-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/assets/frontend/home/v1/images/bg-content.jpg") no-repeat
        center top;
    background-size: cover;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.inner-page > * {
    position: relative;
    z-index: 1;
}

/* Home page just needs header padding */
main:not(.inner-page) {
    padding-top: 68px;
}

/* ===== LOADING STATES ===== */
.page-switch-enter-active,
.page-switch-leave-active {
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.page-switch-enter-from {
    opacity: 0;
    transform: translateY(10px);
}

.page-switch-leave-to {
    opacity: 0;
    transform: translateY(-8px);
}

.site-loading-fade-enter-active,
.site-loading-fade-leave-active {
    transition: opacity 0.2s ease;
}

.site-loading-fade-enter-from,
.site-loading-fade-leave-to {
    opacity: 0;
}

.site-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 140, 0, 0.16),
            transparent 34%
        ),
        rgba(5, 12, 30, 0.82);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.site-loading-card {
    width: min(280px, calc(100vw - 40px));
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff7d6;
    text-align: center;
}

.site-loading-emblem {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.85);
    background:
        radial-gradient(circle at 32% 26%, #fff6a8 0 7%, transparent 8%),
        radial-gradient(circle, #ff9c24 0 56%, #d95c08 57% 100%);
    box-shadow:
        0 0 0 8px rgba(255, 140, 0, 0.12),
        0 0 30px rgba(255, 140, 0, 0.45);
    animation: site-loader-pulse 1.1s ease-in-out infinite;
}

.site-loading-emblem::before,
.site-loading-emblem::after,
.site-loading-emblem span {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 2px solid rgba(111, 35, 3, 0.34);
}

.site-loading-emblem::before {
    transform: rotate(30deg);
}

.site-loading-emblem::after {
    transform: rotate(90deg);
}

.site-loading-emblem span:first-child {
    transform: rotate(150deg);
}

.site-loading-emblem span:last-child {
    inset: 28px;
    border-color: rgba(111, 35, 3, 0.28);
}

.site-loading-text,
.page-loading__text {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.site-loading-bar {
    width: 180px;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.site-loading-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--gold), var(--accent));
    animation: site-loader-slide 0.95s ease-in-out infinite;
}

.page-loading {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 16px;
    color: #111;
    text-align: center;
}

.page-loading--compact {
    min-height: 120px;
    padding: 20px 12px;
}

.page-loading__spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 5px solid rgba(255, 140, 0, 0.22);
    border-top-color: var(--accent);
    border-right-color: var(--cyan);
    box-shadow: 0 0 18px rgba(255, 140, 0, 0.18);
    animation: page-loader-spin 0.8s linear infinite;
}

.page-loading__text {
    color: var(--blue-mid);
    font-size: 18px;
    text-shadow: none;
}

.page-loading__hint {
    color: #5a6f8f;
    font-size: 13px;
    margin: 0;
}

.btn-loading-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.22);
    border-top-color: #111;
    vertical-align: -2px;
    animation: page-loader-spin 0.7s linear infinite;
}

@keyframes site-loader-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes site-loader-slide {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(250%);
    }
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-switch-enter-active,
    .page-switch-leave-active,
    .site-loading-fade-enter-active,
    .site-loading-fade-leave-active {
        transition: none;
    }

    .site-loading-emblem,
    .site-loading-bar span,
    .page-loading__spinner,
    .btn-loading-dot {
        animation-duration: 1.8s;
    }
}

/* ===== GLOBAL TEXT COLOR FIX ===== */
.page-container,
.bxh-wrapper,
.giftcode-wrapper {
    color: #111;
}

.page-container a,
.bxh-wrapper a,
.giftcode-wrapper a {
    color: inherit;
}

.page-container button,
.bxh-wrapper button,
.giftcode-wrapper button {
    color: #111;
}

/* ===== SHARED: CONTAINER ===== */
.page-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(26, 42, 94, 0.3);
    backdrop-filter: blur(6px);
}

/* ===== SHARED: BREADCRUMB ===== */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #5a6f8f;
    font-family: var(--font-heading);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

/* ==============================
   LOGIN & REGISTER
   ============================== */
.login-box,
.auth-box {
    max-width: 420px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--card-border);
    border-radius: 14px;
    padding: 25px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.05);
}

.login-box h2,
.auth-box h1,
.auth-box h2 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--blue-mid);
}

.login-box input,
.auth-box input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 2px solid #c0c8d8;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.login-box input:focus,
.auth-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.login-box button,
.auth-box button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-family: "Bangers", cursive;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2.png")
        no-repeat center / 100% 100%;
    border: none;
    cursor: pointer;
    color: #000;
}

.login-box button:hover,
.auth-box button[type="submit"]:hover {
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center / 100% 100%;
}

.login-links,
.auth-links {
    text-align: center;
    margin-top: 15px;
}

.login-links a,
.auth-links a {
    color: #007bff;
    font-size: 14px;
    font-weight: bold;
}

.recaptcha-center {
    display: flex;
    justify-content: center;
    margin: 0;
    transform: scale(0.9);
}

.alert {
    font-size: 13px;
    font-family: "Bangers", cursive;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ==============================
   BXH (RANKINGS)
   ============================== */
.bxh-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(26, 42, 94, 0.3);
    backdrop-filter: blur(6px);
}

:root {
    --orange-main: #ff7a2f;
    --orange-dark: #e8651a;
    --green-main: #2ecc71;
    --blue-main: #2563eb;
    --gray-bg: #f4f6f8;
    --white: #ffffff;
    --dark-text: #1f2937;
    --border-dark: #2d2d2d;
    --primary: #f97316;
    --secondary: #6366f1;
    --text: #1f2937;
    --muted: #6b7280;
    --bg-soft: #f8fafc;
}

.rankings-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2.4em;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--white);
    color: var(--blue-mid);
    border: 3px solid rgba(26, 42, 94, 0.3);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}

.tab-navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    border-bottom: 3px solid var(--border-dark);
}

.tab-btn {
    font-family: "Bangers", cursive;
    font-size: 1.3em;
    letter-spacing: 1px;
    padding: 14px 10px;
    cursor: pointer;
    background: var(--orange-main);
    color: #fff;
    border: 3px solid var(--border-dark);
    border-radius: 12px;
    text-shadow: 1px 1px 0 #000;
    transition: all 0.25s ease;
}

.bxh-wrapper .tab-btn,
.bxh-wrapper .tab-btn.active,
.bxh-wrapper .tab-btn:hover {
    color: #fff !important;
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.tab-navigation.client-tab-list {
    display: flex !important;
    width: 100%;
    gap: 10px;
}

.tab-navigation.client-tab-list .tab-btn {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0;
}

.tab-btn.active {
    background: var(--green-main);
}

.tab-nap {
    background: linear-gradient(180deg, #2ecc71, #22c55e);
}

.tab-power {
    background: linear-gradient(180deg, #ff8a4c, #ff7a2f);
}

.tab-task {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.tab-btn.active.tab-nap {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.tab-btn.active.tab-power {
    background: linear-gradient(180deg, #ff7a2f, #ea580c);
}

.tab-btn.active.tab-task {
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.ranking-table th {
    font-family: var(--font-body) !important;
    font-size: 1.2em;
    letter-spacing: 0.4px;
    font-weight: 600;
    background: linear-gradient(180deg, #ff8a4c, var(--orange-main));
    padding: 12px 10px;
    border: 2px solid var(--border-dark);
    text-align: center;
}

.ranking-table td {
    font-family: var(--font-body) !important;
    font-size: 14px;
    letter-spacing: 0.2px;
    font-weight: 600;
    color: var(--dark-text);
    background: var(--white);
    padding: 12px 10px;
    border: 2px solid var(--border-dark);
    text-align: center;
}

.ranking-table tbody tr:first-child td {
    background: #fff7ed;
    font-weight: 600;
}

.ranking-table tbody tr:hover td {
    background: #f1f5f9;
}

.ranking-table tbody tr:nth-child(1) td {
    background: linear-gradient(90deg, #fff7cc, #fff);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.6);
}

.ranking-table tbody tr:nth-child(2) td {
    background: linear-gradient(90deg, #fff7ccce, #fff);
}

.ranking-table tbody tr:nth-child(3) td {
    background: linear-gradient(90deg, #ffedd5, #fff);
}

.rank-number {
    font-family: "RussoOne", sans-serif !important;
    font-weight: 600;
    white-space: nowrap;
}
.player-name {
    font-family: "RussoOne", sans-serif !important;
    font-weight: 600;
    color: var(--dark-text);
}
.money-value {
    font-family: "RussoOne", sans-serif !important;
    color: #16a34a;
    font-weight: 600;
}
.power-value {
    font-family: "RussoOne", sans-serif !important;
    color: #ea580c;
    font-weight: 600;
}
.task-value {
    font-family: "RussoOne", sans-serif !important;
    color: var(--blue-main);
    font-weight: 600;
}

.rank-cup {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.4));
}

.rank-cup.gold {
    color: #facc15;
    text-shadow:
        0 0 6px rgba(250, 204, 21, 0.8),
        1px 2px 0 #92400e;
}

.rank-cup.silver {
    color: #d1d5db;
    text-shadow:
        0 0 6px rgba(209, 213, 219, 0.8),
        1px 2px 0 #4b5563;
}

.rank-cup.bronze {
    color: #fb923c;
    text-shadow:
        0 0 6px rgba(251, 146, 60, 0.8),
        1px 2px 0 #7c2d12;
}

.no-data {
    text-align: center;
    padding: 30px;
    font-family: "RussoOne", sans-serif !important;
    font-size: 1.4em;
    color: #6b7280;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2em;
        padding: 16px;
    }
    .tab-btn {
        font-size: 1em;
        padding: 10px;
    }
    .ranking-table th {
        font-size: 1em;
    }
    .ranking-table td {
        font-size: 13px;
        padding: 8px;
    }
}

/* ==============================
   GIFTCODE
   ============================== */
.giftcode-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(26, 42, 94, 0.3);
    backdrop-filter: blur(6px);
}

.giftcode-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.giftcode-item {
    background: #fff;
    border: 3px solid #222;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.giftcode-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: #fff;
    border-bottom: 2px solid #222;
}

.gift-icon {
    width: 45px;
    height: 45px;
    background: url("/assets/frontend/home/v1/images/bannergame.png")
        center/contain no-repeat #fff;
    margin-right: 15px;
    border: 2px solid #222;
    border-radius: 8px;
}

.giftcode-info {
    flex: 1;
}

.giftcode-name {
    font-family: var(--font-body);
    font-size: 1.4em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.giftcode-stats {
    font-family: var(--font-body);
    font-size: 1em;
    letter-spacing: 1px;
}

.expand-icon {
    width: 24px;
    height: 24px;
    background: url("/assets/frontend/home/v1/images/arrow-right.png")
        center/contain no-repeat;
    transition: transform 0.3s ease;
}

.giftcode-item.expanded .expand-icon {
    transform: rotate(90deg);
}

.giftcode-details {
    display: none;
    padding: 20px;
    background: #f8f9fa;
}

.giftcode-item.expanded .giftcode-details {
    display: block;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.item-card {
    background: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.item-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    border: 2px solid #222;
    border-radius: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.item-name {
    font-family: "Bangers", cursive;
    font-size: 0.9em;
    color: #000;
}

.item-quantity {
    font-family: "Bangers", cursive;
    font-size: 0.8em;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #222;
    color: #000;
}

.no-giftcodes {
    text-align: center;
    padding: 40px;
    font-family: "Bangers", cursive;
    font-size: 1.4em;
    color: #666;
}

.item-icon-wrapper {
    position: relative;
    display: inline-block;
}

.item-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 2px solid #f5c542;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 50;
    display: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.item-icon-wrapper:hover .item-tooltip {
    display: block;
}

.copy-code {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-icon {
    font-size: 16px;
    opacity: 0.7;
}

/* ==============================
   PROFILE
   ============================== */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: #f9fafb;
    width: 95%;
    max-width: 480px;
    margin: 10vh auto;
    padding: 28px 24px;
    border-radius: 16px;
    border: 4px solid #222;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    animation: popup 0.25s ease;
}

@keyframes popup {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal h3 {
    font-family: "Bangers", cursive;
    font-size: 28px;
    color: #222;
    text-align: center;
    margin-bottom: 20px;
}

.modal input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    color: #111;
    background: #fff;
    border: 3px solid #222;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
}

.modal input::placeholder {
    color: #888;
}

.modal .btn-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal button {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    font-family: "Bangers", cursive;
    border-radius: 10px;
    border: 3px solid #222;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.modal .btn-success {
    background: #22c55e;
    color: #fff;
}
.modal .btn-danger {
    background: #ef4444;
    color: #fff;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.status-active {
    background-color: #28a745;
}
.status-pending {
    background-color: #ffc107;
}

.button-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.button-grid-1x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.account-info-section {
    background: #fff;
    border: 3px solid #222;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.account-info-section h3 {
    font-family: "Bangers", cursive;
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.info-value {
    color: #111;
}

.action-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-family: "Bangers", cursive;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2.png")
        no-repeat center / 100% 100%;
    border: none;
    cursor: pointer;
    color: #000;
    text-align: center;
    display: block;
    text-decoration: none;
    line-height: 42px;
}

.action-btn:hover {
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center / 100% 100%;
}

/* ==============================
   TOPUP (ATM & CARD)
   ============================== */
.topup-page body {
    padding: 0;
    background: url("/assets/frontend/teaser/images/thumb1.jpg?v=2") center top
        fixed no-repeat;
    background-size: cover;
    min-height: 100vh;
    font-family: var(--font-body);
}

.topup-main-content {
    background: transparent;
    width: 100%;
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
    display: block;
    margin-top: 40px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 34px;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-warm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.topup-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.topup-box,
.side-box {
    background: #fff;
    border: 3px solid #222;
    border-radius: 16px;
    padding: 22px;
    color: #111 !important;
    height: auto;
}

.side-box {
    margin-bottom: 20px;
}

.history {
    width: 100%;
    overflow-x: auto;
}

.history h3 {
    font-family: "Bangers", cursive;
    font-size: 22px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: block;
    width: 100%;
}

.history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.history th,
.history td {
    border: 1px solid #ddd;
    border-bottom: 2px solid #222;
    padding: 8px;
    text-align: center;
    word-break: break-word;
}

.history th {
    background: #f1f1f1;
    font-weight: bold;
    color: #111;
}

.history td {
    color: #111;
}

.qr-box {
    text-align: center;
    background: #f8f9fa;
    border: 3px solid #222;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.qr-box img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border: 3px solid #222;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.qr-box img.disabled {
    filter: grayscale(0.1) opacity(0.1);
}

.table-info {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.table-info td {
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    color: #111;
}

.table-info input {
    width: 100%;
    max-width: 160px;
    padding: 8px;
    border: 2px solid #222;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.note {
    background: #fff7ed;
    border-left: 5px solid #ea580c;
    padding: 14px;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.note strong {
    color: #c00;
    display: block;
    margin-bottom: 8px;
}

.note ul {
    margin: 0;
    padding-left: 20px;
}

.note p {
    margin: 4px 0;
    color: #333;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 12px;
    border: 2px solid #222;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-family: "Bangers", cursive;
    font-size: 14px;
    min-width: 35px;
}

.page-btn:hover {
    background: #ffd700;
}
.page-btn.active {
    background: #ffd700;
    font-weight: bold;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    text-align: center;
    font-size: 13px;
    margin-top: 10px;
    color: #666;
}

.btn-change1 {
    width: 150px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-family: "Bangers", cursive;
    font-size: 18px;
    color: #000;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center/100% 100%;
    text-decoration: none;
    display: inline-block;
}

.btn-change2 {
    width: 150px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-family: "Bangers", cursive;
    font-size: 18px;
    color: #000;
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2.png")
        no-repeat center/100% 100%;
    text-decoration: none;
    display: inline-block;
}

.btn-change2:hover {
    background: url("/assets/frontend/home/v1/images/btn-yellow-small2__sl.png")
        no-repeat center/100% 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #111;
    font-size: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #222;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#message {
    display: none;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.msg-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .topup-grid {
        grid-template-columns: 1fr;
    }
    .bxh-wrapper,
    .page-container {
        padding: 15px;
        width: 95%;
    }
    .top-nav {
        flex-direction: row;
    }
}

/* ==============================
   POST DETAIL
   ============================== */
.post-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-bottom: 40px;
}

.post-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
}

.post-detail h1 {
    font-family: "Bangers", cursive;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #0f172a;
    line-height: 1.3;
    word-wrap: break-word;
    font-weight: 800;
    letter-spacing: 0;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    justify-content: center;
}

.post-meta span {
    background: linear-gradient(135deg, var(--primary), #fb923c);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-detail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
}

.post-content p {
    margin-bottom: 16px;
}

.post-content h2,
.post-content h3 {
    font-family: "Bangers", cursive;
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    justify-content: space-around;
}

.post-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #6b7280;
    flex: 1;
    font-weight: 600;
}

.post-action-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.post-action-btn.liked {
    color: #ef4444;
}

/* Content preview / read more */
.content-preview {
    margin: 28px 0;
    position: relative;
}

.content-preview-text {
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.content-preview-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

.content-read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.content-read-more-btn:hover {
    color: #fb923c;
    transform: translateX(4px);
}

/* Post sidebar */
.post-sidebar {
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
}

.sidebar-widget h4 {
    font-family: "Bangers", cursive;
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 18px;
}

.widget-link {
    display: block;
    padding: 10px 0;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 14px;
}

.widget-link:last-child {
    border-bottom: none;
}
.widget-link:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* Comments section */
.comments-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.comments-header h3 {
    font-size: 24px;
    color: #0f172a;
    margin: 0;
    font-weight: 800;
}

.open-comment-btn {
    background: linear-gradient(135deg, var(--primary), #fb923c);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    transition: all 0.2s ease;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 2px;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.comment-time {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
    flex-wrap: wrap;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #65676b;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.comment-action-btn:hover {
    color: var(--primary);
}
.comment-action-btn.liked {
    color: #ef4444;
}

/* Comment modal */
.comment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.comment-overlay.active {
    display: flex;
}

.comment-modal {
    background: #fff;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.comment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding: 20px 28px;
    flex-shrink: 0;
}

.comment-modal-header h4 {
    font-size: 22px;
    color: #0f172a;
    margin: 0;
    font-weight: 800;
}

.comment-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.comment-close:hover {
    color: var(--primary);
}

.comment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.comment-modal-footer {
    border-top: 2px solid #e5e7eb;
    padding: 20px 28px;
    flex-shrink: 0;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.comment-form button {
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary), #fb923c);
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: "Bangers", cursive;
    text-transform: uppercase;
}

.comment-login-msg {
    padding: 16px;
    background: #fef3c7;
    border: 2px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-weight: 600;
}

.comment-login-msg a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Content modal */
.content-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-modal-overlay.active {
    display: flex;
}

.content-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.content-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.content-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
}

.content-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-modal-close:hover {
    color: var(--primary);
}

.content-modal-body {
    padding: 32px;
}

/* Delete confirm modal */
.delete-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.delete-confirm-overlay.active {
    display: flex;
}

.delete-confirm-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    text-align: center;
}

@keyframes scaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.delete-confirm-modal .delete-icon {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 40px;
    color: #ef4444;
}

.delete-confirm-modal h3 {
    font-size: 20px;
    color: #0f172a;
    margin: 0 0 8px;
    font-weight: 700;
}

.delete-confirm-modal p {
    color: #6b7280;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
}

.delete-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.delete-confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    flex: 1;
}

.delete-confirm-btn.cancel {
    background: #e5e7eb;
    color: #374151;
}
.delete-confirm-btn.cancel:hover {
    background: #d1d5db;
}
.delete-confirm-btn.confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.delete-confirm-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.no-comments i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

/* Comment replies */
.comment-replies {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.reply-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.reply-item:hover {
    background: #f3f4f6;
}
.reply-item .comment-avatar {
    width: 32px;
    height: 32px;
}

.breadcrumb-custom {
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-custom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb-custom a:hover {
    color: #fb923c;
}

@media (max-width: 768px) {
    .post-wrapper {
        grid-template-columns: 1fr;
    }
    .post-detail {
        padding: 20px;
    }
    .post-detail h1 {
        font-size: 1.8rem;
    }
    .post-sidebar {
        position: static;
    }
    .comment-modal {
        max-width: 100%;
        height: 90vh;
    }
}

/* ==============================
   OVERRIDES — hide old nav, fix colors
   ============================== */

/* Hide old homepage fixed nav bar since we use game-header now */
.main_head {
    display: none !important;
}

/* Force all button/link text to be visible (fix white text issue) */
button,
input[type="submit"],
.btn-change1,
.btn-change2,
.action-btn,
.tab-btn {
    color: #111;
}

.tab-btn,
.tab-btn.active {
    color: #fff;
}

/* Ensure inner page containers have readable text */
.bxh-wrapper,
.giftcode-wrapper,
.page-container {
    color: #111;
}

/* Override any stray white color from stylea6ca.css on non-home pages */
.inner-page .bxh-wrapper a,
.inner-page .page-container a,
.inner-page .giftcode-wrapper a {
    color: inherit;
    text-decoration: none;
}

.inner-page .breadcrumb a {
    color: var(--accent);
}

/* Responsive inner page */
@media (max-width: 768px) {
    .inner-page {
        padding-top: 92px;
        padding-bottom: 20px;
    }
    .page-container,
    .bxh-wrapper,
    .giftcode-wrapper {
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px 15px;
    }
}

/* Shared control polish */
.alert,
.msg-success,
.msg-error {
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

button,
a[class*="btn"],
.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-change1,
.btn-change2,
.game-nav__link,
.game-nav__btn {
    -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a[class*="btn"],
.btn:not(:disabled),
.btn-primary:not(:disabled),
.btn-success:not(:disabled),
.btn-danger:not(:disabled),
.btn-change1,
.btn-change2 {
    transition:
        transform 0.16s ease,
        filter 0.16s ease,
        box-shadow 0.16s ease,
        opacity 0.16s ease;
}

button:not(:disabled):active,
a[class*="btn"]:active,
.btn:not(:disabled):active,
.btn-primary:not(:disabled):active,
.btn-success:not(:disabled):active,
.btn-danger:not(:disabled):active,
.btn-change1:active,
.btn-change2:active {
    transform: translateY(1px) scale(0.99);
}

button:disabled,
.btn:disabled,
.btn-primary:disabled,
.btn-success:disabled,
.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    filter: grayscale(0.25);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 212, 255, 0.38);
    outline-offset: 2px;
}

input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

/* ==============================
   CLIENT TEMPLATE REFRESH
   ============================== */
:root {
    --client-bg: #071326;
    --client-surface: rgba(255, 255, 255, 0.96);
    --client-surface-strong: #ffffff;
    --client-line: rgba(9, 26, 58, 0.12);
    --client-text: #172033;
    --client-muted: #667085;
    --client-orange: #f97316;
    --client-gold: #facc15;
    --client-cyan: #14b8a6;
    --client-red: #dc2626;
    --client-green: #16a34a;
}

html,
body {
    font-family: var(--font-body) !important;
    text-rendering: geometricPrecision;
}

html body #app,
html body #app *,
html body .game-footer,
html body .game-footer *,
html body .sidebar_right,
html body .sidebar_right *,
html body .welcome-popup-overlay,
html body .welcome-popup-overlay * {
    font-family: var(--font-body) !important;
    letter-spacing: 0 !important;
}

.inner-page {
    background:
        linear-gradient(180deg, rgba(7, 19, 38, 0.7), rgba(9, 30, 61, 0.92)),
        url("/assets/frontend/home/v1/images/bg-content.jpg") center top / cover
            fixed;
}

.inner-page::before {
    opacity: 0;
}

.client-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 48px;
    color: var(--client-text);
}

.client-page--auth {
    width: min(980px, calc(100% - 32px));
}

.client-page--post {
    width: min(1180px, calc(100% - 32px));
}

.client-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 600;
}

.client-breadcrumb a {
    color: #fed7aa !important;
    text-decoration: none;
}

.client-breadcrumb span {
    color: inherit;
}

.client-panel {
    background: var(--client-surface);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.client-panel__eyebrow {
    margin-bottom: 7px;
    color: var(--client-orange);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-panel__title {
    margin: 0;
    color: #101828;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 800;
}

.client-panel__desc {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--client-muted);
    font-size: 14px;
    line-height: 1.7;
}

.client-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.client-panel > .client-page-head,
.rankings-container > .client-page-head,
.giftcode-container > .client-page-head {
    padding: 26px 28px 0;
}

.client-page-head--split {
    align-items: center;
    margin-bottom: 18px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.client-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.client-auth-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.14), transparent 46%),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(240, 253, 250, 0.96)
        );
}

.client-auth-form {
    padding: 30px;
}

.client-field {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.client-field input,
.client-field select,
.login-box input,
.auth-box input,
.form-group input,
.form-group select,
.modal input,
.table-info input {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    box-shadow: none;
}

.client-field input:focus,
.client-field select:focus,
.modal input:focus,
.table-info input:focus {
    border-color: var(--client-cyan);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    outline: none;
}

.client-btn,
.login-box button,
.auth-box button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.client-btn--primary,
.login-box button,
.auth-box button {
    color: #fff !important;
    background: linear-gradient(135deg, #ea580c, #f97316 55%, #f59e0b);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.client-auth-note {
    margin: 16px 0 0;
    text-align: center;
    color: var(--client-muted);
    font-size: 14px;
    font-weight: 600;
}

.client-auth-note a {
    color: #0f766e !important;
    font-weight: 800;
    text-decoration: none;
}

.alert,
.msg-success,
.msg-error {
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.alert-success,
.msg-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.alert-error,
.msg-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.rankings-container,
.giftcode-container {
    max-width: none;
    margin: 0;
    padding: 0 0 26px;
    color: var(--client-text);
    background: var(--client-surface);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
}

.tabs-container,
.client-tabs {
    margin: 18px 28px 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.tab-navigation,
.client-tab-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}
.client-page--ranking .tab-navigation.client-tab-list {
    border: 1px solid #f59e0b !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.tab-btn {
    min-height: 42px;
    padding: 0 12px;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #475467 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: none;
    text-shadow: none !important;
}

.tab-btn:hover:not(.active) {
    background: #fff !important;
    transform: none;
}

.tab-btn.active {
    background: #101828 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.18);
}

.tab-content {
    margin-top: 14px;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: none !important;
}

.ranking-table,
.history table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.ranking-table th,
.ranking-table td,
.history th,
.history td {
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
    color: var(--client-text);
    font-size: 13px;
    text-align: left;
    vertical-align: middle;
}

.ranking-table th,
.history th {
    background: #f8fafc;
    color: #475467;
    font-weight: 800;
    text-transform: uppercase;
}

.ranking-table tbody tr:hover td,
.history tbody tr:hover td {
    background: #f9fafb;
}

.rank-number {
    width: 82px;
    text-align: center !important;
}

.rank-cup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #101828;
    font-size: 14px;
    font-weight: 900;
}

.rank-cup.gold {
    background: #fef08a;
}

.rank-cup.silver {
    background: #e5e7eb;
}

.rank-cup.bronze {
    background: #fed7aa;
}

.player-name,
.money-value,
.power-value,
.task-value {
    font-weight: 800;
}

.no-data,
.no-giftcodes,
.client-empty {
    padding: 34px 18px;
    color: var(--client-muted);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.giftcode-list {
    display: grid;
    gap: 12px;
    margin: 18px 28px 0;
}

.giftcode-item {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
}

.giftcode-header {
    min-height: 76px;
    padding: 16px 18px;
    background: #fff;
}

.giftcode-header:hover {
    background: #fff7ed;
}

.gift-icon {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background:
        radial-gradient(circle at 32% 30%, #fef3c7 0 18%, transparent 19%),
        linear-gradient(135deg, #f97316, #facc15);
    box-shadow: inset 0 -10px 18px rgba(120, 53, 15, 0.16);
}

.giftcode-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #101828;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.copy-icon {
    padding: 3px 7px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    text-transform: none;
}

.giftcode-stats,
.giftcode-hint {
    margin: 4px 0 0;
    color: var(--client-muted);
    font-size: 13px;
    font-weight: 700;
}

.giftcode-hint {
    padding: 0 0 16px;
    text-align: center;
}

.giftcode-details {
    border-top: 1px solid #eaecf0;
    background: #f8fafc;
}

.items-grid {
    padding: 16px;
    gap: 12px;
}

.item-card {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.item-name,
.item-quantity {
    color: var(--client-text);
    font-weight: 800;
}

.client-segment {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #f2f4f7;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.client-segment a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 6px;
    color: #475467 !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.client-segment a.active,
.client-segment a.router-link-active {
    background: #101828;
    color: #fff !important;
}

.topup-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 18px;
}

.topup-grid--card {
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}

.topup-box,
.side-box {
    padding: 24px;
    background: var(--client-surface);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 8px;
}

.qr-box {
    padding: 18px;
    margin: 0 0 18px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
}

.qr-box img {
    max-width: 250px;
    border: 0;
    border-radius: 6px;
}

.qr-caption,
.client-note-inline {
    margin: 10px 0 0;
    color: var(--client-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.client-note-inline {
    color: var(--client-red);
}

.table-info td {
    padding: 12px 8px;
    border-bottom: 1px solid #eaecf0;
    color: var(--client-text);
    font-size: 14px;
}

.table-info td:first-child {
    width: 34%;
    color: var(--client-muted);
    font-weight: 700;
}

.note {
    margin: 0 0 18px;
    padding: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid var(--client-orange);
    border-radius: 8px;
    color: #7c2d12;
    font-size: 13px;
}

.note b,
.note strong {
    color: #9a3412;
}

.history {
    overflow-x: auto;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.history h3 {
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid #eaecf0;
    color: #101828;
    font-size: 17px;
    font-weight: 800;
}

.pagination {
    padding: 14px;
}

.page-btn {
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-weight: 800;
}

.page-btn.active {
    background: #101828;
    color: #fff;
}

.client-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    max-width: none;
    margin: 0;
}

.client-profile-grid > .alert {
    grid-column: 1 / -1;
}

.profile-card,
.profile-actions {
    padding: 24px;
}

.profile-card--account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff7ed;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.2);
}

.profile-stat {
    margin-top: 8px;
    color: var(--client-muted);
    font-size: 14px;
}

.profile-stat strong {
    color: #101828;
}

.profile-section-title {
    margin: 0 0 16px;
    color: #101828;
    font-size: 22px;
    font-weight: 800;
}

.profile-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-meta div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eaecf0;
}

.profile-meta dt {
    color: var(--client-muted);
    font-weight: 700;
}

.profile-meta dd {
    margin: 0;
    color: #101828;
    font-weight: 800;
}

.profile-actions {
    grid-column: 1 / -1;
}

.button-grid-2x2,
.button-grid-1x3 {
    display: grid;
    gap: 12px;
}

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

.button-grid-1x3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.action-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828 !important;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.action-btn:hover {
    background: #fff7ed;
    border-color: #fdba74;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-active,
.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.modal-overlay {
    background: rgba(3, 7, 18, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal {
    padding: 26px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.modal h3 {
    margin: 0 0 18px;
    color: #101828;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.modal input + input {
    margin-top: 12px;
}

.modal-copy {
    margin: 0 0 18px;
    color: var(--client-muted);
    text-align: center;
    line-height: 1.7;
}

.btn-row,
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-success,
.btn-danger {
    flex: 1;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
}

.btn-success {
    background: var(--client-green);
}

.btn-danger {
    background: var(--client-red);
}

.post-wrapper {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.post-detail,
.sidebar-widget {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-top: 0;
    border-left: 0;
    border-radius: 8px;
    background: var(--client-surface);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.post-detail h1 {
    margin: 6px 0 16px;
    color: #101828;
    font-size: 32px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: 0;
    text-align: left;
}

.post-meta {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eaecf0;
}

.post-meta span {
    background: #f2f4f7;
    color: #475467;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.post-content,
.content-preview-text,
.sidebar-widget p {
    color: #344054;
    font-size: 15px;
    line-height: 1.85;
}

.content-read-more-btn {
    padding: 0;
    color: #0f766e !important;
    font-weight: 800;
}

.post-actions {
    justify-content: flex-start;
    gap: 10px;
    margin: 24px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid #eaecf0;
    border-bottom: 0;
}

.post-action-btn {
    flex: 0 1 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: #344054;
    font-weight: 800;
}

.post-action-btn:hover {
    background: #fff7ed;
    color: #9a3412 !important;
}

.sidebar-widget {
    padding: 20px;
    margin-bottom: 14px;
}

.sidebar-widget h4 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
}

.widget-link {
    color: #475467 !important;
    font-weight: 700;
}

.widget-link:hover {
    color: #0f766e !important;
}

@media (max-width: 860px) {
    .client-page,
    .client-page--auth,
    .client-page--post {
        width: min(100% - 20px, 680px);
        margin-bottom: 28px;
    }

    .client-auth-shell,
    .topup-grid,
    .topup-grid--card,
    .client-profile-grid,
    .post-wrapper {
        grid-template-columns: 1fr;
    }

    .client-page-head,
    .client-page-head--split {
        align-items: stretch;
        flex-direction: column;
    }

    .client-segment,
    .tab-navigation,
    .client-tab-list {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .client-segment {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .button-grid-2x2,
    .button-grid-1x3 {
        grid-template-columns: 1fr 1fr;
    }

    .post-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .client-panel__title,
    .post-detail h1 {
        font-size: 24px;
    }

    .client-panel > .client-page-head,
    .rankings-container > .client-page-head,
    .giftcode-container > .client-page-head,
    .client-auth-card,
    .client-auth-form,
    .topup-box,
    .side-box,
    .profile-card,
    .profile-actions,
    .post-detail {
        padding: 20px;
    }

    .tabs-container,
    .client-tabs,
    .giftcode-list {
        margin-left: 20px;
        margin-right: 20px;
    }

    .client-segment,
    .button-grid-2x2,
    .button-grid-1x3,
    .post-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .profile-card--account {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-meta div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ==============================
   FINAL CLIENT OVERRIDES
   ============================== */
:root {
    --client-bg: #081a36;
    --client-deep: #0b1732;
    --client-ink: #18243a;
    --client-muted: #657084;
    --client-panel: rgba(255, 248, 232, 0.96);
    --client-line: rgba(134, 88, 35, 0.2);
    --client-gold: #d99a24;
    --client-orange: #d96f22;
    --client-cyan: #58c5d6;
    --client-red: #c2412d;
    --client-green: #218a5b;
    --client-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

html body #app,
html body #app *,
html body .game-footer,
html body .game-footer *,
html body .sidebar_right,
html body .sidebar_right * {
    font-family: var(--font-body) !important;
    font-style: oblique 6deg !important;
    letter-spacing: 0 !important;
}

.inner-page {
    background:
        linear-gradient(
            180deg,
            rgba(4, 12, 31, 0.7) 0%,
            rgba(8, 26, 54, 0.94) 44%,
            rgba(5, 14, 33, 0.98) 100%
        ),
        url("/assets/frontend/home/v1/images/fullBg.jpg") center top / cover
            fixed !important;
}

.inner-page::before {
    opacity: 0 !important;
}

.client-page {
    width: min(1080px, calc(100% - 36px));
    margin-bottom: 42px;
}

.client-page--post {
    width: min(1160px, calc(100% - 36px));
}

.client-breadcrumb {
    margin-bottom: 14px;
    color: rgba(255, 239, 206, 0.82);
    font-size: 12px;
}

.client-breadcrumb a {
    color: #ffd78a !important;
}

.client-panel,
.rankings-container,
.giftcode-container,
.topup-box,
.side-box,
.post-detail,
.sidebar-widget,
.client-page-head--split {
    background:
        linear-gradient(
            180deg,
            rgba(255, 252, 244, 0.97),
            rgba(255, 246, 224, 0.95)
        ),
        var(--client-panel) !important;
    border: 1px solid var(--client-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--client-shadow) !important;
}

.client-panel__eyebrow {
    color: #a75716;
    font-size: 11px;
}

.client-panel__title,
.profile-section-title,
.post-detail h1,
.history h3,
.sidebar-widget h4 {
    color: var(--client-ink) !important;
    font-weight: 800;
}

.client-panel__title {
    font-size: 28px;
}

.client-panel__desc {
    color: #6d5c45;
    font-size: 13px;
}

.game-nav {
    gap: 8px;
}

.game-nav__link,
.game-nav__link:link,
.game-nav__link:visited,
.game-nav__link:active,
.game-nav__btn,
.game-nav__btn:link,
.game-nav__btn:visited,
.game-nav__btn:active {
    width: auto;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    background: rgba(255, 248, 232, 0.92) !important;
    background-image: none !important;
    border: 1px solid rgba(124, 82, 34, 0.28);
    border-radius: 999px;
    color: #111827 !important;
    font-size: 13px;
    font-weight: 700;
    text-shadow: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.game-nav__link:hover,
.game-nav__btn:hover,
.game-nav__link.router-link-active,
.game-nav__link.router-link-exact-active,
.game-nav__btn.router-link-active {
    background: rgba(255, 226, 150, 0.96) !important;
    border-color: rgba(161, 98, 7, 0.56);
    color: #111827 !important;
    filter: none;
}

.client-auth-shell {
    grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
    gap: 16px;
}

.client-auth-card {
    background:
        linear-gradient(180deg, rgba(14, 39, 78, 0.92), rgba(10, 28, 58, 0.94)),
        url("/assets/frontend/home/v1/images/bg-box-new.png") center / cover !important;
    border-color: rgba(113, 177, 210, 0.18) !important;
}

.client-auth-card .client-panel__title {
    color: #fff4d7 !important;
}

.client-auth-card .client-panel__desc {
    color: rgba(255, 241, 209, 0.78);
}

.client-field {
    color: #4f412e;
}

.client-field input,
.client-field select,
.login-box input,
.auth-box input,
.form-group input,
.form-group select,
.modal input,
.table-info input {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(124, 82, 34, 0.24);
    color: var(--client-ink);
}

.client-field input:focus,
.client-field select:focus,
.modal input:focus,
.table-info input:focus {
    border-color: rgba(217, 154, 36, 0.72);
    box-shadow: 0 0 0 4px rgba(217, 154, 36, 0.16);
}

.client-btn--primary,
.login-box button,
.auth-box button {
    background: linear-gradient(180deg, #f1b948, #c66d22) !important;
    color: #1f1306 !important;
    box-shadow: 0 12px 24px rgba(120, 61, 14, 0.22);
}

.client-segment,
.tab-navigation,
.client-tab-list {
    background: rgba(12, 31, 60, 0.06);
    border-color: rgba(124, 82, 34, 0.16);
}

.client-segment a,
.tab-btn {
    color: #634b2f !important;
}

.client-segment a.active,
.client-segment a.router-link-active,
.tab-btn.active {
    background: linear-gradient(180deg, #15365f, #0d2444) !important;
    color: #fff1cc !important;
    box-shadow: 0 8px 16px rgba(13, 36, 68, 0.18);
}

.tab-content,
.history,
.qr-box {
    background: rgba(255, 255, 255, 0.52) !important;
    border-color: rgba(124, 82, 34, 0.16) !important;
}

.ranking-table,
.history table {
    min-width: 0;
}

.ranking-table th,
.ranking-table td,
.history th,
.history td,
.table-info td {
    border-bottom-color: rgba(124, 82, 34, 0.14);
    color: var(--client-ink) !important;
}

.ranking-table th,
.history th {
    background: rgba(21, 54, 95, 0.08);
    color: #5e4c34 !important;
}

.ranking-table tbody tr:hover td,
.history tbody tr:hover td,
.giftcode-header:hover,
.action-btn:hover,
.post-action-btn:hover {
    background: rgba(255, 241, 196, 0.45) !important;
}

.rank-cup.gold {
    background: #e9b63f;
}

.rank-cup.silver {
    background: #d8dee6;
}

.rank-cup.bronze {
    background: #dfa06b;
}

.giftcode-header,
.giftcode-details,
.item-card {
    background: rgba(255, 255, 255, 0.48) !important;
}

.giftcode-item,
.item-card {
    border-color: rgba(124, 82, 34, 0.15) !important;
}

.copy-icon {
    background: rgba(21, 54, 95, 0.1);
    color: #15365f;
}

.note {
    background: rgba(255, 241, 196, 0.5) !important;
    border-color: rgba(217, 154, 36, 0.28) !important;
    color: #70420f;
}

.action-btn,
.post-action-btn,
.page-btn {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(124, 82, 34, 0.22);
    color: var(--client-ink) !important;
}

.status-active,
.status-success {
    background: rgba(33, 138, 91, 0.14);
    color: #16633f;
}

.status-pending {
    background: rgba(217, 154, 36, 0.18);
    color: #70420f;
}

.status-failed {
    background: rgba(194, 65, 45, 0.13);
    color: #8f2f22;
}

.post-content,
.content-preview-text,
.sidebar-widget p,
.profile-stat,
.profile-meta dt,
.client-auth-note,
.giftcode-stats,
.giftcode-hint,
.qr-caption {
    color: var(--client-muted) !important;
}

.post-meta span {
    background: rgba(21, 54, 95, 0.08);
    color: #5e4c34;
}

.widget-link,
.content-read-more-btn,
.client-auth-note a {
    color: #106f82 !important;
}

@media (max-width: 860px) {
    .game-nav {
        width: min(310px, calc(100vw - 44px));
        padding: 76px 14px 18px;
        background: rgba(7, 20, 45, 0.97);
    }

    .game-nav__link,
    .game-nav__btn {
        width: 100%;
        max-width: none;
        height: 42px;
        justify-content: flex-start;
        padding: 0 16px;
    }

    .client-page,
    .client-page--auth,
    .client-page--post {
        width: min(100% - 22px, 680px);
    }

    .client-auth-shell,
    .topup-grid,
    .topup-grid--card,
    .client-profile-grid,
    .post-wrapper {
        grid-template-columns: 1fr;
    }

    .client-auth-card {
        min-height: 150px;
    }
}

@media (max-width: 640px) {
    .inner-page {
        padding-top: 78px;
    }

    .client-page {
        width: calc(100% - 18px);
    }

    .client-panel__title,
    .post-detail h1 {
        font-size: 22px;
    }

    .client-panel > .client-page-head,
    .rankings-container > .client-page-head,
    .giftcode-container > .client-page-head,
    .client-page-head--split,
    .client-auth-card,
    .client-auth-form,
    .topup-box,
    .side-box,
    .profile-card,
    .profile-actions,
    .post-detail,
    .sidebar-widget {
        padding: 16px;
    }

    .tabs-container,
    .client-tabs,
    .giftcode-list {
        margin: 14px 16px 0;
    }

    .client-segment {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tab-navigation,
    .client-tab-list {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab-navigation::-webkit-scrollbar,
    .client-tab-list::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        min-width: 118px;
    }

    .tab-content {
        border: 0 !important;
        background: transparent !important;
    }

    .ranking-table,
    .ranking-table thead,
    .ranking-table tbody,
    .ranking-table tr,
    .ranking-table th,
    .ranking-table td,
    .history table,
    .history thead,
    .history tbody,
    .history tr,
    .history th,
    .history td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .ranking-table thead,
    .history thead {
        display: none;
    }

    .ranking-table tbody,
    .history tbody {
        display: grid;
        gap: 10px;
    }

    .ranking-table tr,
    .history tr {
        padding: 12px;
        border: 1px solid rgba(124, 82, 34, 0.16);
        border-radius: 10px;
        background: rgba(255, 252, 244, 0.74);
    }

    .ranking-table td,
    .history td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(124, 82, 34, 0.1);
        text-align: right !important;
        word-break: break-word;
    }

    .ranking-table td:last-child,
    .history td:last-child {
        border-bottom: 0;
    }

    .ranking-table td::before,
    .history td::before {
        flex: 0 0 auto;
        color: #6d5c45;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ranking-table td:nth-child(1)::before {
        content: "Hạng";
    }

    .ranking-table td:nth-child(2)::before {
        content: "Nhân vật";
    }

    .ranking-table td:nth-child(3)::before {
        content: "Chỉ số";
    }

    .history td:nth-child(1)::before {
        content: "Thời gian";
    }

    .history td:nth-child(2)::before {
        content: "Số tiền";
    }

    .history td:nth-child(3)::before {
        content: "Trạng thái";
    }

    .topup-grid--card .history td:nth-child(1)::before {
        content: "STT";
    }

    .topup-grid--card .history td:nth-child(2)::before {
        content: "Loại thẻ";
    }

    .topup-grid--card .history td:nth-child(3)::before {
        content: "Seri";
    }

    .topup-grid--card .history td:nth-child(4)::before {
        content: "Mã thẻ";
    }

    .topup-grid--card .history td:nth-child(5)::before {
        content: "Mệnh giá";
    }

    .topup-grid--card .history td:nth-child(6)::before {
        content: "Thời gian";
    }

    .topup-grid--card .history td:nth-child(7)::before {
        content: "Trạng thái";
    }

    .ranking-table td[colspan]::before,
    .history td[colspan]::before {
        display: none;
        content: "";
    }

    .table-info,
    .table-info tbody,
    .table-info tr,
    .table-info td {
        display: block;
        width: 100%;
    }

    .table-info tr {
        padding: 9px 0;
        border-bottom: 1px solid rgba(124, 82, 34, 0.12);
    }

    .table-info td {
        padding: 2px 0;
        border: 0;
    }

    .table-info td:first-child {
        width: 100%;
        font-size: 12px;
    }

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

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-meta div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .button-grid-2x2,
    .button-grid-1x3,
    .post-actions,
    .btn-row,
    .modal-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .action-btn,
    .post-action-btn,
    .client-btn {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .client-panel > .client-page-head,
    .rankings-container > .client-page-head,
    .giftcode-container > .client-page-head,
    .client-page-head--split,
    .client-auth-card,
    .client-auth-form,
    .topup-box,
    .side-box,
    .profile-card,
    .profile-actions,
    .post-detail,
    .sidebar-widget {
        padding: 14px;
    }

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

    .profile-card--account {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* End-of-file responsive guard */
@media (max-width: 860px) {
    .game-header--menu-open {
        background: rgba(7, 20, 45, 0.96);
        border-bottom-color: rgba(255, 216, 138, 0.22);
        backdrop-filter: blur(12px);
    }

    .game-header--menu-open .game-header__toggle span {
        background: #fff3d4;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        position: fixed !important;
        top: 64px !important;
        right: 10px !important;
        bottom: auto !important;
        left: 10px !important;
        z-index: 2000;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - 82px);
        margin: 0 !important;
        padding: 12px !important;
        gap: 8px;
        overflow: auto;
        border: 1px solid rgba(255, 216, 138, 0.22);
        border-radius: 12px;
        background: rgba(7, 20, 45, 0.98) !important;
        box-shadow: 0 22px 46px rgba(0, 0, 0, 0.38);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) !important;
    }

    .game-nav--open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) !important;
    }

    .game-nav__link,
    .game-nav__btn {
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 40px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        text-align: center;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 1900;
        background: rgba(0, 0, 0, 0.32);
    }
}

@media (max-width: 640px) {
    .client-page--ranking .tab-navigation,
    .client-page--ranking .client-tab-list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        overflow: visible !important;
    }

    .client-page--ranking .tab-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 36px;
        padding: 0 4px;
        font-size: 11px !important;
        white-space: nowrap;
    }

    .client-page--ranking .tab-content {
        padding: 10px 0 0 !important;
    }

    .client-page--ranking .ranking-table {
        display: table !important;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        overflow: hidden;
        border: 1px solid rgba(124, 82, 34, 0.14);
        border-radius: 10px;
        background: rgba(255, 252, 244, 0.78);
    }

    .client-page--ranking .ranking-table thead {
        display: table-header-group !important;
    }

    .client-page--ranking .ranking-table tbody {
        display: table-row-group !important;
    }

    .client-page--ranking .ranking-table tr {
        display: table-row !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .client-page--ranking .ranking-table th,
    .client-page--ranking .ranking-table td {
        display: table-cell !important;
        width: auto !important;
        padding: 9px 6px !important;
        border-bottom: 1px solid rgba(124, 82, 34, 0.1);
        color: #21304a;
        font-size: 11px;
        line-height: 1.3;
        text-align: left !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal !important;
    }

    .client-page--ranking .ranking-table th:first-child,
    .client-page--ranking .ranking-table td:first-child {
        width: 42px !important;
        text-align: center !important;
    }

    .client-page--ranking .ranking-table td:nth-child(2) {
        max-width: 118px;
        font-weight: 900;
    }

    .client-page--ranking .ranking-table td:nth-child(3) {
        width: 36% !important;
        text-align: right !important;
    }

    .client-page--ranking .ranking-table td::before {
        display: none !important;
        content: "" !important;
    }

    .client-page--ranking .rank-cup {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .client-page--giftcode .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
    }

    .client-page--topup .history {
        border: 0 !important;
        background: transparent !important;
    }

    .client-page--topup .history h3 {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid rgba(124, 82, 34, 0.14);
        border-radius: 10px;
        background: rgba(255, 252, 244, 0.74);
    }

    .client-page--topup .history tbody {
        gap: 8px;
    }

    .client-page--topup .history tr {
        padding: 10px 12px !important;
        box-shadow: 0 10px 24px rgba(74, 47, 18, 0.08);
    }

    .client-page--topup .history td {
        gap: 10px;
        padding: 7px 0 !important;
        font-size: 12px;
        line-height: 1.35;
    }

    .client-page--topup .history td::before {
        min-width: 76px;
        text-align: left;
    }

    .client-page--topup .history td[colspan] {
        display: block !important;
        padding: 12px 0 !important;
        color: #6d5c45;
        text-align: center !important;
    }

    .profile-dashboard,
    .profile-hero-card {
        grid-template-columns: 1fr;
    }

    .profile-meta--compact,
    .profile-stat-grid,
    .profile-wallet-grid,
    .profile-balance-grid,
    .disciple-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .game-nav,
    .game-header--scrolled .game-nav {
        grid-template-columns: 1fr;
    }

    .client-page--giftcode .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Profile/account and logo refinements */
.game-header__wordmark {
    height: 66px !important;
    max-width: 430px !important;
}

.game-header--scrolled .game-header__wordmark {
    height: 58px !important;
    max-width: 380px !important;
}

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

.profile-wallet-grid strong {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    word-break: normal;
}

.profile-card--wallet {
    grid-column: 1 / -1;
}

@media (max-width: 860px) {
    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 50px !important;
        max-width: 260px !important;
    }

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

@media (max-width: 560px) {
    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 44px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 390px) {
    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        height: 40px !important;
        max-width: 196px !important;
    }

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

/* Final overrides for the live VPS build */
.box-list-new .tab-content .tab-detail .item-new-box,
.box-list-new .tab-content .tab-detail .item-new-box:link,
.box-list-new .tab-content .tab-detail .item-new-box:visited {
    color: #fff2cf !important;
}

.box-list-new .tab-content .tab-detail .item-new-box .cat-des {
    color: #fff2cf !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.62);
}

.box-list-new .tab-content .tab-detail .item-new-box:hover .cat-des {
    color: #ffd66d !important;
}

.box-list-new .tab-content .tab-detail .item-new-box .date-open {
    color: rgba(255, 242, 207, 0.74) !important;
}

.game-header {
    height: 84px !important;
}

.game-header--scrolled {
    height: 74px !important;
}

.game-header__inner {
    min-height: 100%;
}

.game-header__logo {
    height: 100% !important;
    min-width: 0;
    max-width: 300px !important;
    display: flex !important;
    align-items: center !important;
}

.game-header__wordmark {
    display: block !important;
    width: auto !important;
    height: 76px !important;
    max-width: 290px !important;
    max-height: 76px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.game-header--scrolled .game-header__wordmark {
    width: auto !important;
    height: 66px !important;
    max-width: 260px !important;
    max-height: 66px !important;
}

.client-auth-card {
    border-left: 0 !important;
    border-right: 0 !important;
}

.client-auth-art {
    display: flex !important;
    align-items: center !important;
    min-height: 190px !important;
    padding: 24px !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

.client-auth-logo {
    width: 178px !important;
    max-width: 48% !important;
    margin: 0 !important;
}

.client-auth-hero {
    right: 18px !important;
    bottom: -60px !important;
    width: min(240px, 58%) !important;
}

.qr-box {
    position: relative !important;
    min-height: 292px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-image--disabled {
    filter: grayscale(1) blur(4px) !important;
    opacity: 0.38 !important;
    pointer-events: none;
    user-select: none;
}

.qr-disabled-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    min-width: 168px;
    padding: 10px 14px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(154, 52, 18, 0.26);
    border-radius: 8px;
    background: rgba(255, 247, 237, 0.94);
    color: #9a3412;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.client-page--profile {
    max-width: 1120px;
}

.profile-dashboard {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 1080px;
    margin: 0 auto;
}

.profile-dashboard > .alert,
.profile-hero-card,
.profile-card--character,
.profile-card--wallet,
.profile-actions {
    grid-column: 1 / -1 !important;
}

.profile-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
}

.profile-meta--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.profile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.profile-wallet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.profile-wallet-grid strong,
.profile-stat-grid strong,
.profile-balance-card strong {
    white-space: normal !important;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 62px !important;
        background: rgba(7, 20, 45, 0.98) !important;
        z-index: 3000 !important;
    }

    .game-header__inner {
        padding: 0 12px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .game-header__toggle {
        position: relative;
        z-index: 3200 !important;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        align-items: center;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        position: fixed !important;
        top: 68px !important;
        right: 10px !important;
        bottom: auto !important;
        left: 10px !important;
        z-index: 3100 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: auto !important;
        max-height: calc(100dvh - 78px) !important;
        overflow-y: auto !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px) !important;
    }

    .game-nav--open,
    .game-header--scrolled .game-nav--open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) !important;
    }

    .mobile-overlay {
        z-index: 2900 !important;
    }

    .profile-hero-card,
    .profile-dashboard {
        grid-template-columns: 1fr !important;
    }

    .profile-meta--compact,
    .profile-stat-grid,
    .profile-wallet-grid,
    .profile-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .client-auth-art {
        min-height: 170px !important;
        padding: 20px !important;
    }
}

@media (max-width: 560px) {
    .game-header,
    .game-header--scrolled,
    .game-header--menu-open {
        height: 62px !important;
    }

    .game-header__wordmark,
    .game-header--scrolled .game-header__wordmark {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }

    .game-nav,
    .game-header--scrolled .game-nav {
        grid-template-columns: 1fr !important;
        top: 68px !important;
    }

    .profile-meta--compact,
    .profile-stat-grid,
    .profile-wallet-grid,
    .profile-balance-grid,
    .button-grid-2x2,
    .button-grid-1x3 {
        grid-template-columns: 1fr !important;
    }

    .client-auth-art {
        min-height: 150px !important;
        padding: 16px !important;
    }

    .client-auth-logo {
        width: 148px !important;
        max-width: 54% !important;
    }

    .client-auth-hero {
        right: 8px !important;
        bottom: -48px !important;
        width: min(190px, 56%) !important;
    }
}

/* Runtime guard: keep icon fonts and comment scroll working after all overrides */
.fa,
.fa-classic,
.fa-sharp,
.fas,
.fa-solid {
    font-family:
        "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-family:
        "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family:
        "Font Awesome 6 Brands", "Font Awesome 5 Brands", FontAwesome !important;
    font-weight: 400 !important;
}

.fa::before,
.fa-classic::before,
.fa-sharp::before,
.fas::before,
.fa-solid::before,
.far::before,
.fa-regular::before,
.fab::before,
.fa-brands::before {
    font-family: inherit !important;
}

.fb-comments-shell {
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.fb-comments {
    display: grid !important;
    max-height: clamp(300px, 45vh, 520px) !important;
    margin-top: 0 !important;
    padding: 14px !important;
    gap: 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fb-comments::-webkit-scrollbar {
    width: 8px;
}

.fb-comments::-webkit-scrollbar-track {
    background: transparent;
}

.fb-comments::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

@media (max-width: 640px) {
    .fb-comments {
        max-height: 360px !important;
        padding: 12px 10px !important;
    }
}
