* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111827;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ================= HEADER ================= */

.header {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    color: #1468ff;
}

.search-box {
    flex: 1;
    max-width: 430px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 0 15px;
}

.search-box span {
    font-size: 24px;
    color: #475569;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #334155;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.profile-button {
    border: none;
    background: transparent;
    font-size: 22px;
    padding: 8px;
}

.profile-button {
    font-size: 26px;
}

.login-btn,
.nav-login {
    border: none;
    background: #1468ff;
    color: white;
    padding: 12px 27px;
    border-radius: 25px;
    font-weight: 700;
}


/* ================= NAVIGATION ================= */

.navigation {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 0 28px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.all-games {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    font-weight: 600;
    color: #334155;
}

.nav-links a.active {
    color: #1468ff;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1468ff;
}

.language {
    margin-left: auto;
    font-weight: 600;
}

.nav-login {
    display: none;
}


/* ================= MAIN ================= */

main {
    max-width: 1280px;
    margin: auto;
    padding: 25px;
}


/* ================= HERO ================= */

.hero {
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            100deg,
            #eaf7ff 0%,
            #f5fbff 50%,
            #d8eeff 100%
        );
    position: relative;
}

.hero-content {
    width: 52%;
    padding: 38px;
    position: relative;
    z-index: 2;
}

.hero-small {
    color: #475569;
    font-size: 15px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.hero h1 span {
    color: #1468ff;
}

.hero-content > p:not(.hero-small) {
    color: #475569;
    font-size: 17px;
    line-height: 1.5;
}

.shop-btn {
    margin-top: 22px;
    border: none;
    background: #1468ff;
    color: white;
    padding: 13px 25px;
    border-radius: 25px;
    font-weight: 700;
}

.hero-games {
    flex: 1;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
}

.hero-game {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-size: 25px;
    font-weight: 900;
    padding: 15px;
    text-shadow: 0 2px 5px #000;
}

.hero-game small {
    display: block;
    font-size: 13px;
    margin-left: 5px;
}

.pubg {
    background: linear-gradient(135deg, #3b82f6, #172554);
}

.freefire {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.mlbb {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}


/* ================= QUICK ACTIONS ================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.quick-card {
    min-height: 125px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: white;
}

.quick-card h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.quick-card p {
    color: #64748b;
    font-size: 13px;
}

.quick-card b {
    margin-left: auto;
    font-size: 20px;
}

.quick-icon {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 23px;
}

.blue {
    background: #dbeafe;
}

.green {
    background: #dcfce7;
}

.purple {
    background: #ede9fe;
}

.orange {
    background: #ffedd5;
}


/* ================= PROMO ================= */

.promo-banner {
    height: 155px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 25px;
    color: white;
    background:
        linear-gradient(
            100deg,
            #020617,
            #172033,
            #92400e
        );
}

.promo-logo {
    font-size: 31px;
    font-weight: 900;
    color: #facc15;
    width: 150px;
}

.promo-logo small {
    display: block;
    font-size: 15px;
}

.promo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-text strong {
    font-size: 23px;
}

.promo-text span {
    color: #facc15;
    font-size: 24px;
    font-weight: 900;
}

.promo-text button {
    margin-top: 9px;
    width: 125px;
    border: none;
    padding: 10px;
    border-radius: 9px;
    background: #facc15;
    color: #111827;
    font-weight: 800;
}

.promo-art {
    margin-left: auto;
    font-size: 70px;
}


/* ================= SECTION ================= */

.content-section {
    margin-top: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title h2 {
    font-size: 27px;
}

.section-title span {
    color: #64748b;
    font-size: 14px;
}

.section-title a {
    color: #1468ff;
    font-weight: 700;
}


/* ================= GAMES ================= */

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: white;
    transition: 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px #00000012;
}

.game-image {
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #0869ff,
            #38bdf8
        );
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 15px;
}

.game-info h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #dcfce7;
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}

.game-button {
    width: 100%;
    margin-top: 13px;
    border: none;
    background: #1468ff;
    color: white;
    padding: 11px;
    border-radius: 8px;
    font-weight: 700;
}


/* ================= BENEFITS ================= */

.benefits {
    margin: 30px 0;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    border-radius: 14px;
    background: #f3f8ff;
}

.benefits div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 12px;
    border-right: 1px solid #dbeafe;
}

.benefits div:last-child {
    border-right: none;
}

.benefits strong {
    font-size: 14px;
}

.benefits span {
    color: #64748b;
    font-size: 12px;
}


/* ================= PRODUCTS ================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    background: white;
}

.product-image {
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #facc15,
            #f59e0b
        );
    color: #111827;
    font-size: 25px;
    font-weight: 900;
}

.product-image.diamond {
    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #38bdf8
        );
}

.product-card h3 {
    margin-top: 10px;
    font-size: 15px;
}

.product-card p {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.product-card strong {
    display: block;
    margin: 10px 0;
    color: #1468ff;
    font-size: 17px;
}

.product-card button {
    width: 100%;
    border: none;
    background: #1468ff;
    color: white;
    padding: 9px;
    border-radius: 7px;
    font-weight: 700;
}


/* ================= PACKAGES ================= */

.package-view {
    grid-column: 1 / -1;
}

.back-button {
    border: none;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 9px;
    margin-bottom: 18px;
}

.currency-title {
    color: #64748b;
    margin: 8px 0 15px;
}

.currency-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.currency-button {
    border: 1px solid #dbe3ef;
    background: white;
    padding: 10px 18px;
    border-radius: 10px;
}

.currency-button:hover {
    background: #1468ff;
    color: white;
}

.packages-title {
    margin: 28px 0 15px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.package-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    min-height: 120px;
    transition: 0.2s;
    box-sizing: border-box;
}
.package-card:hover {
    transform: translateY(-2px);
}
.package-price {
    color: #1468ff;
    font-size: 18px;
    font-weight: 800;
    margin: 10px 0;
}

.buy-button {
    width: 100%;
    border: none;
    background: #1468ff;
    color: white;
    padding: 10px;
    border-radius: 8px;
}


/* ================= LOADING ================= */

.loading {
    grid-column: 1 / -1;
    padding: 50px;
    text-align: center;
    color: #64748b;
}


/* ================= MOBILE NAV ================= */

.mobile-nav {
    display: none;
}


/* ================= FOOTER ================= */

.footer {
    margin-top: 30px;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
}

.footer strong {
    color: #1468ff;
    font-size: 20px;
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .header {
        height: auto;
        padding: 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 23px;
    }

    .header-actions {
        margin-left: auto;
    }

    .icon-button,
    .profile-button {
        display: none;
    }

    .login-btn {
        padding: 7px 13px;
        font-size: 14px;
        border-radius: 20px;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .navigation {
        display: none;
    }

    main {
        padding: 15px;
    }

    .hero {
        min-height: 300px;
    }

    .hero-content {
        width: 100%;
        padding: 25px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-games {
        display: none;
    }

    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .quick-card {
        min-height: 110px;
        padding: 12px;
    }

    .quick-card h3 {
        font-size: 14px;
    }

    .quick-card p {
        font-size: 11px;
    }

    .quick-card b {
        display: none;
    }

    .promo-banner {
        height: 130px;
        padding: 15px;
    }

    .promo-logo {
        font-size: 22px;
        width: 90px;
    }

    .promo-text strong {
        font-size: 16px;
    }

    .promo-text span {
        font-size: 18px;
    }

    .promo-art {
        font-size: 40px;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .game-image {
        height: 115px;
        font-size: 17px;
    }

    .game-info {
        padding: 10px;
    }

    .game-info h3 {
        font-size: 14px;
    }

    .game-button {
        font-size: 13px;
    }

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

    .benefits div {
        border-right: none;
    }

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

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

    .footer {
        padding-bottom: 90px;
    }

    .mobile-nav {
        position: fixed;
        display: flex;
        left: 0;
        right: 0;
        bottom: 0;
        height: 65px;
        z-index: 100;
        background: white;
        border-top: 1px solid #e5e7eb;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #64748b;
        font-size: 11px;
    }

    .mobile-nav a:first-child {
        color: #1468ff;
    }

    .mobile-nav a span {
        font-size: 11px;
    }
}

/* ================= LOGIN MODAL ================= */

.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;

    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.55);
}

.login-box {
    width: 90%;
    max-width: 400px;

    position: relative;

    padding: 30px;

    border-radius: 16px;

    background: white;

    box-shadow: 0 20px 60px #00000030;
}

.login-box h2 {
    margin-bottom: 8px;
}

.login-box > p {
    color: #64748b;
    margin-bottom: 22px;
}

.close-login {
    position: absolute;
    top: 12px;
    right: 15px;

    border: none;
    background: transparent;

    font-size: 28px;
    color: #64748b;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

#loginForm input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dbe3ef;
    border-radius: 9px;

    outline: none;
}

#loginForm input:focus {
    border-color: #1468ff;
}

.login-submit {
    border: none;

    padding: 13px;

    border-radius: 9px;

    background: #1468ff;
    color: white;

    font-weight: 700;
}

#loginMessage {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.auth-switch button {
    border: none;
    background: transparent;
    color: #1468ff;
    font-weight: 700;
    cursor: pointer;
}

#signupForm {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.hero-games{
    display:flex;
    gap:10px;
    width:50%;
    height:260px;
}

.hero-game{
    flex:1;
    height:100%;
    overflow:hidden;
    border-radius:12px;
}

.hero-game img{
    width:100%;
    height:100%;
    object-fit:cover;
}


@media(max-width:768px){

.hero{
    flex-direction:column;
}

.hero-content{
    width:100%;
}

.hero-games{
    width:100%;
    height:80px;
    display:flex;
    gap:5px;
}
.hero-game{
    flex:1;
    height:100%;
    border-radius:8px;
}

.hero-game img{
    width:100%;
    height:100%;
    object-fit:cover;
}

}


@media(max-width:768px){

.hero-games{
    width:100% !important;
    height:90px !important;
    display:flex;
    gap:6px;
    overflow:hidden;
}

.hero-games .hero-game{
    width:33.33% !important;
    height:90px !important;
    flex:0 0 33.33% !important;
}

.hero-games .hero-game img{
    width:100% !important;
    height:90px !important;
    object-fit:cover;
}

}

/* ============================= */
/* PAYMENT SUCCESS POPUP */
/* ============================= */

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 99999;

    padding: 20px;

    animation: successFadeIn 0.25s ease;
}

.success-box {
    width: 100%;
    max-width: 430px;

    background: #101a2f;

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 24px;

    padding: 30px 24px 24px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5);

    animation: successPopup 0.3s ease;
}

