/* =========================
   PANLIA STORE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090b12;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================
   HEADER
========================= */

.header {
    height: 75px;
    width: 100%;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #10141e;
    border-bottom: 1px solid #242b3a;
}

.logo {
    height: 55px;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 48px;
    max-width: 190px;
    object-fit: contain;
}

.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.navbar a:hover {
    color: #ff4b2b;
}


/* =========================
   HERO / BANNER
========================= */

.hero {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 7, 12, 0.85) 0%,
            rgba(5, 7, 12, 0.45) 45%,
            rgba(5, 7, 12, 0.05) 100%
        );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 500px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 15px;
}

.hero-content h1 span {
    display: block;
    color: #ff4b2b;
}

.hero-content p {
    color: #d0d4dc;
    font-size: 16px;
    margin-bottom: 25px;
}

#topup-btn {
    background: linear-gradient(135deg, #ff5b3d, #e62828);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 75, 43, 0.25);
    transition: 0.3s;
}

#topup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 75, 43, 0.4);
}


/* =========================
   GAMES
========================= */

.games {
    padding: 70px 10%;
    background: linear-gradient(
        180deg,
        #0c1019,
        #090b12
    );
}

.section-title {
    margin-bottom: 30px;
}

.section-title p {
    color: #ff5b3d;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 800;
}


/* =========================
   GAME GRID
========================= */

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* =========================
   GAME CARD
========================= */

.game-card {
    background: #111722;
    border: 1px solid #252d3c;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.game-card:hover {
    transform: translateY(-7px);
    border-color: #ff4b2b;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 100%;
    height: 170px;
    display: block;
    object-fit: cover;
    transition: 0.4s;
}

.game-card:hover img {
    transform: scale(1.06);
}

.game-info {
    padding: 17px;
}

.game-info h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 6px;
}

.game-info p {
    color: #929bad;
    font-size: 12px;
}


/* =========================
   FOOTER
========================= */

.footer {
    text-align: center;
    padding: 45px 20px;
    background: #06080d;
    border-top: 1px solid #1b2230;
}

