@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Edu+SA+Hand:wght@400..700&family=Playwrite+AU+SA:wght@100..400&family=Poetsen+One&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Sekuya&display=swap');

body {
    margin: 0 auto;
    max-width: 425px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Archivo', sans-serif;
}

.text-title-light {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
}

.fill {
    font-variation-settings: "FILL" 1;
}

.custom-navbar {
    background: linear-gradient(#ca1920, #dc3545);
}

.landing-custom-navbar {
    /* background: linear-gradient(#ca1920, #dc3545); */
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-toggler-icon {
    background-image: url('../images/Menu.png');
    width: 24px;
    height: 24px;
}

.reward-card {
    /* border-radius: 40px; */
    border-radius: 16px;
    overflow: hidden;
    border: none;
}

.sidebar-menu li {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    color: #ffffff !important;
}

.sidebar-menu li a {
    text-decoration: none;
    color: #ffffff !important;
}

.main-app-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-menu li a:hover {
    color: #ffd4d6 !important;
}

.scratch-card {
    width: 30%;
    height: 90px;
    color: white;
    font-weight: bold;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;

    &.one {
        width: 50%;
        margin-top: 16px;
    }

    &.two {
        width: 40%;
    }
}

.scratch-card:hover {
    transform: translateY(-5px);
}

.main-container {
    /* background-image: url('../images/bacground_image_middle.png'); */
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    min-height: 400px;

    &.bg-top-100 {
        background-position: 0 100%;
    }

    &.bg-top-75 {
        background-position: 0 75%;
    }

    &.bg-top-50 {
        background-position: 0 50%;
    }

    &.bg-top-25 {
        background-position: 0 25%;
    }

    &.rotate {
        background-image: none;
        overflow: hidden;
        position: relative;
        min-height: 280px;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;

        &::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            right: -50%;
            bottom: -50%;
            background-image: url('../images/bacground_image_middle.png');
            background-repeat: no-repeat;
            /* background-size: 100% auto; */
            background-size: 90% 40%;
            /* background-position: center; */
            background-position: left;
            transform: rotate(45deg);
            z-index: -1;
            opacity: 0.8;
        }

        img {
            z-index: 2;
        }
    }
}

.bg-bottom-container {
    /* flex-shrink: 0; */
    width: 100%;

    img {
        background-repeat: no-repeat;
        background-size: contain;
        background-position: 0 100%;
    }
}

.product-card-list {
    max-height: 50vh;
    overflow-x: hidden;
    overflow-y: scroll;

    &::-webkit-scrollbar {
        width: 6px;
    }

    .card-content-wrapper {
        display: flex;
    }

    .card {
        border-radius: 16px;
        flex-grow: 1;
        overflow-x: hidden;
        text-decoration: none;
        width: 100%;
        background: linear-gradient(90deg, #6F45A2 0%, #5A3A93 100%);
        color: white;

        .card-img-wrapper {
            width: 20%;
            background-color: white;

            picture {
                display: flex;
                align-items: center;
                justify-content: center;

                img {
                    max-width: 72px;
                    max-height: 72px;
                }
            }
        }

        .card-body {
            width: 80%;

            .product-name {
                color: white;
                font-weight: bold;
                font-size: 16px;
            }

            .product-code {
                color: white;
                /* font-weight: 500; */
                font-weight: 700;
                font-size: 12px;
            }

            .product-title {
                color: white;
                font-weight: 400;
                font-size: 12px;
            }
        }
    }
}

.back-arrow-btn {
    position: absolute;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    left: 26px;
    top: 24px;
    padding: 0px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.floating-input {
    position: relative;
}

.scratch-input {
    border: 2px solid #ca1920;
    border-radius: 20px;
    height: 30px;
    padding: 20px 18px;
}

.floating-input label {
    position: absolute;
    top: 13px;
    left: 18px;
    color: #6B7280;
    transition: 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 6px;
}

.scratch-input:focus+label,
.scratch-input:not(:placeholder-shown)+label {
    top: -10px;
    font-size: 13px;
    color: #0F3B6D;
}

.form-control:focus {
    border: 2px solid #ca1920;
    box-shadow: none;
}

.go-btn {
    color: white;
    background: linear-gradient(to right, #f40000 47%, #C50505 100%);
    font-weight: 700;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.5px;

    &:hover,
    &:focus,
    &:active {
        background-color: #ca1920;
        color: white;
    }
}

.border-btn {
    color: #ca1920;
    border-color: #ca1920;
    font-weight: 700;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.5px;

    &:hover,
    &:focus {
        background-color: #f02e37;
        color: white;
    }
}

.main-img-wrapper {
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: linear-gradient(#FFFFFF 0%, #cacaca47 100%);
}

.reward-image-container {
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.reward-image-container img {
    max-height: 200px;
    object-fit: contain;
}

h2.fw-bold {
    color: #1f2937;
}

.product-card-rewards {
    .card {
        border-radius: 25px;
        flex-grow: 1;
        overflow-x: hidden;
        text-decoration: none;
        width: 100%;

        .product-name {
            color: white;
            font-weight: bold;
            font-size: 16px;
        }

        .card-body {
            &.cong-card-body {
                /* background: linear-gradient(135deg, #14B8A6 0%, #4C1D95 100%) !important; */
                background: linear-gradient(165deg, #14B8A6 0%, #4C1D95 50%) !important;
                border-radius: 25px !important;
            }
        }

        .card-data {
            background-color: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
            padding: 16px;

            .reward-title {
                color: #919191;
                font-weight: 500;
                font-size: 10px;
            }
        }
    }
}

.illustration-wrapper {
    min-height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
        width: 20px;
    }
}

.phone-input-container {
    position: relative;
}

.phone-input-container .check-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ca1920;
    font-size: 24px;
}

.form-check-input:checked {
    background-color: #ca1920;
    border-color: #ca1920;
}

.scratch-input:focus+label,
.scratch-input:not(:placeholder-shown)+label {
    color: #ca1920 !important;
}


.otp-container {
    gap: 10px;
}

.otp-box {
    width: 70px;
    height: 80px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background-color: #fff;
    color: #4B5563;
    transition: all 0.2s ease;
}

.otp-box.active,
.otp-box:focus {
    border: 2px solid #ff0000;
    outline: none;
    box-shadow: none;
}

.text-teal {
    color: #ff0000;
}

.text-teal:hover {
    color: #ca1920;
}

@media (max-width: 350px) {
    .otp-box {
        width: 60px;
        height: 70px;
    }
}

.offcanvas-start {
    @media only screen and (min-width: 576px) {
        left: calc(50vw - 212px) !important;
    }

    /* @media only screen and (max-width: 576px){
        width: 70% !important;
    } */
}

.offcanvas-header {
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.offcanvas.show:not(.hiding),
.offcanvas.showing {
    transform: none;
    width: 300px !important;
    background-color: #ffffff;
}

/* .main-container {
    flex: 1 0 auto;
    background-image: url('./bacground_image_middle.png');
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
} */

.offcanvas-body {
    /* background-image: url('../images/navbar-footer.png'); */
    /* background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    background-position: bottom; */
    background: linear-gradient(0deg,
            #c62828 0%,
            #d8433e 25%,
            #ef5350 50%,
            #ff6a4d 75%,
            #ff7043 100%) !important;
}

.terms-agree {
    border: 2px solid #ca1920;
}

.modal-header {
    background-color: #ca1920;
    color: #ffffff;
}

.btn-petronas {
    background-color: #ca1920 !important;
    color: #ffffff;
}

.tnc-wrapper {
    .mob-box-wrapper {
        /* max-height: 59svh; */
        max-height: 54svh;
        overflow-x: hidden;
        overflow-y: scroll;
    }
}

.custom-scroll-bar {
    &::-webkit-scrollbar {
        width: 2px;
        background-color: #cac4d0;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 2px;
        background: #79747e;
        outline: 1px solid#79747e;
    }
}

.redeem-link {
    color: #ca1920;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.redeem-link:hover {
    color: #ca1920;
}

.gradient-text {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 3px;

    background: linear-gradient(90deg, #ca1920, #ffd700, #8a2be2, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 5px rgba(255, 0, 0, 0.4),
        0 0 10px rgba(255, 215, 0, 0.4),
        0 0 15px rgba(138, 43, 226, 0.4);
}

/* .redeem-btn{
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    border: none;

    background: linear-gradient(90deg, #ca1920, #ffd700, #8a2be2, #00c853);
    background-size: 200%;

    transition: all 0.3s ease;

    box-shadow:
        0 0 10px rgba(255,0,0,0.5),
        0 0 20px rgba(255,215,0,0.4),
        0 0 30px rgba(138,43,226,0.3);
} */

.redeem-btn {
    width: 75%;
    /* padding: 14px 20px; */
    font-size: 22px;
    font-weight: 200;
    letter-spacing: 1.5px;
    border-radius: 14px;
    border: none;
    color: #fff;
    cursor: not-allowed;

    background: linear-gradient(90deg, #ca1920, #ffd700, #8a2be2, #00c853);
    background-size: 300%;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(255, 215, 0, 0.6);

    position: relative;
    overflow: hidden;

    animation: gradientMove 4s linear infinite, pulseGlow 2s ease-in-out infinite;
}

/* moving gradient */
@keyframes gradientMove {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 300%;
    }
}

/* glowing pulse */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(247, 211, 7, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
    }
}

/* shine effect */
.redeem-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

.custome-error {
    color: #ff0000 !important;
    font-weight: bold !important;
    font-size: 12px;
}

.table-responsive {
    padding-bottom: 8px;
    border-bottom: 2px solid #830200;
    max-height: 320px;
    overflow-y: auto;
}

.date-filter-wrapper .form-select {
    font-size: 14px;
    line-height: 16px;
}

.date-filter-wrapper .form-select:focus {
    box-shadow: none;
    border: 1px solid #3c3c3c;
}

table thead tr td {
    background: linear-gradient(0deg, #e04c1b 0%, #821b1a 100%);
    vertical-align: middle;
    color: #ffffff;
    font-size: 14px;
    line-height: 16px;
}

table tbody tr td {
    font-size: 12px;
    line-height: 14px;
    background: linear-gradient(180deg, #ca1920 0%, #BC0100 100%);
    color: #ffffff;
    text-transform: capitalize;
    vertical-align: middle;
}

.table-tnc tbody tr td {
    font-size: 12px;
    line-height: 14px;
    background: #ffffff;
    color: #000000;
    text-transform: capitalize;
    vertical-align: middle;
}


table thead tr td:first-child {

    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

table thead tr td:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

table tbody tr td:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

table tbody tr td:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

table tbody tr td.bgTransparent {
    background: transparent;
    line-height: 0;
    height: 8px;
}

table tbody tr td.number span {
    background-color: #ffffff;
    color: #830200;
    padding: 2px 4px;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.bg-overlay-bottom-container {
    position: relative;
    width: 100%;
}

/* Background */
.bg-img {
    width: 100%;
    display: block;
}

/* THIS is your second div (cycles container) */
.bg-overlay-bottom-container>div {
    position: absolute;
    bottom: 0;
    /* place on ground */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

/* Each cycle */
.bg-overlay-bottom-container>div>div {
    width: 30%;
    /* equal size */
}

/* Cycle images */
.bg-overlay-bottom-container img.img-fluid {
    width: 100%;
    height: 120px;
    /* same height */
    object-fit: contain;
}

.track-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

.cta-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 25px;
    border-radius: 12px;

    /* Dark gradient background */
    background: linear-gradient(135deg, #EC1C24, #2A2A2A);

    /* Glow border */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);

    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Text styles */
.cta-small {
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.8;
}

.cta-title {
    font-size: 25px;
    font-weight: bold;
    margin: 5px 0 0;
}

/* Image (right side) */
.cta-image img {
    height: 60px;
    object-fit: contain;
}

/* Hover effect */
.cta-banner:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
    transition: 0.3s ease;
}

/* .container {
    width: 300px;
    margin: 30px auto;
    text-align: center;
} */

.title {
    color: #4a6cf7;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.card {
    /* background: linear-gradient(135deg, #5b86e5, #36d1dc);
    color: #fff;
    padding: 18px 10px;
    border-radius: 15px;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: 0.3s; */
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.full-card {
    grid-column: span 2;
}

.remaining {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.remaining span {
    color: #e74c3c;
    font-weight: bold;
}

.note {
    font-size: 11px;
    color: #777;
}

.play-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 15px rgba(255, 75, 43, 0.4);
}

.rainbow-text {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg,
            red, orange, green, blue, yellow, indigo, violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.beast-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.highlight {
    color: #ff5722;
    font-weight: bold;
}