.success-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #16a34a;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    font-weight: 800;

    box-shadow:
        0 0 0 8px rgba(22, 163, 74, 0.12);
}

.success-box h2 {
    margin: 0;

    color: #ffffff;

    font-size: 26px;
    font-weight: 800;
}

.success-subtitle {
    margin: 10px 0 22px;

    color: #aeb9ca;

    font-size: 14px;

    line-height: 1.5;
}

.success-details {
    background: #17233d;

    border-radius: 16px;

    padding: 6px 16px;

    margin-bottom: 22px;

    text-align: left;
}

.success-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.success-row:last-child {
    border-bottom: none;
}

.success-row span {
    color: #9eabc0;

    font-size: 14px;
}

.success-row strong {
    color: #ffffff;

    font-size: 15px;

    text-align: right;

    word-break: break-word;
}

.success-row .status-processing {
    color: #22c55e;

    text-transform: capitalize;
}

.success-close {
    width: 100%;

    border: none;

    border-radius: 13px;

    padding: 14px 20px;

    background: #1677ff;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.success-close:hover {
    background: #0869e8;

    transform: translateY(-1px);
}

.success-close:active {
    transform: scale(0.98);
}

@keyframes successFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes successPopup {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ================= PAYMENT SUCCESS POPUP ================= */

#paymentSuccessModal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

#paymentSuccessModal .success-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;
}

#paymentSuccessModal .success-box {
    width: 100%;
    max-width: 430px;

    background: #101a2f;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;

    padding: 30px 24px 24px;
    text-align: center;

    box-shadow: 0 25px 70px rgba(0,0,0,.5);
}

#paymentSuccessModal .success-icon {
    width: 76px;
    height: 76px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #16a34a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    font-weight: 800;

    box-shadow: 0 0 0 8px rgba(22,163,74,.12);
}

#paymentSuccessModal .success-box h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

#paymentSuccessModal .success-subtitle {
    margin: 10px 0 22px;
    color: #aeb9ca;
    font-size: 14px;
    line-height: 1.5;
}

#paymentSuccessModal .success-details {
    background: #17233d;
    border-radius: 16px;

    padding: 6px 16px;
    margin-bottom: 22px;

    text-align: left;
}

#paymentSuccessModal .success-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
    padding: 15px 0;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

#paymentSuccessModal .success-row:last-child {
    border-bottom: none;
}

#paymentSuccessModal .success-row span {
    color: #9eabc0;
    font-size: 14px;
}

#paymentSuccessModal .success-row strong {
    color: #fff;
    font-size: 15px;
    text-align: right;
    word-break: break-word;
}

#paymentSuccessModal .status-processing {
    color: #22c55e;
    text-transform: capitalize;
}

#paymentSuccessModal .success-close {
    width: 100%;

    border: none;
    border-radius: 13px;

    padding: 14px 20px;

    background: #1677ff;
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
}

/* ================= BACK TO GAMES BUTTON ================= */

.back-games-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 18px;

    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #f8fbff,
        #eef5ff
    );

    color: #172033;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.back-games-arrow {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #1677ff;
    color: #fff;

    font-size: 18px;
    font-weight: 800;

    line-height: 1;
}

.back-games-btn:hover {
    background: linear-gradient(
        135deg,
        #eef6ff,
        #e4efff
    );

    border-color: #1677ff;

    box-shadow:
        0 6px 18px rgba(22, 119, 255, 0.18);

    transform: translateY(-1px);
}

.back-games-btn:active {
    transform: scale(0.97);
}

@media (max-width: 600px) {
    .back-games-btn {
        padding: 10px 15px;
        font-size: 13px;
        gap: 8px;
    }

    .back-games-arrow {
        width: 26px;
        height: 26px;
        font-size: 17px;
    }
}

.back-games-btn {
    margin-bottom: 18px;
}

.error-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;
    padding: 20px;

    animation: errorFadeIn .25s ease;
}

.error-box {
    width: 100%;
    max-width: 420px;

    background: #101a2f;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;

    padding: 30px 24px 24px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0,0,0,.5);

    animation: errorPopup .3s ease;
}

.error-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #dc2626;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 40px;
    font-weight: 800;

    box-shadow:
        0 0 0 8px rgba(220,38,38,.12);
}

.error-box h2 {
    margin: 0;

    color: #fff;

    font-size: 25px;
    font-weight: 800;
}

.error-subtitle {
    margin: 12px 0 18px;

    color: #fca5a5;

    font-size: 15px;
    line-height: 1.5;
}

.error-help {
    background: #17233d;

    border-radius: 14px;

    padding: 14px;

    margin-bottom: 22px;

    color: #aeb9ca;

    font-size: 13px;
    line-height: 1.5;
}

.error-close {
    width: 100%;

    border: none;
    border-radius: 13px;

    padding: 14px 20px;

    background: #1677ff;
    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.error-close:hover {
    background: #0869e8;
    transform: translateY(-1px);
}

.error-close:active {
    transform: scale(.98);
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes errorPopup {
    from {
        opacity: 0;
        transform: scale(.92) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-required-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 999999;

    animation: loginOverlayIn .25s ease;
}

.login-required-box {
    width: 100%;
    max-width: 400px;

    background: #101a2f;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;

    padding: 30px 24px 24px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(0,0,0,.55);

    animation: loginBoxIn .3s ease;
}

.login-required-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: rgba(22,119,255,.15);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    box-shadow:
        0 0 0 8px rgba(22,119,255,.08);
}

.login-required-box h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: 25px;
    font-weight: 800;
}

.login-required-box p {
    margin: 0 0 24px;

    color: #aeb9ca;

    font-size: 14px;
    line-height: 1.6;
}

.login-required-actions {
    display: flex;
    gap: 10px;
}

.login-required-login,
.login-required-cancel {
    flex: 1;

    border: none;
    border-radius: 13px;

    padding: 14px 16px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s;
}

.login-required-login {
    background: #1677ff;
    color: #fff;
}

.login-required-login:hover {
    background: #0869e8;
    transform: translateY(-1px);
}

.login-required-cancel {
    background: #1d293d;
    color: #d1d9e6;
}

.login-required-cancel:hover {
    background: #26364f;
}

.login-required-login:active,
.login-required-cancel:active {
    transform: scale(.98);
}

@keyframes loginOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes loginBoxIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ================= PAYMENT UI ================= */

.payment-method-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.payment-method-title small {
    color: #8ea2c7;
    font-size: 12px;
    font-weight: 600;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.payment-method-card {
    position: relative;
    min-height: 105px;
    border: 2px solid #263957;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        #101d32,
        #0b1729
    );
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all .2s ease;
    box-shadow:
        0 8px 20px rgba(0,0,0,.18);
}

.payment-method-card:hover {
    transform: translateY(-2px);
    border-color: #1683ff;
}

.payment-method-card.selected {
    border-color: #1683ff;
    background: linear-gradient(
        145deg,
        #102b4d,
        #0b1e37
    );
    box-shadow:
        0 0 0 1px #1683ff,
        0 8px 25px rgba(22,131,255,.20);
}

.payment-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #1683ff;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.payment-method-card.selected
.payment-check {
    display: flex;
}

.payment-method-icon {
    font-size: 32px;
    line-height: 1;
}

.payment-method-name {
    font-size: 15px;
    font-weight: 800;
}

.selected-payment-details {
    min-height: 105px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #284365;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        #0e2038,
        #09182b
    );
    color: white;
}

.payment-placeholder {
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #8296b8;
    font-size: 14px;
}

.payment-placeholder div {
    font-size: 25px;
}

.selected-payment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.selected-payment-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #162b47;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.selected-payment-header strong {
    display: block;
    font-size: 19px;
}

.selected-payment-header span {
    display: block;
    margin-top: 3px;
    color: #91a6c8;
    font-size: 13px;
}

.payment-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payment-account-row strong {
    font-size: 21px;
    letter-spacing: .5px;
}