.footer-logo {
    width: 150px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer > p {
    color: #a5adbb;
    font-size: 12px;
    letter-spacing: 1px;
}

.copyright {
    margin-top: 25px;
    color: #596171 !important;
    font-size: 11px !important;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-card img {
        height: 150px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .header {
        height: 65px;
        padding: 0 5%;
    }

    .logo img {
        max-width: 120px;
        max-height: 40px;
    }

    .navbar {
        gap: 12px;
    }

    .navbar a {
        font-size: 10px;
    }


    .hero {
        height: 360px;
    }

    .hero-content {
        left: 7%;
        right: 7%;
        max-width: none;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content p {
        font-size: 14px;
    }


    .games {
        padding: 45px 5%;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-card img {
        height: 135px;
    }

    .game-info {
        padding: 12px;
    }

    .game-info h3 {
        font-size: 13px;
    }

    .game-info p {
        font-size: 10px;
    }

}


/* =========================
   SMALL PHONE
========================= */

@media (max-width: 400px) {

    .navbar a:nth-child(3) {
        display: none;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .game-card img {
        height: 115px;
    }

}

/* =========================
   ML MY TOPUP PAGE
========================= */

/* HEADER BACK BUTTON */

.back-home {
    color: white;
    text-decoration: none;
    border: 1px solid #30394a;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.back-home:hover {
    border-color: #ff4b2b;
    color: #ff4b2b;
}


/* GAME BANNER */

.topup-game-header {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.topup-game-header > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topup-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 18, 0.9),
        rgba(8, 10, 18, 0.45),
        rgba(8, 10, 18, 0.1)
    );
}

.topup-game-title {
    position: absolute;
    left: 10%;
    bottom: 45px;
}

.topup-game-title p {
    color: #ff4b2b;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.topup-game-title h1 {
    font-size: 38px;
    margin-bottom: 8px;
}

.topup-game-title span {
    color: #aeb6c5;
}


/* MAIN TOPUP */

.topup-page {
    width: 90%;
    max-width: 1000px;
    margin: 45px auto 80px;
}


/* TOPUP SECTION */

.topup-section {
    background: #111722;
    border: 1px solid #252d3c;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 25px;
}


/* STEP HEADING */

.step-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #ff5b3d,
        #e62828
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-heading h2 {
    font-size: 19px;
    margin-bottom: 5px;
}

.step-heading p {
    color: #929bad;
    font-size: 13px;
}


/* PLAYER ID INPUT */

.id-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-box label {
    display: block;
    margin-bottom: 8px;
    color: #c2c8d3;
    font-size: 12px;
    font-weight: bold;
}

.input-box input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #2d3747;
    background: #090d15;
    color: white;
    outline: none;
    font-size: 14px;
}

.input-box input:focus {
    border-color: #ff4b2b;
}


/* PRODUCT GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: #0b0f17;
    color: white;
    border: 1px solid #293445;
    border-radius: 10px;
    padding: 22px 15px;
    cursor: pointer;
    text-align: center;
    transition: 0.25s;
}

.product-card:hover {
    border-color: #ff4b2b;
    transform: translateY(-3px);
}

.product-card.active {
    border: 2px solid #ff4b2b;
    background: #1a1518;
}

.product-card strong {
    display: block;
    font-size: 26px;
}

.product-card span {
    display: block;
    color: #9ca5b5;
    font-size: 11px;
    margin: 6px 0;
}

.product-card b {
    color: #ff5b3d;
    font-size: 14px;
}


/* PAYMENT */

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-card {
    background: #0b0f17;
    color: white;
    border: 1px solid #293445;
    border-radius: 10px;
    padding: 22px 15px;
    cursor: pointer;
    transition: 0.25s;
}

.payment-card:hover {
    border-color: #ff4b2b;
}

.payment-card.active {
    border: 2px solid #ff4b2b;
    background: #1a1518;
}

.payment-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
}

.payment-card span {
    color: #9ca5b5;
    font-size: 11px;
}


/* ORDER SUMMARY */

.order-box {
    background: #111722;
    border: 1px solid #252d3c;
    border-radius: 14px;
    padding: 28px;
}

.order-box h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #252d3c;
}

.order-row span {
    color: #929bad;
    font-size: 13px;
}

.order-row strong {
    text-align: right;
    font-size: 13px;
}


/* TOTAL */

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
}

.total-row span {
    font-size: 16px;
    font-weight: bold;
}

.total-row strong {
    color: #ff5b3d;
    font-size: 26px;
}


/* CONTINUE BUTTON */

#continue-btn {
    width: 100%;
    margin-top: 25px;
    padding: 17px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(
        135deg,
        #ff5b3d,
        #e62828
    );
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#continue-btn:hover {
    transform: translateY(-2px);
}


/* TOPUP MOBILE */

