
/* OMTOPUP TOPUP PAGE V1 */
/* Scoped to /topup only */

.omt-topup-hero {
    padding: 30px 0 24px !important;
    background: #071426 !important;
    border-bottom: 1px solid rgba(0,190,255,.18);
}

.omt-topup-hero .section-kicker {
    color: #00e5ff !important;
}

.omt-topup-hero h1 {
    margin: 8px 0 !important;
    font-size: clamp(25px, 3vw, 36px) !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

.omt-topup-hero p {
    color: #aabbd0 !important;
}

.omt-topup-list {
    padding: 24px 0 50px !important;
    background: #071426 !important;
}

.omt-topup-list .game-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0,1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.omt-topup-list .game-grid > a.game-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    text-decoration: none !important;
    background: #071365 !important;
    border: 1px solid rgba(0,190,255,.36) !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

.omt-topup-list .game-grid > a.game-card > .game-cover {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #081b35 !important;
}

.omt-topup-list .game-grid > a.game-card > .game-cover > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.omt-topup-list .game-grid > a.game-card > .game-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    width: 100% !important;
    min-height: 65px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #071365 !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.omt-topup-list .game-grid > a.game-card > .game-body > strong {
    display: block !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

.omt-topup-list .game-grid > a.game-card > .game-body > span {
    display: block !important;
    color: #ffe500 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

.omt-topup-list .game-grid > a.game-card:hover {
    border-color: #00e5ff !important;
    box-shadow: 0 8px 24px rgba(0,191,255,.18) !important;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .omt-topup-list .game-grid {
        grid-template-columns: repeat(4, minmax(0,1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 767px) {
    .omt-topup-hero {
        padding: 22px 0 18px !important;
    }

    .omt-topup-hero h1 {
        font-size: 26px !important;
    }

    .omt-topup-list {
        padding: 16px 0 36px !important;
    }

    .omt-topup-list .game-grid {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
        gap: 10px !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-cover {
        aspect-ratio: 3 / 4 !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-body {
        min-height: 62px !important;
        padding: 7px 6px 8px !important;
        gap: 3px !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-body > strong {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        min-height: 30px !important;
        font-size: 11px !important;
        line-height: 15px !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-body > span {
        font-size: 9px !important;
        line-height: 13px !important;
    }
}

@media (max-width: 360px) {
    .omt-topup-list .game-grid {
        gap: 7px !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-body {
        padding: 7px 5px 8px !important;
    }
}


/* =====================================================
   OMT-TOPUP-MOBILE-ALIGN-V2
   Perataan hero dan grid hanya pada halaman /topup
   Tidak memengaruhi desktop atau homepage
   ===================================================== */

@media screen and (max-width: 767px) {

    .omt-topup-hero,
    .omt-topup-list {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .omt-topup-hero > .container,
    .omt-topup-list > .container {
        display: block !important;
        width: calc(100% - 24px) !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    .omt-topup-hero .section-kicker,
    .omt-topup-hero h1,
    .omt-topup-hero p {
        text-align: left !important;
    }

    .omt-topup-hero h1 {
        margin: 8px 0 !important;
        line-height: 1.2 !important;
    }

    .omt-topup-list {
        padding-top: 16px !important;
    }

    .omt-topup-list .game-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    .omt-topup-list .game-grid > a.game-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-cover {
        width: 100% !important;
        aspect-ratio: 3 / 4 !important;
    }

    .omt-topup-list .game-grid > a.game-card > .game-body {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 62px !important;
        padding: 7px 6px 8px !important;
    }
}

@media screen and (max-width: 360px) {
    .omt-topup-hero > .container,
    .omt-topup-list > .container {
        width: calc(100% - 20px) !important;
    }

    .omt-topup-list .game-grid {
        gap: 7px !important;
    }
}

/* OMT-TOPUP-MOBILE-ALIGN-V2-END */


/* ==========================================
   OMT-FRONTEND-ALIGNMENT-V1
   Konsistensi desktop dengan homepage
   Mobile tetap menggunakan pengaturan lama
   ========================================== */

@media screen and (min-width: 1101px) {

    .omt-topup-hero > .container,
    .omt-topup-list > .container {
        box-sizing: border-box !important;
        width: min(100% - 48px, 1180px) !important;
        max-width: 1180px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

}

/* END OMT-FRONTEND-ALIGNMENT-V1 */