.payment-copy-btn {
    border: 0;
    border-radius: 9px;
    padding: 9px 16px;
    background: #1683ff;
    color: white;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.payment-copy-btn:hover {
    background: #0874e8;
}

.payment-meta {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.payment-meta span {
    padding: 4px 9px;
    border-radius: 6px;
    background: #162b47;
    color: #9db1d1;
    font-size: 12px;
}

.payment-input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 16px;
    margin-top: 10px;
    border: 1px solid #3b4f6d;
    border-radius: 11px;
    background: #f5f9ff;
    color: #101827;
    font-size: 16px;
    outline: none;
}

.payment-input:focus {
    border-color: #1683ff;
    box-shadow:
        0 0 0 3px rgba(22,131,255,.15);
}

.payment-input::placeholder {
    color: #7890b1;
}

.payment-empty,
.payment-error {
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    background: #111d30;
    color: #9db1d1;
}


/* ================= MOBILE ================= */

@media (max-width: 650px) {

    .payment-method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .payment-method-card {
        min-height: 90px;
    }

    .payment-method-icon {
        font-size: 27px;
    }

    .payment-method-name {
        font-size: 14px;
    }

    .payment-account-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-copy-btn {
        width: 100%;
    }

}

/* ================= PAYMENT LOGOS ================= */

.payment-method-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.selected-payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #162b47;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.selected-payment-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

/* ================= PACKAGE CARD FIX ================= */

.package-card {
    background: #ffffff !important;
    color: #1f2937 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    padding: 14px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    min-height: 90px !important;
    box-sizing: border-box;
}

.package-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.package-amount {
    color: #1f2937 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.package-price {
    color: #1468ff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    margin: 6px 0 0 !important;
}

.package-card .buy-button {
    width: auto !important;
    min-width: 120px;
    margin: 0 !important;
    padding: 10px 16px !important;
    background: #1468ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {

    .packages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .package-card {
        min-height: 105px !important;
        padding: 12px !important;
    }

    .package-amount {
        font-size: 15px !important;
    }

    .package-price {
        font-size: 15px !important;
    }

    .package-card .buy-button {
        min-width: 90px;
        padding: 9px 10px !important;
        font-size: 13px;
    }
}

/* =========================================================
   APEXGAMER FINAL MOBILE RESPONSIVE FIX
   Desktop layout untouched
   ========================================================= */

@media (max-width: 768px) {

    /* Main page */
    main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
        overflow-x: hidden;
    }

    /* Header */
    .header {
        width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }

    /* Hero */
    .hero {
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
    }

    .hero h1 {
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.15;
    }

    /* Quick cards */
    .quick-actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .quick-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    /* Games */
    .games-grid {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        box-sizing: border-box;
    }

    .game-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
        border-radius: 12px;
    }

    .game-image {
        width: 100%;
        height: 125px !important;
        overflow: hidden;
    }

    .game-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .game-info {
        width: 100%;
        box-sizing: border-box;
        padding: 10px !important;
    }

    .game-info h3 {
        font-size: 14px !important;
        line-height: 1.25;
        margin: 0 0 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-button {
        width: 100%;
        box-sizing: border-box;
        font-size: 13px !important;
        padding: 9px 8px !important;
    }

    /* Benefits */
    .benefits {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* Packages */
    .packages-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .package-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Prevent horizontal scrolling */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

}


/* Small phones */
@media (max-width: 420px) {

    main {
        padding: 10px;
    }

    .games-grid {
        gap: 9px !important;
    }

    .game-image {
        height: 105px !important;
    }

    .game-info {
        padding: 8px !important;
    }

    .game-info h3 {
        font-size: 13px !important;
    }

    .game-button {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }

    .quick-actions {
        gap: 8px;
    }

}


/* =========================================================
   MOBILE FINAL FIX - HERO + TEXT SIZE
   ========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px;
    }

    /* HERO FIX */
    .hero {
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }

    .hero-content {
        width: 100% !important;
        box-sizing: border-box;
        padding: 22px !important;
    }

    .hero h1 {
        font-size: 32px !important;
        line-height: 1.12 !important;
    }

    .hero-content > p:not(.hero-small) {
        font-size: 15px !important;
    }

    /* HERO GAME IMAGES */
    .hero-games {
        width: 100% !important;
        height: 90px !important;
        min-height: 0 !important;
        flex: none !important;
        display: flex !important;
        gap: 6px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .hero-game {
        width: 33.333% !important;
        height: 90px !important;
        min-height: 0 !important;
        flex: 0 0 33.333% !important;
        padding: 0 !important;
    }

    .hero-game img {
        width: 100% !important;
        height: 90px !important;
        object-fit: cover;
        display: block;
    }

    /* QUICK CARDS */
    .quick-actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .quick-card {
        min-height: 105px !important;
        height: auto !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    .quick-card h3 {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .quick-card p {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    /* GAMES */
    .games-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .game-image {
        height: 110px !important;
        min-height: 0 !important;
    }

    .game-info {
        padding: 9px !important;
    }

    .game-info h3 {
        font-size: 14px !important;
    }

    .game-button {
        width: 100%;
        font-size: 13px !important;
        padding: 9px 6px !important;
    }
}

@media (max-width: 420px) {

    main {
        padding: 10px;
    }

    .hero-content {
        padding: 18px !important;
    }

    .hero h1 {
        font-size: 28px !important;
    }

    .hero-games,
    .hero-game,
    .hero-game img {
        height: 82px !important;
    }

    .quick-card {
        min-height: 95px !important;
        padding: 10px !important;
    }

    .quick-card h3 {
        font-size: 14px !important;
    }

    .quick-card p {
        font-size: 11px !important;
    }
}


/* =========================================================
   APEXGAMER MOBILE COMPACT FIX
   Desktop untouched
   ========================================================= */

@media (max-width: 650px) {

    main {
        padding: 10px !important;
    }

    /* HERO */
    .hero {
        min-height: 220px !important;
        height: auto !important;
        border-radius: 12px !important;
    }

    .hero-content {
        width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    .hero-small {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    .hero h1 {
        font-size: 28px !important;
        line-height: 1.05 !important;
        margin-bottom: 9px !important;
    }

    .hero-content > p:not(.hero-small) {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .shop-btn {
        margin-top: 12px !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
    }

    .hero-games {
        height: 70px !important;
        min-height: 70px !important;
        width: 100% !important;
        gap: 4px !important;
    }

    .hero-games .hero-game {
        height: 70px !important;
        flex: 0 0 33.33% !important;
    }

    /* QUICK CARDS */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin: 12px 0 !important;
    }

    .quick-card {
        min-height: 82px !important;
        height: 82px !important;
        padding: 10px !important;
        gap: 8px !important;
        border-radius: 11px !important;
        box-sizing: border-box;
    }

    .quick-icon {
        min-width: 38px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
        border-radius: 10px !important;
    }

    .quick-card h3 {
        font-size: 13px !important;
        margin-bottom: 3px !important;
        line-height: 1.15 !important;
    }

    .quick-card p {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .quick-card b {
        display: none !important;
    }

    /* PROMO */
    .promo-banner {
        height: 105px !important;
        min-height: 105px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .promo-logo {
        font-size: 18px !important;
        width: 70px !important;
    }

    .promo-text strong {
        font-size: 13px !important;
    }

    .promo-text span {
        font-size: 15px !important;
    }

    .promo-art {
        font-size: 30px !important;
    }

    /* SECTION TITLE */
    .section-title {
        margin: 16px 0 10px !important;
    }

    .section-title h2 {
        font-size: 22px !important;
    }

    .section-title span {
        font-size: 12px !important;
    }

    /* GAME GRID */
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .game-card {
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    .game-image {
        height: 95px !important;
        min-height: 95px !important;
    }

    .game-info {
        padding: 8px !important;
    }

    .game-info h3 {
        font-size: 13px !important;
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
    }

    .badge {
        font-size: 9px !important;
        padding: 4px 7px !important;
    }

    .game-button {
        width: 100% !important;
        padding: 8px 5px !important;
        font-size: 12px !important;
        border-radius: 7px !important;
        margin-top: 6px !important;
    }

    /* BENEFITS */
    .benefits {
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .benefits div {
        padding: 10px !important;
    }

    .benefits strong {
        font-size: 11px !important;
    }

    .benefits span {
        font-size: 9px !important;
    }

    /* FOOTER */
    .footer {
        padding: 20px 10px 80px !important;
    }

}


/* EXTRA SMALL PHONES */
@media (max-width: 400px) {

    main {
        padding: 8px !important;
    }

    .hero h1 {
        font-size: 24px !important;
    }

    .hero-content {
        padding: 16px !important;
    }

    .game-image {
        height: 85px !important;
        min-height: 85px !important;
    }

    .game-info h3 {
        font-size: 12px !important;
    }

    .game-button {
        font-size: 11px !important;
        padding: 7px 4px !important;
    }

    .quick-card {
        min-height: 76px !important;
        height: 76px !important;
    }

}


/* =========================================================
   MOBILE SUPPORT POPUP COMPACT
   Desktop unchanged
   ========================================================= */

@media (max-width: 650px) {

    #supportModal {
        padding: 8px !important;
        align-items: center !important;
    }

    #supportModal > div {
        width: 100% !important;
        max-width: 430px !important;
        max-height: 82vh !important;
        padding: 14px !important;
        border-radius: 14px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #supportModal h2 {
        font-size: 24px !important;
        line-height: 1.1 !important;
    }

    #supportModal h2 + button {
        width: 34px !important;
        height: 34px !important;
        font-size: 20px !important;
    }

    #supportModal p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }

    #supportModal label {
        font-size: 14px !important;
        margin: 8px 0 4px !important;
    }

    #supportModal input,
    #supportModal select,
    #supportModal textarea {
        padding: 10px !important;
        min-height: 42px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    #supportModal textarea {
        min-height: 85px !important;
        height: 85px !important;
    }

    #supportModal input[type="file"] {
        padding: 8px !important;
        min-height: 40px !important;
        font-size: 12px !important;
    }

    #supportModal button[type="submit"],
    #supportModal #supportSubmitBtn {
        min-height: 42px !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }
}


/* Extra small phones */
@media (max-width: 400px) {

    #supportModal {
        padding: 6px !important;
    }

    #supportModal > div {
        max-height: 84vh !important;
        padding: 12px !important;
    }

    #supportModal h2 {
        font-size: 22px !important;
    }

    #supportModal p {
        font-size: 12px !important;
    }

    #supportModal label {
        font-size: 13px !important;
        margin: 7px 0 3px !important;
    }

    #supportModal input,
    #supportModal select,
    #supportModal textarea {
        font-size: 13px !important;
        padding: 9px !important;
    }

    #supportModal textarea {
        min-height: 75px !important;
        height: 75px !important;
    }

}


/* ================= SEARCH SUGGESTIONS ================= */

.search-box {
    position: relative;
}

#searchSuggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;

    display: none;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.15);

    overflow: hidden;
}

.search-suggestion {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    border: none;
    border-bottom: 1px solid #eef2f7;

    background: #ffffff;
    color: #172033;

    text-align: left;
    cursor: pointer;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:hover {
    background: #f1f7ff;
}

.search-suggestion-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: #eaf3ff;

    font-size: 20px;
}

.search-suggestion span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-suggestion strong {
    font-size: 14px;
}

.search-suggestion small {
    color: #64748b;
    font-size: 11px;
}

.search-no-result {
    padding: 14px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}


/* Mobile */

@media (max-width: 768px) {

    #searchSuggestions {
        top: calc(100% + 6px);
        border-radius: 10px;
    }

    .search-suggestion {
        padding: 10px 12px;
    }

    .search-suggestion-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

}


/* ================= GAME SEARCH SUGGESTIONS ================= */

.search-box {
    position: relative;
}

#gameSearchSuggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0,0,0,.15);

    overflow: hidden;

    z-index: 999999;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;

    cursor: pointer;

    background: #ffffff;
}

.search-suggestion:hover {
    background: #f1f5f9;
}

.search-suggestion img {
    width: 42px;
    height: 42px;

    border-radius: 8px;

    object-fit: cover;

    flex-shrink: 0;
}

.search-suggestion span {
    font-size: 15px;
    font-weight: 700;
    color: #172033;
}

.search-no-result {
    padding: 14px;

    text-align: center;

    color: #64748b;

    font-size: 14px;
}


/* Mobile */
@media (max-width: 768px) {

    #gameSearchSuggestions {
        left: 0;
        right: 0;

        max-height: 260px;
        overflow-y: auto;
    }

    .search-suggestion {
        padding: 9px 10px;
    }

    .search-suggestion img {
        width: 38px;
        height: 38px;
    }

    .search-suggestion span {
        font-size: 14px;
    }

}


/* =========================================================
   ALL GAMES PAGE
   ========================================================= */

#allGamesPage {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f8fafc;
    overflow-y: auto;
}