@media (max-width: 700px) {

    .topup-game-header {
        height: 240px;
    }

    .topup-game-title {
        left: 7%;
        bottom: 30px;
    }

    .topup-game-title h1 {
        font-size: 27px;
    }

    .topup-section,
    .order-box {
        padding: 20px;
    }

    .id-form {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================
   CHECKOUT PAGE
========================= */

.checkout-page {
    width: 90%;
    max-width: 850px;
    margin: 60px auto 90px;
}

.checkout-title {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-title p {
    color: #ff5b3d;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.checkout-title h1 {
    font-size: 35px;
}

.checkout-box,
.payment-box {
    background: #111722;
    border: 1px solid #252d3c;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
}

.checkout-box h2,
.payment-box h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #252d3c;
}

.checkout-row span {
    color: #929bad;
    font-size: 13px;
}

.checkout-row strong {
    font-size: 13px;
    text-align: right;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
}

.checkout-total span {
    font-weight: bold;
}

.checkout-total strong {
    color: #ff5b3d;
    font-size: 28px;
}

.payment-note {
    color: #929bad;
    font-size: 13px;
    margin-bottom: 18px;
}

.payment-instruction {
    background: #0b0f17;
    border: 1px dashed #303b4f;
    border-radius: 10px;
    padding: 20px;
    color: #c2c8d3;
    font-size: 13px;
    line-height: 1.7;
}

#confirm-payment-btn {
    width: 100%;
    margin-top: 20px;
    padding: 17px;
    border: none;
    border-radius: 9px;
    background: linear-gradient(135deg, #ff5b3d, #e62828);
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 700px) {

    .checkout-page {
        width: 92%;
        margin-top: 40px;
    }

    .checkout-title h1 {
        font-size: 28px;
    }

    .checkout-box,
    .payment-box {
        padding: 20px;
    }

    .checkout-row {
        flex-direction: column;
        gap: 6px;
    }

    .checkout-row strong {
        text-align: left;
    }
}

/* QR PAYMENT PLACEHOLDER */

.qr-placeholder {
    width: 220px;
    height: 220px;
    margin: 10px auto;
    border: 2px dashed #ff5b3d;
    border-radius: 12px;
    background: #111722;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.qr-placeholder span {
    color: #ff5b3d;
    font-size: 20px;
    font-weight: bold;
}

.qr-placeholder p {
    margin-top: 10px;
    color: #929bad;
    font-size: 12px;
}

/* ============================= */
/* PAYMENT PAGE */
/* ============================= */

.payment-page {
    min-height: 100vh;
    background: #0f1117;
}

.payment-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 80px;
}


/* ============================= */
/* PAYMENT TITLE */
/* ============================= */

.payment-title {
    text-align: center;
    margin-bottom: 30px;
}

.payment-title p {
    color: #ff5a36;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.payment-title h1 {
    color: white;
    font-size: 32px;
    margin: 0;
}


/* ============================= */
/* PAYMENT SUMMARY */
/* ============================= */

.payment-summary {
    background: #191d27;
    border: 1px solid #2a3040;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.payment-summary h2 {
    color: white;
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a3040;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #2a3040;
}

.payment-row span {
    color: #9299a8;
    font-size: 14px;
}

.payment-row strong {
    color: white;
    text-align: right;
    font-size: 14px;
    word-break: break-word;
}


/* ============================= */
/* TOTAL */
/* ============================= */

.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: #11151d;
    border: 1px solid #ff4d2d;
    border-radius: 10px;
}

.payment-total span {
    color: #9299a8;
    font-size: 13px;
}

.payment-total strong {
    color: #ff5a36;
    font-size: 25px;
}


/* ============================= */
/* QR PAYMENT */
/* ============================= */

.qr-section {
    background: #191d27;
    border: 1px solid #2a3040;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.qr-section h2 {
    color: white;
    font-size: 18px;
    margin: 0 0 20px;
}

.qr-box {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #11151d;
    border: 2px dashed #3b4352;
    border-radius: 10px;
    padding: 20px;
}

.qr-box img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
}

#qr-placeholder {
    color: #9299a8;
    font-size: 14px;
}


/* ============================= */
/* PAYMENT NOTICE */
/* ============================= */

.payment-notice {
    background: #221b18;
    border-left: 4px solid #ff5a36;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.payment-notice h3 {
    color: #ff7a5c;
    font-size: 15px;
    margin: 0 0 10px;
}

.payment-notice p {
    color: #b7b9c0;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}


/* ============================= */
/* PAID BUTTON */
/* ============================= */

#paid-btn {
    width: 100%;
    padding: 18px;

    background: #ff4d2d;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

#paid-btn:hover {
    background: #ff6b4a;
    transform: translateY(-2px);
}

#paid-btn:active {
    transform: scale(0.98);
}


/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 600px) {

    .payment-container {
        width: 92%;
        padding: 25px 0 60px;
    }

    .payment-title h1 {
        font-size: 26px;
    }

    .payment-summary,
    .qr-section {
        padding: 18px;
    }

    .payment-row {
        flex-direction: column;
        gap: 5px;
    }

    .payment-row strong {
        text-align: left;
    }

    .payment-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}

