body {
    font-family: montserrat-bold, sans-serif;
    background-color: var(--primary-bg);
}

.banner-container {
    margin: 0 auto;
    max-width: 1400px;
    padding: 20px;
    padding-bottom: 0;
    width: 100%;
}

.banner {
    width: 100%;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.ranking-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-ranking-section {
    margin-top: 20px;
    padding: 10px 15px;
    background: var(--second-bg);
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.user-info {
    position: relative;
    cursor: pointer;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 140px;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-menu li {
    width: 100%;
}

.logout-btn {
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.logout-btn:hover {
    color: #fff;
}

.vote-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.vote-instruction {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.save-ranking-button {
    color: #fff;
    width: fit-content;
}

.note {
    text-transform: uppercase;
    color: red;
    font-weight: bold;
    font-size: 24px;
}

.note.card-response-message {
    text-transform: none;
}

.qty-btn {
    color: #fff;
    padding: 4px 10px;
    font-size: 18px;
}

.item-quantity {
    font-size: 18px;
}

.cart-checkout-button {
    margin-top: 10px;
}

.payment-options {
    display: flex;
    justify-content: space-between;
}

.payment-preview {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.swal2-success-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.5s 0.5s ease-out forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.thank-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.qr-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.countdown {
    color: var(--primary-button);
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.recharge-button[disabled],
.user-deposit-amount-input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-item {
    cursor: default;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.product-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.product-item-description {
    font-family: montserrat-md, 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--primary-text);
}

.add-to-cart-button[disabled],
.checkout-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.return-back {
    color: var(--second-button);
}

.done-button {
    align-items: center;
    background-color: var(--primary-button);
    color: #fff !important;
    display: flex;
    justify-content: center;
    max-width: fit-content;
    white-space: nowrap;
}

.error-msg {
    color: red;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.card-deposit-button.loading {
    opacity: 0.8;
}

.card-deposit-button .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

.withdraw-form {
    width: 350px;
    max-width: 330px;
    margin: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.withdraw-form .input-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-status {
    color: #b8860b;
}

.intro-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intro-item {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-description {
    text-align: justify;
}

.stat-item {
    cursor: pointer;
    color: black;
}

.stat-item.wc-card {
    padding: 0;
}

.stat-item p {
    text-align: justify;
}

/* --- Why-choose-us: new card style --- */
.wc-card {
    /* Outer red border like the sample */
    border: 1.5px solid #1e4ed8;
    border-radius: 14px;
    padding: 8px; /* show the red border spacing */
    background: transparent;
}

.wc-card-inner {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,0,0,0.04);
}

.wc-icon-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.wc-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1e4ed8 100%);
    color: #fff;
}
.wc-icon svg { width: 22px; height: 22px; color: #fff; }
.wc-icon img { width: 22px; height: 22px; object-fit: contain; }

.wc-title {
    margin: 0;
    color: #1e4ed8; /* blue like sample */
    font-family: montserrat-bold, sans-serif;
    font-size: 18px;
}

.wc-desc {
    margin: 0;
    color: #555;
    text-align: left;
    line-height: 1.5;
}

.why-choose-us-container {
    margin-top: 50px;
    overflow: visible;
}

.wc-card:hover { transform: translateY(-5px); transition: transform .2s ease; }

.logo-desktop,
.logo-container a {
    display: flex;
}

.payment-transfer-container {
    display: flex;
    gap: 2rem;
}

.deposit-button-container {
    transition: transform 0.3s ease;
}

.deposit-button-container:hover {
    transform: scale(1.01);
}

.deposit-button-container img {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

@media screen and (max-width: 1024px) {
    .payment-transfer-container {
        flex-direction: column;
    }

    .logo-desktop,
    .logo-container a {
        display: none;
    }

    .card-input-container {
        flex-direction: column;
    }

    .card-input-item {
        width: 100%;
    }

    .withdraw-form {
        width: fit-content;
    }

    .icon-title {
        font-size: 18px;
    }
}

.pagination {
    list-style-type: none;
}

.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.label-danger {
    background-color: #d9534f;
}

.label-warning {
    background-color: #f0ad4e;
}

.label-info {
    background-color: #5bc0de;
}

.label-primary {
    background-color: #337ab7;
}

.label-success {
    background-color: #00a65a;
}

.label-default {
    background-color: #777;
}

.product-right {
    position: relative;
}

.payment-container {
    position: sticky;
    top: 5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ================= Auth (Login/Register) ================ */
/* Center the auth card */
.login-container,
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* Card shell */
.login-box,
.register-box {
    width: 420px;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden; /* so the colored title bar clips nicely */
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    margin-left: 0;
    padding: 0;
}

/* Top colored bar with title */
.login-title,
.register-title {
    margin: 0;
    padding: 12px 16px;
    background: var(--primary-button); /* thanh tiêu đề */
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .2px;
}

/* Inner spacing for all children after title */
.login-box > :not(.login-title),
.register-box > :not(.register-title) {
    padding: 16px;
}

/* Fields */
.input-group { margin-bottom: 12px; }
.login-input,
.reg-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    background: #eaf2ff; /* xanh nhạt giống ảnh */
    outline: none;
}
.login-input:focus,
.reg-input:focus { border-color: var(--primary-button); box-shadow: 0 0 0 2px rgba(13,121,226,.15); }

/* Actions */
.login-button,
.register-button {
    background: var(--primary-button); /* đồng bộ thương hiệu; người dùng có thể đổi sau */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
}
.login-button:hover,
.register-button:hover { filter: brightness(.92); }

.reset-password,
.register-text,
.login-text { margin-top: 6px; }
.reset-password-text,
.register-text a,
.login-text a { color: var(--primary-button); }

.back-to-dashboard-button { color: #666; display: inline-block; margin-top: 6px; }

.quickAddButton {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 32px;
    height: 32px;
    background-color: var(--primary-button);
    border-radius: 16px;
    -webkit-transition: all .1s;
    transition: all .1s;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quickAddButton.expanded {
    background-color: #fff;
    border: 1px solid var(--primary-button);
    width: 72px;
}

.quickAddButton.expanded .btn {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.quickAddButton.expanded .quantity {
    min-width: 24px;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.quickAddButton:not(.expanded) .btn,
.quickAddButton:not(.expanded) .quantity {
    display: none;
}

.quickAddButton.expanded .expand-trigger {
    display: none;
}

.viewBasketButton {
    display: none;
}

@media screen and (max-width: 768px) {
    .product-right {
        display: none;
    }

    .product-left {
        position: relative;
    }

    .viewBasketButton {
        display: block;
        width: 80%;
        margin: auto;
        margin-top: 15px;
        position: sticky;
        bottom: 3rem;
        z-index: 1000;
    }

    .viewBasketButton button {
        background-color: var(--primary-button);
        color: white;
        padding: 10px 0px;
    }
}

@media screen and (min-width: 768px) {
    .viewBasketButton {
        display: none !important;
    }
}

.footer-links,
.footer-social {
    flex: none;
}

.bottom-navbar {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-burger {
    padding: 0;
    color: var(--fourth);
    margin-left: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.menu-burger-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0 !important;
}

.user-menu li:first-child {
    margin-top: 8px;
    margin-bottom: 8px;
}

.header-username {
    color: #8f8f8f;
    padding: 8px 12px;
}

.user-input-card-info-container select,
.user-input-card-info-container input {
    width: 100%;
    min-height: 40px;
}

.wallet-label {
    font-weight: 600;
    font-size: 14px;
    color: #949494;
    font-family: 'montserrat-md';
}

.footer-intro {
    width: auto;
    max-width: none;
}
.footer-intro p {
    text-align: justify;
}

/* Footer grid overrides */
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.footer-intro {
    grid-column: span 2;
    transform: translateY(-13px);
}

.footer-intro img {
    max-width: 200px;
    height: auto;
}

/* Tablet */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-intro {
        grid-column: 1 / -1; /* span full width on tablet */
    }
}

/* Mobile */
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr; /* single column */
        gap: 12px;
    }
    .footer-intro {
        grid-column: 1 / -1;
    }
    .footer-intro p {
        text-align: left;
    }
}

/* ---------- Header nav (PC) ---------- */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin-left: 20px;
    padding: 0;
}
.nav-menu ul li {
    margin: 0;
}
.nav-menu a {
    display: inline-block;
    color: var(--primary-text);
    padding: 8px 14px;
    border-radius: 10px;
    font-family: montserrat-bold, sans-serif;
    letter-spacing: .2px;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #0d79e2;
    background: rgba(13, 121, 226, 0.08);
    box-shadow: inset 0 0 0 1px #0d79e2;
}

/* Chỉ áp dụng trên màn hình >= 1024px để tránh ảnh hưởng menu mobile */
@media (max-width: 1023px) {
    .nav-menu a { box-shadow: none; background: transparent; }
}

.forgot-password-wrapper {
    margin: 0 16px;
}

.cart-container {
    position: relative;
}

.cart-payment-alert {
    position: absolute;
    top: calc(100% + 12px);
    right: -20px;
    width: 340px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f172a;
    z-index: 1100;
}

.cart-payment-alert::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.cart-payment-alert__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-payment-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.cart-payment-alert__label {
    font-size: 14px;
    font-weight: 600;
}

.cart-payment-alert__close {
    margin-left: auto;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-payment-alert__close:hover,
.cart-payment-alert__close:focus {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.cart-payment-alert__close:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
}

.cart-payment-alert__action {
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

.cart-payment-alert__action:hover {
    color: #0b5ed7;
}

.cart-payment-alert--hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .cart-payment-alert {
        position: fixed;
        top: 76px;
        left: 50%;
        transform: translateX(-50%);
        width: min(94vw, 340px);
        right: auto;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
        z-index: 1500;
    }

    .cart-payment-alert::before {
        display: none;
    }
}

.product-item-name {
    font-weight: bold;
}
.product-item-img-wrapper {
    display: flex;
    min-height: 100px;
}
.product-item-img-wrapper img {
    max-width: 100%; 
    max-height: 100%;
    height: auto;
    object-fit: contain;
} 
@media screen and (max-width: 768px) {
    .product-item {
        height: auto;
        max-height: fit-content;
    }
}