.all-games-page {
    min-height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.all-games-header {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.all-games-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.all-games-header p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 15px;
}

.all-games-header > div {
    flex: 1;
}

.all-games-header > span {
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

.all-games-back {
    border: 0;
    background: #0879f9;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.all-games-search {
    max-width: 1200px;
    margin: 0 auto 24px;
}

.all-games-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    outline: none;
}

.all-games-search input:focus {
    border-color: #0879f9;
    box-shadow: 0 0 0 3px rgba(8,121,249,.10);
}

.all-games-grid {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {

    .all-games-page {
        padding: 14px;
    }

    .all-games-header {
        gap: 10px;
        margin-bottom: 16px;
    }

    .all-games-header h1 {
        font-size: 25px;
    }

    .all-games-header p {
        font-size: 13px;
    }

    .all-games-header > span {
        font-size: 13px;
    }

    .all-games-back {
        padding: 10px 14px;
        font-size: 15px;
    }

    .all-games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .all-games-search input {
        height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 430px) {

    .all-games-header {
        flex-wrap: wrap;
    }

    .all-games-header > div {
        order: 2;
        width: 100%;
    }

    .all-games-header > span {
        margin-left: auto;
    }

    .all-games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}


/* =========================================================
   FINAL RESPONSIVE SIZE FIX
   Desktop + Mobile
   ========================================================= */

/* Main content should not become excessively wide */
.container,
main,
.main-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Package area */
.packages-grid {
    width: 100%;
    box-sizing: border-box;
}

.package-card {
    box-sizing: border-box;
}

/* ================= DESKTOP ================= */
@media (min-width: 769px) {

    .packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .package-card {
        min-height: 90px !important;
        padding: 14px !important;
    }

    .package-amount {
        font-size: 17px !important;
    }

    .package-price {
        font-size: 17px !important;
    }

    .package-card .buy-button {
        min-width: 120px !important;
        font-size: 14px !important;
        padding: 10px 16px !important;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .container,
    main,
    .main-content {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    /* Package grid */
    .packages-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100%;
    }

    /* Package card */
    .package-card {
        width: 100% !important;
        min-height: 76px !important;
        padding: 11px 12px !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    .package-info {
        min-width: 0;
    }

    .package-amount {
        font-size: 15px !important;
        line-height: 1.15 !important;
    }

    .package-price {
        font-size: 15px !important;
        margin-top: 4px !important;
        line-height: 1.15 !important;
    }

    .package-card .buy-button {
        min-width: 92px !important;
        padding: 9px 11px !important;
        font-size: 13px !important;
        border-radius: 7px !important;
        white-space: nowrap;
    }

    /* Back button */
    .back-button {
        padding: 8px 12px !important;
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    .packages-title {
        font-size: 22px !important;
        margin: 18px 0 10px !important;
    }

    .currency-title {
        font-size: 18px !important;
        margin: 6px 0 10px !important;
    }

    /* Payment section */
    .payment-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .payment-method-card {
        min-height: 105px !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .payment-method-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .payment-method-icon img {
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .payment-method-name {
        font-size: 15px !important;
        margin-top: 6px !important;
    }

    .payment-input {
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 52px !important;
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    /* Success popup */
    #paymentSuccessModal .success-box {
        width: calc(100% - 28px) !important;
        max-width: 420px !important;
        padding: 22px 16px !important;
        box-sizing: border-box !important;
    }

    #paymentSuccessModal .success-icon {
        width: 72px !important;
        height: 72px !important;
    }

    #paymentSuccessModal .success-box h2 {
        font-size: 25px !important;
        line-height: 1.15 !important;
    }

    #paymentSuccessModal .success-subtitle {
        font-size: 15px !important;
    }

    #paymentSuccessModal .success-details {
        padding: 12px !important;
        margin-bottom: 14px !important;
    }

    #paymentSuccessModal .success-row {
        padding: 10px 0 !important;
        font-size: 14px !important;
    }

    #paymentSuccessModal .success-close {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 16px !important;
    }
}

/* ================= SMALL PHONE ================= */
@media (max-width: 480px) {

    .container,
    main,
    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .package-card {
        min-height: 70px !important;
        padding: 9px 10px !important;
    }

    .package-amount,
    .package-price {
        font-size: 14px !important;
    }

    .package-card .buy-button {
        min-width: 82px !important;
        padding: 8px 9px !important;
        font-size: 12px !important;
    }

    .payment-method-card {
        min-height: 95px !important;
        padding: 9px !important;
    }

    .payment-method-icon,
    .payment-method-icon img {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .payment-method-name {
        font-size: 14px !important;
    }

    #paymentSuccessModal .success-box {
        width: calc(100% - 20px) !important;
        padding: 18px 13px !important;
    }

    #paymentSuccessModal .success-box h2 {
        font-size: 22px !important;
    }
}



/* =========================================================
   MOBILE CHECKOUT COMPACT FIX
   Desktop remains unchanged
   ========================================================= */

@media (max-width: 768px) {

    /* Main checkout overlay */
    #apexCheckoutModal {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 99999 !important;
    }

    /* Main checkout box */
    #apexCheckoutModal > div {
        width: min(100%, 540px) !important;
        max-width: 540px !important;
        margin: 12px auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        border-radius: 22px !important;
    }

    /* Reduce all headings inside checkout */
    #apexCheckoutModal h1 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }

    #apexCheckoutModal h2 {
        font-size: 25px !important;
        line-height: 1.2 !important;
        margin-top: 16px !important;
        margin-bottom: 12px !important;
    }

    #apexCheckoutModal h3 {
        font-size: 19px !important;
    }

    /* Close button */
    #apexCheckoutModal #closeCheckout {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 13px !important;
        font-size: 28px !important;
    }

    /* Account info / order summary boxes */
    #apexCheckoutModal #paymentSection,
    #apexCheckoutModal .checkout-section {
        padding: 0 !important;
    }

    /* Inner cards */
    #apexCheckoutModal > div > div {
        box-sizing: border-box !important;
    }

    /* Player ID input */
    #apexCheckoutModal #apexPlayerId {
        width: 100% !important;
        min-height: 54px !important;
        padding: 14px 16px !important;
        font-size: 16px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }

    /* Go to payment */
    #apexCheckoutModal #goPaymentBtn {
        width: 100% !important;
        min-height: 58px !important;
        padding: 13px 16px !important;
        margin-top: 14px !important;
        border-radius: 14px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    /* Payment method title */
    #apexCheckoutModal .payment-method-title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }

    #apexCheckoutModal .payment-method-title small {
        font-size: 14px !important;
    }

    /* Wallet / Manual payment buttons */
    #apexCheckoutModal #walletOption,
    #apexCheckoutModal #manualOption {
        min-height: 62px !important;
        padding: 14px 16px !important;
        border-radius: 15px !important;
        margin-bottom: 10px !important;
        box-sizing: border-box !important;
    }

    #apexCheckoutModal #walletOption div,
    #apexCheckoutModal #manualOption div {
        font-size: 17px !important;
    }

    /* Payment method cards */
    #apexCheckoutModal .payment-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    #apexCheckoutModal .payment-method-card {
        min-height: 105px !important;
        padding: 12px 8px !important;
        border-radius: 15px !important;
        box-sizing: border-box !important;
    }

    #apexCheckoutModal .payment-method-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 6px !important;
    }

    #apexCheckoutModal .payment-method-icon img {
        width: 50px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    #apexCheckoutModal .payment-method-name {
        font-size: 16px !important;
        line-height: 1.1 !important;
    }

    /* Selected payment account box */
    #apexCheckoutModal .selected-payment-details {
        padding: 14px !important;
        margin-bottom: 12px !important;
        border-radius: 15px !important;
        box-sizing: border-box !important;
    }

    #apexCheckoutModal .selected-payment-header {
        margin-bottom: 10px !important;
    }

    #apexCheckoutModal .selected-payment-icon {
        width: 42px !important;
        height: 42px !important;
    }

    #apexCheckoutModal .selected-payment-icon img {
        width: 42px !important;
        height: 42px !important;
    }

    #apexCheckoutModal .payment-account-row {
        gap: 8px !important;
        padding: 10px !important;
    }

    #apexCheckoutModal .payment-account-row strong {
        font-size: 16px !important;
        word-break: break-word !important;
    }

    #apexCheckoutModal .payment-copy-btn {
        padding: 7px 10px !important;
        font-size: 13px !important;
    }

    /* Payment inputs */
    #apexCheckoutModal .payment-input,
    #apexCheckoutModal #paymentMethod,
    #apexCheckoutModal #transactionId,
    #apexCheckoutModal input[type="email"] {
        width: 100% !important;
        min-height: 52px !important;
        padding: 13px 15px !important;
        font-size: 16px !important;
        border-radius: 13px !important;
        box-sizing: border-box !important;
    }

    /* Confirm button */
    #apexCheckoutModal #confirmPaymentBtn {
        width: 100% !important;
        min-height: 56px !important;
        padding: 13px 16px !important;
        margin-top: 12px !important;
        border-radius: 14px !important;
        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    /* Reduce spacing between sections */
    #apexCheckoutModal [style*="margin-top"] {
        margin-top: 12px !important;
    }

    #apexCheckoutModal [style*="margin-bottom"] {
        margin-bottom: 10px !important;
    }

}


/* Extra small phones */
@media (max-width: 480px) {

    #apexCheckoutModal {
        padding: 8px !important;
    }

    #apexCheckoutModal > div {
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px auto !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    #apexCheckoutModal h2 {
        font-size: 22px !important;
    }

    #apexCheckoutModal .payment-method-card {
        min-height: 95px !important;
    }

    #apexCheckoutModal .payment-method-icon,
    #apexCheckoutModal .payment-method-icon img {
        width: 44px !important;
        height: 44px !important;
    }

    #apexCheckoutModal .payment-method-name {
        font-size: 15px !important;
    }

    #apexCheckoutModal #goPaymentBtn,
    #apexCheckoutModal #confirmPaymentBtn {
        min-height: 53px !important;
        font-size: 16px !important;
    }
}

/* Mobile package grid: 2 columns */
@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile Support Modal - compact only */
@media (max-width: 768px) {
    #supportModal {
        padding: 12px !important;
        align-items: center !important;
        overflow-y: auto !important;
    }

    #supportModal > div {
        width: calc(100% - 24px) !important;
        max-width: 520px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        padding: 18px !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }

    #supportModal h2 {
        font-size: 26px !important;
        margin: 0 0 12px !important;
    }

    #supportModal p {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    #supportModal label {
        font-size: 15px !important;
        margin-bottom: 5px !important;
    }

    #supportModal input,
    #supportModal select,
    #supportModal textarea {
        font-size: 16px !important;
        padding: 12px 14px !important;
        min-height: 46px !important;
        box-sizing: border-box !important;
    }

    #supportModal textarea {
        min-height: 100px !important;
    }

    #supportModal button[type="submit"],
    #supportModal #supportSubmitBtn {
        min-height: 50px !important;
        font-size: 16px !important;
    }
}

/* Mobile Support Modal - smaller */
@media (max-width: 768px) {
    #supportModal {
        padding: 8px !important;
    }

    #supportModal > div {
        width: calc(100% - 40px) !important;
        max-width: 430px !important;
        max-height: 78vh !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }

    #supportModal h2 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    #supportModal p {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 6px 0 10px !important;
    }

    #supportModal label {
        font-size: 13px !important;
        margin-bottom: 3px !important;
    }

    #supportModal input,
    #supportModal select {
        height: 40px !important;
        min-height: 40px !important;
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    #supportModal textarea {
        min-height: 70px !important;
        height: 70px !important;
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    #supportModal button {
        min-height: 42px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
}

/* Mobile Support Modal - extra compact */
@media (max-width: 768px) {
    #supportModal {
        padding: 6px !important;
    }

    #supportModal > div {
        width: calc(100% - 60px) !important;
        max-width: 400px !important;
        max-height: 72vh !important;
        padding: 10px !important;
        border-radius: 14px !important;
    }

    #supportModal h2 {
        font-size: 20px !important;
        margin: 0 0 6px !important;
    }

    #supportModal p {
        font-size: 11px !important;
        line-height: 1.25 !important;
        margin: 4px 0 7px !important;
    }

    #supportModal label {
        font-size: 12px !important;
        margin-bottom: 2px !important;
    }

    #supportModal input,
    #supportModal select {
        height: 36px !important;
        min-height: 36px !important;
        padding: 6px 9px !important;
        font-size: 13px !important;
    }

    #supportModal textarea {
        height: 60px !important;
        min-height: 60px !important;
        padding: 6px 9px !important;
        font-size: 13px !important;
    }

    #supportModal button {
        min-height: 38px !important;
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    #supportModal a[href*="wa.me"] {
        min-height: 42px !important;
        height: 42px !important;
        padding: 8px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        margin-top: 8px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    #supportModal a[href*="wa.me"] {
        min-height: 34px !important;
        height: 34px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        margin-top: 5px !important;
    }
}

@media (max-width: 768px) {
    #supportModal button[type="submit"],
    #supportModal #supportSubmitBtn {
        height: 42px !important;
        min-height: 42px !important;
        padding: 6px 12px !important;
        font-size: 14px !important;
        border-radius: 9px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 768px) {
    #supportModal button[type="submit"],
    #supportModal button[id*="support" i],
    #supportModal button[id*="submit" i] {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 4px 10px !important;
        margin: 8px 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        border-radius: 9px !important;
    }
}

@media screen and (max-width: 768px) {
    #supportSubmitBtn {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 8px 12px !important;
        margin-top: 12px !important;
        font-size: 15px !important;
        line-height: 1 !important;
        border-radius: 9px !important;
    }
}

@media screen and (max-width: 768px) {
    #supportSubmitBtn {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 4px 10px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
}

@media screen and (max-width: 768px) {
    #supportSubmitBtn {
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        padding: 3px 10px !important;
        margin: 6px 0 !important;
        font-size: 13px !important;
        line-height: 1 !important;
        border-radius: 8px !important;
    }
}

/* =========================================================
   FINAL MOBILE COMPACT - DESKTOP UNTOUCHED
   ========================================================= */
@media (max-width: 650px) {

    /* HEADER */
    .header {
        padding: 8px 10px !important;
        gap: 7px !important;
    }

    .logo {
        font-size: 19px !important;
        line-height: 1 !important;
    }

    .login-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 18px !important;
    }

    /* SEARCH */
    .search-box {
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    .search-box input {
        font-size: 14px !important;
    }

    /* MAIN */
    main {
        padding: 7px !important;
    }

    /* HERO */
    .hero {
        border-radius: 10px !important;
        min-height: 0 !important;
    }

    .hero-content {
        padding: 14px !important;
    }

    .hero-small {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .hero h1 {
        font-size: 23px !important;
        line-height: 1.08 !important;
        margin-bottom: 6px !important;
    }

    .hero-content > p:not(.hero-small) {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .shop-btn {
        margin-top: 8px !important;
        padding: 7px 13px !important;
        font-size: 11px !important;
    }

    .hero-games,
    .hero-games .hero-game,
    .hero-games .hero-game img {
        height: 58px !important;
    }

    /* QUICK CARDS */
    .quick-actions {
        gap: 6px !important;
        margin: 8px 0 !important;
    }

    .quick-card {
        min-height: 68px !important;
        height: 68px !important;
        padding: 7px !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }

    .quick-icon {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    .quick-card h3 {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }

    .quick-card p {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    /* PROMO */
    .promo-banner {
        height: 82px !important;
        min-height: 82px !important;
        padding: 7px !important;
        border-radius: 9px !important;
    }

    .promo-logo {
        font-size: 14px !important;
        width: 55px !important;
    }

    .promo-text strong {
        font-size: 10px !important;
    }

    .promo-text span {
        font-size: 12px !important;
    }

    .promo-art {
        font-size: 24px !important;
    }

    /* SECTION TITLE */
    .section-title {
        margin: 10px 0 6px !important;
    }

    .section-title h2 {
        font-size: 18px !important;
    }

    .section-title span {
        font-size: 10px !important;
    }

    /* GAME CARDS */
    .games-grid {
        gap: 6px !important;
    }

    .game-card {
        border-radius: 8px !important;
    }

    .game-image {
        height: 78px !important;
        min-height: 78px !important;
    }

    .game-info {
        padding: 6px !important;
    }

    .game-info h3 {
        font-size: 11px !important;
        margin-bottom: 3px !important;
    }

    .game-button {
        padding: 6px 4px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
        margin-top: 4px !important;
    }

    /* BENEFITS */
    .benefits {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .benefits div {
        padding: 7px !important;
    }

    .benefits strong {
        font-size: 10px !important;
    }

    .benefits span {
        font-size: 8px !important;
    }
}


/* MOBILE LOGIN POPUP - COMPACT ONLY */
@media (max-width: 650px) {

    .login-box {
        width: 82% !important;
        max-width: 340px !important;
        padding: 20px !important;
        border-radius: 14px !important;
    }

    .login-box h2 {
        font-size: 27px !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
    }

    .login-box > p {
        font-size: 16px !important;
        margin-bottom: 14px !important;
    }

    .close-login {
        top: 8px !important;
        right: 10px !important;
        font-size: 25px !important;
    }

    #loginForm {
        gap: 9px !important;
    }

    #loginForm input {
        padding: 10px 12px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    .login-submit {
        padding: 10px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    .auth-switch {
        margin-top: 12px !important;
        font-size: 13px !important;
    }
}


@media (max-width: 650px) {
    .login-box {
        width: 75% !important;
        max-width: 300px !important;
        padding: 16px !important;
    }

    .login-box h2 {
        font-size: 23px !important;
    }

    .login-box > p {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    #loginForm {
        gap: 7px !important;
    }

    #loginForm input {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }

    .login-submit {
        padding: 9px !important;
        font-size: 14px !important;
    }

    .auth-switch {
        font-size: 12px !important;
    }
}


/* SAFE & SECURE MOBILE COMPACT */
@media (max-width: 768px) {
    #safeSecureModal > div > div {
        width: 100% !important;
        max-width: 340px !important;
        padding: 16px !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
    }

    #safeSecureModal > div > div > div:first-child {
        width: 48px !important;
        height: 48px !important;
        font-size: 24px !important;
        border-radius: 13px !important;
        margin-bottom: 10px !important;
    }

    #safeSecureModal h2 {
        font-size: 20px !important;
        margin-bottom: 7px !important;
    }

    #safeSecureModal p {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    #safeSecureModal > div > div > div:nth-of-type(2) {
        margin-top: 14px !important;
        gap: 8px !important;
    }

    #safeSecureModal > div > div > div:nth-of-type(2) > div {
        padding: 9px 11px !important;
        font-size: 13px !important;
    }

    #safeSecureModal button {
        margin-top: 14px !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
}

/* ================= MOBILE SEARCH SIZE FIX ================= */
@media (max-width: 768px) {
    .search-box {
        width: calc(100% - 32px) !important;
        height: 68px !important;
        min-height: 68px !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .search-box span {
        font-size: 27px !important;
    }

    .search-box input {
        font-size: 18px !important;
        padding: 0 !important;
    }
}

/* MOBILE SEARCH - SMALLER */
@media (max-width: 768px) {
    .search-box {
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 14px !important;
    }

    .search-box span {
        font-size: 23px !important;
    }

    .search-box input {
        font-size: 16px !important;
    }
}

/* MOBILE SEARCH - EXTRA SMALL */
@media (max-width: 768px) {
    .search-box {
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 12px !important;
    }

    .search-box span {
        font-size: 20px !important;
    }

    .search-box input {
        font-size: 15px !important;
    }
}

/* ===== MOBILE PROMO + GAMES HEADER FIX ===== */
@media (max-width: 768px) {

    /* PUBG promo banner */
    .promo-banner {
        height: 115px !important;
        padding: 12px !important;
        border-radius: 13px !important;
    }

    .promo-logo {
        font-size: 20px !important;
        width: 78px !important;
    }

    .promo-logo small {
        font-size: 11px !important;
    }

    .promo-text {
        gap: 0 !important;
    }

    .promo-text strong {
        font-size: 13px !important;
    }

    .promo-text span {
        font-size: 15px !important;
    }

    .promo-text button {
        width: 125px !important;
        min-width: 125px !important;
        height: 42px !important;
        min-height: 42px !important;
        margin-top: 5px !important;
        padding: 5px 10px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }

    .promo-art {
        font-size: 30px !important;
    }

    /* Games Top Up + View All */
    .content-section {
        margin-top: 18px !important;
    }

    .section-title {
        margin-bottom: 12px !important;
    }

    .section-title h2 {
        font-size: 22px !important;
        margin: 0 !important;
    }

    #viewAllGamesBtn {
        font-size: 17px !important;
        padding: 6px 8px !important;
        min-width: 100px !important;
    }
}


/* ===== MOBILE PROMO BANNER - SMALL FIX ===== */
@media (max-width: 768px) {
    .promo-banner {
        height: 100px !important;
        min-height: 100px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }

    .promo-logo {
        font-size: 18px !important;
        width: 72px !important;
        line-height: 1.05 !important;
    }

    .promo-logo small {
        font-size: 11px !important;
    }

    .promo-text {
        gap: 0 !important;
    }

    .promo-text strong {
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .promo-text span {
        font-size: 15px !important;
        line-height: 1.1 !important;
    }

    .promo-text button {
        margin-top: 5px !important;
        width: 105px !important;
        padding: 7px 5px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .promo-art {
        font-size: 28px !important;
        line-height: 1 !important;
    }
}


@media (max-width: 768px) {
    .promo-banner {
        height: 80px !important;
        min-height: 80px !important;
        padding: 7px !important;
        border-radius: 10px !important;
    }

    .promo-logo {
        font-size: 15px !important;
        width: 60px !important;
    }

    .promo-logo small {
        font-size: 9px !important;
    }

    .promo-text strong {
        font-size: 11px !important;
    }

    .promo-text span {
        font-size: 13px !important;
    }

    .promo-text button {
        margin-top: 3px !important;
        width: 90px !important;
        padding: 5px 3px !important;
        font-size: 12px !important;
        border-radius: 7px !important;
    }

    .promo-art {
        font-size: 22px !important;
    }
}

@media(max-width:768px){
.promo-banner{height:65px!important;min-height:65px!important;padding:5px!important}
.promo-logo{font-size:13px!important;width:52px!important}
.promo-logo small{font-size:8px!important}
.promo-text strong{font-size:9px!important}
.promo-text span{font-size:11px!important}
.promo-text button{width:78px!important;padding:4px 2px!important;font-size:10px!important;margin-top:2px!important}
.promo-art{font-size:18px!important}
}
@media(max-width:768px){
.section-title h2{font-size:22px!important}
#viewAllGamesBtn{
font-size:16px!important;
padding:5px 8px!important;
min-width:90px!important;
}
.promo-text button{
width:72px!important;
font-size:9px!important;
padding:3px!important;
}
}

@media (max-width:768px){
    .promo-text button{
        width:72px!important;
        min-width:72px!important;
        max-width:72px!important;
        flex:0 0 72px!important;
        align-self:flex-start!important;
        box-sizing:border-box!important;
        height:30px!important;
        min-height:30px!important;
        padding:2px!important;
        font-size:9px!important;
        line-height:1!important;
    }

    #viewAllGamesBtn{
        width:90px!important;
        min-width:90px!important;
        max-width:90px!important;
        flex:0 0 90px!important;
        padding:3px!important;
        font-size:16px!important;
        line-height:1.1!important;
        white-space:nowrap!important;
    }
}

@media (max-width: 768px) {
  .promo-text button {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 6px 10px !important;
    width: 125px !important;
    flex: 0 0 42px !important;
    align-self: flex-start !important;
  }
}


@media (max-width: 768px) {
  .promo-text button {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 2px 8px !important;
    font-size: 14px !important;
    width: 120px !important;
    flex: 0 0 34px !important;
  }
}


@media (max-width: 768px) {
  .promo-text button {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    width: 105px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    flex: 0 0 30px !important;
    line-height: 30px !important;
  }
}


@media (max-width: 768px) {
  .section-title h2 {
    font-size: 22px !important;
  }

  #viewAllGamesBtn {
    font-size: 16px !important;
    padding: 6px 8px !important;
    min-width: auto !important;
  }
}

@media (max-width:768px){
.section-title h2{font-size:20px!important}
#viewAllGamesBtn{font-size:14px!important;padding:4px 6px!important}
}
@media (max-width:768px){
  .package-card{
    padding:10px !important;
    min-height:125px !important;
  }
  .package-amount,
  .package-price{
    font-size:15px !important;
  }
  .package-card .buy-button{
    min-width:100px !important;
    padding:10px 8px !important;
    font-size:15px !important;
  }
}

@media(max-width:768px){
.package-card{padding:10px!important;min-height:120px!important}
.package-info{font-size:15px!important}
.package-amount{font-size:15px!important}
.package-price{font-size:15px!important}
.package-card .buy-button{min-width:100px!important;padding:10px 14px!important;font-size:15px!important}
}

@media(max-width:768px){
.package-card{padding:8px!important;min-height:105px!important}
.package-amount,.package-price{font-size:14px!important}
.package-card .buy-button{min-width:90px!important;padding:8px 10px!important;font-size:14px!important}
}
@media(max-width:768px){
.package-card{height:105px!important;min-height:0!important;padding:8px!important}
}
@media(max-width:768px){
.package-card{height:90px!important;min-height:90px!important;padding:6px!important;align-self:start!important}
.packages-grid{grid-auto-rows:90px!important}
}
@media(max-width:768px){
.package-card{height:75px!important;min-height:75px!important;padding:5px!important}
.packages-grid{grid-auto-rows:75px!important}
}
@media(max-width:768px){
.package-card{height:65px!important;min-height:65px!important}
.packages-grid{grid-auto-rows:65px!important}
}


/* Mobile package cards - reduce white empty space */
@media (max-width: 768px) {
    .package-card {
        min-height: 0 !important;
        height: 140px !important;
        padding: 12px !important;
    }
}

/* MOBILE PACKAGE CARD - FINAL COMPACT */
@media (max-width: 768px) {
    .package-card {
        height: 145px !important;
        min-height: 145px !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .package-card .package-info {
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .package-card .package-amount {
        font-size: 17px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    .package-card .package-price {
        font-size: 17px !important;
        line-height: 1.15 !important;
        margin: 4px 0 0 !important;
    }

    .package-card .buy-button {
        width: 105px !important;
        min-width: 105px !important;
        height: 46px !important;
        padding: 8px 8px !important;
        font-size: 16px !important;
        line-height: 1 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}


@media (max-width: 768px) {
    .package-card {
        height: auto !important;
        min-height: 150px !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        position: relative !important;
    }

    .package-card .buy-button {
        width: 105px !important;
        min-width: 105px !important;
        height: 46px !important;
        padding: 8px !important;
        font-size: 16px !important;
    }
}


/* FINAL MOBILE PACKAGE CARD FIX */
@media (max-width: 768px) {

    .packages-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        grid-auto-rows: 110px !important;
    }

    .package-card {
        width: 100% !important;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        overflow: hidden !important;
    }

    .package-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .package-amount,
    .package-price {
        font-size: 14px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    .package-price {
        margin-top: 4px !important;
    }

    .package-card .buy-button {
        flex: 0 0 88px !important;
        width: 88px !important;
        min-width: 88px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 5px 6px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        border-radius: 7px !important;
        margin: 0 !important;
    }
}


@media (max-width: 768px) {
    .packages-grid {
        gap: 8px !important;
        grid-auto-rows: 82px !important;
    }

    .package-card {
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
        padding: 7px 9px !important;
        gap: 5px !important;
        border-radius: 12px !important;
    }

    .package-card .package-amount,
    .package-card .package-price {
        font-size: 12px !important;
        line-height: 1.05 !important;
    }

    .package-card .package-price {
        margin-top: 2px !important;
    }

    .package-card .buy-button {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 3px 4px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }
}

/* FINAL COMPACT MOBILE PACKAGE DESIGN */
@media (max-width: 768px) {

    /* Games Top Up section */
    #gamesSection h2,
    .games-section h2 {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin: 8px 0 !important;
    }

    /* Game title */
    #gameTitle,
    .game-title {
        font-size: 32px !important;
        line-height: 1.15 !important;
        margin: 12px 0 !important;
    }

    /* UC Packages heading */
    .packages-section h2,
    #packagesTitle {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin: 10px 0 !important;
    }

    /* Package grid */
    .packages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        grid-auto-rows: 82px !important;
    }

    /* Package card */
    .package-card {
        width: 100% !important;
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
        padding: 8px 9px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    .package-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .package-card .package-amount {
        font-size: 14px !important;
        line-height: 1.05 !important;
        margin: 0 !important;
    }

    .package-card .package-price {
        font-size: 14px !important;
        line-height: 1.05 !important;
        margin: 3px 0 0 !important;
    }

    /* Buy Now */
    .package-card .buy-button {
        flex: 0 0 72px !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 3px 4px !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        border-radius: 6px !important;
    }

}

@media (max-width: 768px) {
    h1 {
        font-size: 42px !important;
    }

    h2 {
        font-size: 32px !important;
    }

    h3 {
        font-size: 24px !important;
    }
}

@media (max-width: 768px) {
    .game-title,
    #gameTitle {
        font-size: 42px !important;
    }
}

@media (max-width: 768px) {
    .package-view > h2 {
        font-size: 34px !important;
        line-height: 1.15 !important;
        margin: 12px 0 !important;
    }

    .packages-title {
        font-size: 28px !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 768px) {
    .package-view > h2 {
        font-size: 26px !important;
        line-height: 1.2 !important;
        margin: 10px 0 !important;
    }

    .packages-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 768px) {
    #apexCheckoutModal > div > div {
        transform: scale(0.88);
        transform-origin: top center;
    }
}

@media (max-width: 768px) {
    #closeCheckout {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        padding: 0 !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 768px) {
    #manualPaymentBox .payment-methods {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    #manualPaymentBox .payment-method-card {
        min-height: 115px !important;
        padding: 8px 4px !important;
        border-radius: 16px !important;
    }

    #manualPaymentBox .payment-method-card img {
        width: 52px !important;
        height: 52px !important;
        object-fit: contain !important;
    }

    #manualPaymentBox .payment-method-card span,
    #manualPaymentBox .payment-method-card div {
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    #manualPaymentBox .payment-method-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    #manualPaymentBox .payment-method-card {
        min-height: 88px !important;
        padding: 6px 3px !important;
        border-radius: 12px !important;
        gap: 4px !important;
    }

    #manualPaymentBox .payment-method-icon,
    #manualPaymentBox .payment-method-icon img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    #manualPaymentBox .payment-method-name {
        font-size: 12px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 768px) {
    #apexCheckoutModal #transactionId {
        font-size: 13px !important;
    }

    #apexCheckoutModal #customerEmail {
        font-size: 13px !important;
    }

    #apexCheckoutModal #confirmPaymentBtn {
        font-size: 14px !important;
    }
}


@media (max-width: 768px) {
    #goPaymentBtn {
        padding: 12px 18px !important;
        min-height: 54px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
    }
}


.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 48px !important;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #555 !important;
    font-size: 18px !important;
    line-height: 32px !important;
    cursor: pointer;
    box-shadow: none !important;
}

.password-toggle:hover {
    background: transparent !important;
}


/* ================= GIFT CARD POPULAR PRODUCTS ================= */

.products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.products-grid .product-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 7px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.products-grid .product-image {
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.products-grid .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.products-grid .product-card h3 {
    font-size: 12px !important;
    line-height: 15px !important;
    margin: 6px 2px 2px !important;
}

.products-grid .product-card p {
    font-size: 10px !important;
    line-height: 13px !important;
    margin: 0 2px 3px !important;
}

.products-grid .product-card strong {
    display: block !important;
    font-size: 12px !important;
    margin: 2px !important;
}

.products-grid .product-card button {
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 4px !important;
    margin-top: 4px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .products-grid .product-card {
        padding: 6px !important;
    }

    .products-grid .product-image {
        height: 65px !important;
        min-height: 65px !important;
    }
}


/* Buy Gift Card scroll target */
#popular-products {
    scroll-margin-top: 20px;
}

/* ===== WALLET MOBILE v2 (phone only, desktop unchanged) ===== */
@media (max-width: 768px) {

    #walletModal {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px !important;
        overflow: hidden !important;
    }

    #walletModal > div {
        width: calc(100% - 60px) !important;
        max-width: 400px !important;
        max-height: 72vh !important;
        margin: 0 !important;
        border-radius: 14px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* ---- header ---- */
    #walletModal > div > div:nth-child(1) {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    #walletModal > div > div:nth-child(1) > div:first-child {
        gap: 8px !important;
        min-width: 0 !important;
    }

    #walletModal > div > div:nth-child(1) > div:first-child > div:first-child {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 10px !important;
        font-size: 17px !important;
    }

    #walletModal > div > div:nth-child(1) > div:first-child > div:nth-child(2) > div:nth-child(1) {
        font-size: 20px !important;
    }

    #walletModal > div > div:nth-child(1) > div:first-child > div:nth-child(2) > div:nth-child(2) {
        font-size: 11px !important;
        margin-top: 1px !important;
    }

    #walletModal > div > div:nth-child(1) > button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 50% !important;
        background: #263452 !important;
        font-size: 17px !important;
    }

    /* ---- balance card ---- */
    #walletModal > div > div:nth-child(2) {
        margin: 10px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }

    #walletModal > div > div:nth-child(2) > div:nth-child(2) {
        font-size: 11px !important;
    }

    #walletModal > div > div:nth-child(2) > div:nth-child(3) {
        font-size: clamp(20px, 6.5vw, 24px) !important;
        margin-top: 3px !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere !important;
    }

    #walletModal > div > div:nth-child(2) > div:nth-child(4) {
        font-size: 11px !important;
        margin-top: 6px !important;
    }

    /* ---- add money section ---- */
    #walletModal > div > div:nth-child(3) {
        padding: 0 10px 10px !important;
    }

    #walletModal > div > div:nth-child(3) > div:nth-child(1) {
        margin-bottom: 6px !important;
    }

    #walletModal > div > div:nth-child(3) > div:nth-child(1) > span {
        width: 22px !important;
        height: 22px !important;
        border-radius: 7px !important;
    }

    #walletModal > div > div:nth-child(3) > div:nth-child(1) > div {
        font-size: 14px !important;
    }

    #walletModal > div > div:nth-child(3) > div:nth-child(2) {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    /* ---- payment methods: 2 per row ---- */
    #walletPaymentAccounts {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    #walletPaymentAccounts .wallet-payment-card {
        margin: 0 !important;
        padding: 7px 8px !important;
        gap: 6px !important;
        border-radius: 10px !important;
        min-width: 0 !important;
    }

    #walletPaymentAccounts .wallet-payment-card > div:nth-child(1) {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 8px !important;
    }

    #walletPaymentAccounts .wallet-payment-card > div:nth-child(1) img {
        width: 24px !important;
        height: 24px !important;
    }

    #walletPaymentAccounts .wallet-payment-card > div:nth-child(2) {
        min-width: 0 !important;
    }

    #walletPaymentAccounts .wallet-payment-card > div:nth-child(2) > div:nth-child(1) {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }

    #walletPaymentAccounts .wallet-payment-card > div:nth-child(2) > div:nth-child(2) {
        font-size: 10.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #walletPaymentAccounts .wallet-payment-card > div:nth-child(3) {
        display: none !important;
    }

    /* ---- send money box ---- */
    #walletSelectedAccount {
        margin-top: 8px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }

    #walletAccountNumber {
        font-size: 16px !important;
    }

    #walletCopyBtn {
        padding: 6px 9px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    /* ---- form (Support-এর মতো মাপ) ---- */
    #walletModal label {
        margin-top: 8px !important;
        margin-bottom: 3px !important;
        font-size: 12px !important;
    }

    #walletAmount,
    #walletTransactionId {
        height: 36px !important;
        border-radius: 10px !important;
        font-size: 13px !important;
    }

    #walletModal button[onclick="submitWalletDeposit()"] {
        height: 40px !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    #walletModal > div > div:nth-child(3) > div:last-child {
        margin-top: 8px !important;
        padding: 7px !important;
        font-size: 10.5px !important;
    }
}
/* ===== END WALLET MOBILE ===== */


/* ===== Show More / Show Less packages button ===== */
.show-more-packages-btn {
    display: block;
    margin: 14px auto 0;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #0066ff;
    background: #fff;
    border: 1.5px solid #0066ff;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.show-more-packages-btn:hover,
.show-more-packages-btn:active {
    background: #0066ff;
    color: #fff;
}

/* ===== MOBILE ONLY: smaller package cards (desktop unchanged) ===== */
@media (max-width: 768px) {
    .packages-grid {
        gap: 6px !important;
        grid-auto-rows: 66px !important;
    }

    .package-card {
        height: 66px !important;
        min-height: 66px !important;
        max-height: 66px !important;
        padding: 6px 8px !important;
        gap: 4px !important;
        border-radius: 10px !important;
    }

    .package-card .package-amount,
    .package-card .package-price {
        font-size: 12px !important;
        line-height: 1.05 !important;
    }

    .package-card .package-price {
        margin: 2px 0 0 !important;
    }

    .package-card .buy-button {
        flex: 0 0 60px !important;
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 2px 3px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }
}
/* ===== END MOBILE PACKAGE CARDS ===== */

/* ===== MOBILE ONLY: smaller headings and footer text (desktop unchanged) ===== */
@media (max-width: 768px) {
    /* "PUBG Mobile" game name */
    .package-view > h2 {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    /* "UC Packages" heading */
    .packages-title {
        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    /* Footer: ApexGamer / Fast . Safe . Reliable / Copyright */
    .footer strong {
        font-size: 16px !important;
    }

    .footer p {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }
}
/* ===== END MOBILE HEADINGS AND FOOTER ===== */

/* ===== MOBILE ONLY: smaller Show More and Popular Products (desktop unchanged) ===== */
@media (max-width: 768px) {
    /* Show More / Show Less button */
    .show-more-packages-btn {
        font-size: 12px !important;
        padding: 6px 18px !important;
    }

    /* "Popular Products" heading and its "View All" link */
    #popular-products .section-title h2 {
        font-size: 16px !important;
    }

    #popular-products .section-title a {
        font-size: 13px !important;
    }
}
/* ===== END MOBILE SHOW MORE AND POPULAR ===== */

/* ===== MOBILE ONLY: smaller Games Top Up and Back to Games (desktop unchanged) ===== */
@media (max-width: 768px) {
    /* "Games Top Up" heading (Popular Products is not touched here) */
    .content-section:not(#popular-products) .section-title h2 {
        font-size: 16px !important;
    }

    /* "View All" next to Games Top Up */
    #viewAllGamesBtn {
        font-size: 13px !important;
    }

    /* "Back to Games" button */
    .back-games-btn {
        padding: 7px 12px !important;
        font-size: 11px !important;
        gap: 6px !important;
    }
}
/* ===== END MOBILE GAMES TOP UP AND BACK ===== */

/* ===== MOBILE ONLY: smaller checkout box (desktop unchanged) ===== */
@media (max-width: 768px) {
    #apexCheckoutModal > div > div {
        transform: scale(0.8);
        transform-origin: top center;
    }
}
/* ===== END MOBILE CHECKOUT BOX ===== */

/* ===== MOBILE ONLY: smaller payment popups (desktop unchanged) ===== */
@media (max-width: 768px) {

    /* ---- Payment Submitted (success) ---- */
    #paymentSuccessModal .success-box {
        width: 100% !important;
        max-width: 280px !important;
        padding: 16px 14px !important;
        border-radius: 18px !important;
    }

    #paymentSuccessModal .success-icon {
        width: 52px !important;
        height: 52px !important;
        margin: 0 auto 12px !important;
        font-size: 28px !important;
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12) !important;
    }

    #paymentSuccessModal .success-box h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    #paymentSuccessModal .success-subtitle {
        margin: 8px 0 14px !important;
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    #paymentSuccessModal .success-details {
        padding: 4px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }

    #paymentSuccessModal .success-row {
        padding: 8px 0 !important;
        gap: 10px !important;
    }

    #paymentSuccessModal .success-row span {
        font-size: 12px !important;
    }

    #paymentSuccessModal .success-row strong {
        font-size: 13px !important;
    }

    #paymentSuccessModal .success-close {
        min-height: 40px !important;
        padding: 9px 16px !important;
        font-size: 14px !important;
        border-radius: 11px !important;
    }

    /* ---- Payment Failed (error) ---- */
    #paymentErrorModal .error-box {
        width: 100% !important;
        max-width: 280px !important;
        padding: 16px 14px !important;
        border-radius: 18px !important;
    }

    #paymentErrorModal .error-icon {
        width: 52px !important;
        height: 52px !important;
        margin: 0 auto 12px !important;
        font-size: 28px !important;
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.12) !important;
    }

    #paymentErrorModal .error-box h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    #paymentErrorModal .error-subtitle {
        margin: 8px 0 12px !important;
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    #paymentErrorModal .error-help {
        padding: 10px !important;
        margin-bottom: 14px !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
        border-radius: 12px !important;
    }

    #paymentErrorModal .error-close {
        min-height: 40px !important;
        padding: 9px 16px !important;
        font-size: 14px !important;
        border-radius: 11px !important;
    }
}
/* ===== END MOBILE PAYMENT POPUPS ===== */

/* ===== MOBILE ONLY: smaller game cards (desktop unchanged) ===== */
@media (max-width: 650px) {
    .game-card .game-image {
        height: 60px !important;
        min-height: 60px !important;
    }

    .game-card .game-info {
        padding: 5px 6px !important;
    }

    .game-card .game-info h3 {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }

    .game-card .game-info .badge {
        padding: 3px 6px !important;
    }

    .game-card .game-button {
        padding: 5px 4px !important;
        font-size: 10px !important;
        margin-top: 3px !important;
    }
}
/* ===== END MOBILE GAME CARDS ===== */

/* ===== MOBILE ONLY: smaller search bar (desktop unchanged) ===== */
@media (max-width: 768px) {
    .search-box {
        height: 40px !important;
        min-height: 40px !important;
    }

    .search-box span {
        font-size: 18px !important;
    }

    .search-box input {
        font-size: 14px !important;
    }
}
/* ===== END MOBILE SEARCH BAR ===== */

/* ===== WALLET MOBILE v3: extra smaller (phone only, desktop unchanged) ===== */
@media (max-width: 768px) {
    #walletModal > div { width: calc(100% - 80px) !important; max-width: 360px !important; max-height: 68vh !important; border-radius: 13px !important; }
    #walletModal > div > div:nth-child(1) { padding: 8px 10px !important; gap: 6px !important; }
    #walletModal > div > div:nth-child(1) > div:first-child > div:first-child { width: 28px !important; height: 28px !important; min-width: 28px !important; border-radius: 9px !important; font-size: 15px !important; }
    #walletModal > div > div:nth-child(1) > div:first-child > div:nth-child(2) > div:nth-child(1) { font-size: 17px !important; }
    #walletModal > div > div:nth-child(1) > div:first-child > div:nth-child(2) > div:nth-child(2) { font-size: 10px !important; }
    #walletModal > div > div:nth-child(1) > button { width: 30px !important; height: 30px !important; min-width: 30px !important; font-size: 15px !important; }
    #walletModal > div > div:nth-child(2) { margin: 8px !important; padding: 8px 10px !important; border-radius: 11px !important; }
    #walletModal > div > div:nth-child(2) > div:nth-child(2) { font-size: 10px !important; }
    #walletModal > div > div:nth-child(2) > div:nth-child(3) { font-size: clamp(17px, 5.6vw, 21px) !important; }
    #walletModal > div > div:nth-child(2) > div:nth-child(4) { font-size: 10px !important; margin-top: 4px !important; }
    #walletModal > div > div:nth-child(3) { padding: 0 8px 8px !important; }
    #walletModal > div > div:nth-child(3) > div:nth-child(1) > span { width: 20px !important; height: 20px !important; }
    #walletModal > div > div:nth-child(3) > div:nth-child(1) > div { font-size: 12px !important; }
    #walletModal > div > div:nth-child(3) > div:nth-child(2) { font-size: 10px !important; margin-bottom: 6px !important; }
    #walletPaymentAccounts { gap: 5px !important; }
    #walletPaymentAccounts .wallet-payment-card { padding: 6px 7px !important; gap: 5px !important; border-radius: 9px !important; }
    #walletPaymentAccounts .wallet-payment-card > div:nth-child(1) { width: 26px !important; height: 26px !important; min-width: 26px !important; border-radius: 7px !important; }
    #walletPaymentAccounts .wallet-payment-card > div:nth-child(1) img { width: 20px !important; height: 20px !important; }
    #walletPaymentAccounts .wallet-payment-card > div:nth-child(2) > div:nth-child(1) { font-size: 11.5px !important; }
    #walletPaymentAccounts .wallet-payment-card > div:nth-child(2) > div:nth-child(2) { font-size: 9.5px !important; }
    #walletSelectedAccount { margin-top: 6px !important; padding: 8px !important; border-radius: 10px !important; }
    #walletSelectedAccount > div:first-child { font-size: 10px !important; }
    #walletSelectedAccount > div:last-child { font-size: 10px !important; }
    #walletAccountNumber { font-size: 14px !important; }
    #walletCopyBtn { padding: 5px 8px !important; font-size: 10.5px !important; }
    #walletModal label { margin-top: 6px !important; font-size: 11px !important; }
    #walletAmount, #walletTransactionId { height: 32px !important; font-size: 12px !important; border-radius: 9px !important; }
    #walletModal button[onclick="submitWalletDeposit()"] { height: 36px !important; margin-top: 8px !important; font-size: 12px !important; }
    #walletModal > div > div:nth-child(3) > div:last-child { margin-top: 6px !important; padding: 6px !important; font-size: 9.5px !important; }
}
/* ===== END WALLET MOBILE v3 ===== */


/* ===== MOBILE ONLY: smaller search suggestions (desktop unchanged) ===== */
@media (max-width: 768px) {
    #gameSearchSuggestions {
        max-height: 215px;
        border-radius: 10px;
    }

    #gameSearchSuggestions .search-suggestion {
        padding: 6px 10px;
        gap: 8px;
    }

    #gameSearchSuggestions .search-suggestion img {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    #gameSearchSuggestions .search-suggestion span {
        font-size: 13px !important;
    }

    #gameSearchSuggestions .search-no-result {
        padding: 10px;
        font-size: 12px;
    }
}
/* ===== END MOBILE SEARCH SUGGESTIONS ===== */


/* ===== DESKTOP ONLY: bigger profile icon (mobile unchanged) ===== */
@media (min-width: 769px) {
    .header-actions .profile-button {
        font-size: 32px;
    }
}
/* ===== END DESKTOP PROFILE ICON ===== */


/* ===== MOBILE ONLY: 3-column game grid (desktop unchanged) ===== */
@media (max-width: 768px) {
    #gamesContainer.games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    #gamesContainer .game-card {
        border-radius: 10px !important;
        display: flex;
        flex-direction: column;
    }

    #gamesContainer .game-card:hover {
        transform: none;
        box-shadow: none;
    }

    #gamesContainer .game-image {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1;
    }

    #gamesContainer .game-info {
        padding: 6px !important;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    #gamesContainer .game-info h3 {
        font-size: 11.5px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
        min-height: 2.5em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #gamesContainer .game-info .badge {
        align-self: flex-start;
        font-size: 9px !important;
        padding: 2px 6px !important;
    }

    #gamesContainer .game-button {
        margin-top: auto !important;
        padding: 6px 4px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }

    #gamesContainer .game-info .badge + .game-button {
        margin-top: 6px !important;
    }
}
/* ===== END MOBILE 3-COLUMN GAME GRID ===== */


/* ===== MOBILE ONLY: hero game cards like desktop (desktop unchanged) ===== */
@media (max-width: 768px) {
    .hero .hero-games {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        gap: 8px !important;
        padding: 0 16px 16px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .hero .hero-games .hero-game {
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;
        height: auto !important;
        aspect-ratio: 3 / 4.4;
        padding: 6px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hero .hero-games .hero-game img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block;
    }
}
/* ===== END MOBILE HERO GAME CARDS ===== */


/* ===== DESKTOP ONLY: 4-column game grid (mobile unchanged) ===== */
@media (min-width: 769px) {
    #gamesContainer.games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}
/* ===== END DESKTOP 4-COLUMN GAME GRID ===== */


/* ===== Total games count, small text just left of "View All" ===== */
#viewAllGamesBtn {
    position: relative;
}

#totalGamesCount {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    pointer-events: none;
}
/* ===== END TOTAL GAMES COUNT ===== */

/* ===== LOGGED-IN: Login button -> profile icon ===== */
body.logged-in .login-btn,
body.logged-in .nav-login {
    display: none !important;
}

body.logged-in .header-actions .profile-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: #eef3ff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
/* ===== END LOGGED-IN PROFILE ICON ===== */

/* ===== HIDE profile icon when logged out ===== */
body:not(.logged-in) .header-actions .profile-button {
    display: none !important;
}
/* ===== END HIDE PROFILE ICON ===== */

/* ===== MOBILE: remove Profile from bottom nav ===== */
.mobile-nav a[onclick*="openProfile"] {
    display: none !important;
}
/* ===== END MOBILE BOTTOM PROFILE REMOVE ===== */

/* ===== DESKTOP ONLY: bigger search & profile icons ===== */
@media (min-width: 769px) {
    .header-actions .icon-button + .icon-button {
        font-size: 28px;
    }

    body.logged-in .header-actions .profile-button {
        width: 42px;
        height: 42px;
        font-size: 23px;
    }
}
/* ===== END DESKTOP ICON SIZE ===== */

/* ===== PASSWORD TOGGLE: line eye icons ===== */
.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
    pointer-events: none;
}
/* ===== END PASSWORD TOGGLE ICONS ===== */

/* ===== FORGOT PASSWORD ===== */
.forgot-link {
    align-self: center;
    font-size: 14px;
    font-weight: 600;
    color: #1468ff;
    text-decoration: none;
    cursor: pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}

#forgotForm {
    flex-direction: column;
    gap: 13px;
}

#forgotForm input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    outline: none;
    box-sizing: border-box;
}

#forgotForm input:focus {
    border-color: #1468ff;
}

.login-box.forgot-mode #loginForm,
.login-box.forgot-mode #signupForm,
.login-box.forgot-mode .auth-switch {
    display: none !important;
}

@media (max-width: 650px) {
    #forgotForm {
        gap: 7px !important;
    }

    #forgotForm input {
        padding: 8px 10px !important;
        font-size: 14px !important;
    }
}
/* ===== END FORGOT PASSWORD ===== */

/* ===== PROFILE ICON: orange avatar ===== */
.header-actions .profile-button {
    background: transparent !important;
    padding: 0 !important;
}
.header-actions .profile-button .profile-avatar-svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* ===== END PROFILE ICON: orange avatar ===== */

/* ===== DESKTOP: hide the two header icons ===== */
@media (min-width: 769px) {
    .header-actions .icon-button {
        display: none !important;
    }
}
/* ===== END DESKTOP: hide the two header icons ===== */

/* ===== MOBILE NAV ICONS ===== */
@media (max-width: 768px) {
    .mobile-nav {
        height: 54px;
    }
    .mobile-nav a {
        gap: 2px;
    }
    .mobile-nav a span {
        font-size: 10px;
    }
    .mobile-nav a .nav-ico {
        width: 21px;
        height: 21px;
        display: block;
    }
}
/* ===== END MOBILE NAV ICONS ===== */

/* ===== MOBILE NAV ON DESKTOP ===== */
@media (min-width: 769px) {
    .mobile-nav {
        position: fixed;
        display: flex;
        left: 0;
        right: 0;
        bottom: 0;
        height: 68px;
        z-index: 100;
        background: white;
        border-top: 1px solid #e5e7eb;
        justify-content: space-around;
        align-items: center;
    }
    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: #64748b;
        font-size: 13px;
        cursor: pointer;
    }
    .mobile-nav a:first-child,
    .mobile-nav a.active {
        color: #1468ff;
    }
    .mobile-nav a span {
        font-size: 13px;
    }
    .mobile-nav a .nav-ico {
        width: 28px;
        height: 28px;
        display: block;
    }
    .footer {
        padding-bottom: 100px;
    }
}
/* ===== END MOBILE NAV ON DESKTOP ===== */


/* SAFE & SECURE - round X close button */
#safeSecureModal #safeSecureClose {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #2a3b5e !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
}
