.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    scrollbar-width: none;
}

.site-logo {
    width: 30rem;
}

.site-logo img {
    width: 50%;
}

.phone-prefix {
    width: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phone-input-container {
    display: flex;
    column-gap: 7px;
}

.phone-input-container.input-error {
    border: none !important;
    box-shadow: none !important;
}

.phone-input-container.input-error .input-error {
    width: 178px;
}

/* .user__account {} */

.user__account a {
    line-height: unset !important;
    padding: 0px 0px !important;
}

.user__account a img {
    border-radius: 50% !important;
}

.contact-form .form-group {
    margin-bottom: 0;
    padding-top: 20px;
}

.contact-form label {
    font-size: 16px;
    text-transform: capitalize;
    line-height: 2px;
}

.contact-form .form-group select {
    border: 1px solid rgb(114 121 206);
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    color: #7279cd;
    background-color: rgb(90 30 193);
    height: 50px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}

.account-form-area form .cmn-btn {
    width: fit-content;
    display: inline-block;
    margin: 0 auto;
}

.contest-cart__nav-slider {
    display: none;
}

.contest-cart__thumb-slider {
    overflow: hidden;
}

.header-desktop {
    display: block;
}

.header-mobile {
    display: none;
}

:root {
    --color: #1950ff;
    --white: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-mobile .header__top {
    position: relative;
    z-index: 999;
}

header .site-logo.site-title img {
    /* width: 225px; */
    width: 165px;
}

.mobHeader {
    position: relative;
    display: flex;
    align-items: center;
    height: 65px;
    padding: 0 20px;
    z-index: 999;
}

.header.menu-fixed .mobHeader.header__bottom {
    padding: 0 20px;
}

.device {
    position: relative;
    width: 100vw;
    height: 67px;
    background: transparent;
    /* border: 1px solid #eee;
    border-radius: 30px; */
    /* box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1); */
}

.navContainer {
    position: relative;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* overflow: hidden; */
    /* border-radius: 30px; */
    /* background: linear-gradient(to bottom, #eee, #ddd); */
    background: transparent;
}

.navTrigger {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    background: transparent;
    border: 0;
    outline: none;
    border: none;
    cursor: pointer;
    padding: 0;
    -webkit-appearence: none;
    -webkit-tap-highlight-color: transparent;
    display: none;
}

.navTrigger:focus {
    outline: none;
}

.navTrigger svg {
    /* width: 64px;
    height: 48px; */
    top: 0px;
    left: 0px;
    stroke: var(--white);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: block;
    position: absolute;
    width: 65px;
    height: 100%;
}

.navTrigger svg path {
    transition: stroke-dasharray var(--duration, 0.85s) var(--easing, ease)
            var(--delay, 0s),
        stroke-dashoffset var(--duration, 0.85s) var(--easing, ease)
            var(--delay, 0s);
    stroke-dasharray: var(--array-1, 26px) var(--array-2, 100px);
    stroke-dashoffset: var(--offset, 126px);
    transform: translateZ(0);
}

.navTrigger svg path:nth-child(2) {
    --duration: 0.7s;
    --easing: ease-in;
    --offset: 100px;
    --array-2: 74px;
}

.navTrigger svg path:nth-child(3) {
    --offset: 133px;
    --array-2: 107px;
}

.navTrigger.active svg {
    stroke: var(--white);
}

.navTrigger.active svg path {
    --offset: 57px;
}

.navTrigger.active svg path:nth-child(1),
.navTrigger.active svg path:nth-child(3) {
    --delay: 0.15s;
    --easing: cubic-bezier(0.2, 0.4, 0.2, 1.1);
}

.navTrigger.active svg path:nth-child(2) {
    --duration: 0.4s;
    --offset: 2px;
    --array-1: 1px;
}

.navTrigger.active svg path:nth-child(3) {
    --offset: 58px;
}

.navMenu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    background: #fff;
    opacity: 0;
    z-index: -1;
    visibility: hidden;
    transition: all 0.375s;
    height: 100vh;
}

.navMenu.active {
    opacity: 1;
    z-index: 100;
    visibility: visible;
}

.navMenu.active::before {
    transform: skew(-14deg) translateX(0);
}

.navMenu.active li {
    opacity: 1;
    transform: translateY(0);
}

.navMenu::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -15px;
    background: #070b28;
    transform-origin: 0 0;
    transform: skew(-14deg) translateX(-120%);
    transition: all 0.275s 0.1s;
}

.navMenu ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    height: 93%;
    /* Should be 100%, but we have a notice message :D */
    align-items: flex-end;
    justify-content: center;
    transform: translateX(-18%) skew(-16deg);
}

.navMenu ul li {
    display: block;
    margin: 0.5rem 0;
    text-align: right;
    opacity: 0;
    transform: translateY(-10px);
}

.navMenu ul li a {
    position: relative;
    left: 0;
    display: block;
    padding: 12px 0;
    color: var(--white);
    font-size: 1.4em;
    text-decoration: none;
    transform: skew(16deg);
    transition: 0.25s;
    text-transform: uppercase;
}

.navMenu ul li a:hover {
    left: 10px;
}

.navMenu ul li:nth-child(1) {
    transition: all 275ms 275ms;
}

.navMenu ul li:nth-child(2) {
    transition: all 275ms 325ms;
}

.navMenu ul li:nth-child(3) {
    transition: all 275ms 375ms;
}

.navMenu ul li:nth-child(4) {
    transition: all 275ms 425ms;
}

.navMenu ul li:nth-child(5) {
    transition: all 275ms 475ms;
}

.questionModal form h3 {
    margin: 0 0 1rem 0;
}

.selectAnswer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.questionModal form .cmn-btn {
    width: auto;
    font-size: 14px;
    letter-spacing: 1px;
}

.page-wrapper {
    /* padding: 87px 0 0 0; */
}

@media (max-width: 1199px) {
    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: block;
    }

    header .site-logo.site-title img {
        width: 150px;
        max-width: initial;
    }
}

.user-info-card__header button i {
    font-size: 15.9px !important;
}

.user-info-card__list li .caption {
    margin-right: 15px !important;
}

::-webkit-calendar-picker-indicator {
    filter: invert(92%) sepia(9%) saturate(1600%) hue-rotate(210deg)
        brightness(94%);
}

.avatar-update-btn {
    position: absolute;
    right: -30px;
    z-index: 1;
    bottom: 9.5px;
    left: 157px;
}

.avatar-update-btn button {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    border-radius: 50%;
    background-image: -webkit-linear-gradient(135deg, #b122e6 0%, #ff63de 100%);
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s ease-in-out;
    color: white;
}

.avatar-update-btn button i {
    padding: 8px 2px 2px 2px;
}

.personal-details-form button {
    width: auto !important;
}

.user__btn img {
    width: 40px !important;
    height: 40px !important;
}

.user__btn i {
    padding: 6.5px !important;
}

.product__cart_header_btn i {
    color: #ffffff;
    font-size: 30px;
}

.product__cart_header_btn span {
    position: absolute;
    top: -2px;
    right: -8px;
    min-width: 22px;
    min-height: 22px;
    font-size: 12px;
    line-height: 22px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background-image: -moz-linear-gradient(135deg, #8739e6 0%, #5496ff 100%);
    background-image: -webkit-linear-gradient(135deg, #8739e6 0%, #5496ff 100%);
    background-image: -ms-linear-gradient(135deg, #8739e6 0%, #5496ff 100%);
    box-shadow: 0px 19px 56px 0px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.product__cart_header_btn {
    background-color: transparent;
    margin-left: 15px;
    position: relative;
    padding-top: 7px;
}

.user-card {
    padding: 50px 30px 40px 30px;
}

header.menu-fixed .header__bottom {
    /* z-index: 999999999 !important; */
    position: relative;
}

@media (max-width: 1199px) {
    .product__cart_header_btn {
        margin-right: 4rem !important;
    }

    .user-card {
        padding: 50px 30px 40px 30px;
        margin-top: 3rem;
    }

    header .product__cart_header_btn {
        visibility: hidden !important;
    }

    header.menu-fixed .product__cart_header_btn {
        visibility: visible !important;
    }

    li .product__cart_header_btn {
        display: none !important;
    }

    .user__account span,
    .header-customer span {
        display: none !important;
    }

    .user__btn i {
        padding: 3.5px !important;
    }
}

.iti {
    width: 100% !important;
}

.user-info-card__list .iti {
    width: auto !important;
}

.mobile_input {
    position: relative;
    width: 300px;
}

/* Conflict removed - handled by grid styles */

.mobile_input .iti {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
}

#date-range {
    cursor: pointer !important;
}

#date-range.form-control:disabled,
#date-range.form-control[readonly] {
    background: #1a1a1a;
}

.iti__search-input,
.iti__country,
.iti__country-name {
    color: black !important;
}

/* Style the calendar icon in most browsers */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    display: block;
    cursor: pointer;
    opacity: 0.7;
    filter: invert(0.6);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: invert(0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* Optional: Add padding to ensure the text aligns properly */
input[type="date"],
input[type="datetime-local"] {
    padding-right: 10px;
    /* Adjust as needed */
}

select.input_fields {
    height: 46px;
    border: none;
    border: 1px solid #6472d9 !important;
    border-radius: 5;
    padding: 7px 25px !important;
}

.iti__country-container {
    margin-top: -11px;
}

#answerMessage {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0px);
}

.iti--fullscreen-popup.iti--container {
    z-index: 99999999999999 !important;
}

.iti__selected-country-primary {
    padding-left: 0 !important;
}

select.input_fields {
    padding-left: 0 !important;
    margin-left: -3px;
}

.description_box ul,
ol {
    padding: 0;
    margin: 0;
    list-style: disc;
    padding-left: 16px;
}

.description_box ul li,
ol li {
    padding: 5px 0px;
}

.hero__title {
    margin-left: -10px;
}

.feature-card__content p {
    line-height: 1.1 !important;
}

.contest-card__content .contest-num {
    width: 95px !important;
    height: 95px !important;
    top: 213px !important;
}

.contest-card__content .contest-num span {
    letter-spacing: -0.9px !important;
}

.contest_box .contest-card {
    height: 100%;
}

.contest_box .contest-card__footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}

.contest_box .contest-card__content {
    padding-bottom: 70px;
    padding-top: 60px;
}

.play-card {
    height: 100%;
}

.play-card__content p {
    line-height: 1.1;
}

.header-customer .la-phone-volume {
    font-size: 1.5rem;
    top: 4px;
    position: relative;
}

/* .hero {
    padding-top: 260px !important;
} */

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid white;
    width: 100%;
    position: relative;
}

@media (max-width: 767px) {
    /*  .logo,
    .logo a,
    .logo img {
        width: auto !important; 
    }*/

    .footer-left-column-logo-text img {
        width: 50% !important;
        margin: 0 auto;
        display: flex;
    }
}

/*Latest games styles*/

.title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.game_lobby .title {
    margin-bottom: 60px;
}

.game_lobby p {
    text-align: center;
    margin-bottom: 60px;
}

/* ============================================
   LATEST GAMES SECTION - Enhanced Styling
   ============================================ */

.body-container {
    padding-top: 5rem;
    /* ~80px from header */
    padding-bottom: 5rem;
    /* ~80px before footer */
    margin: 87px 0 0 0;
}

.latest-games-heading {
    text-align: center;
    margin-bottom: 2rem;
    /* 32px gap between heading and cards */
    letter-spacing: 0.08em;
}

.latest-games-heading .title {
    margin-bottom: 0;
    /* Remove default margin, controlled by parent */
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
}

.game-card {
    /* background: #7a7a7a; */
    border-radius: 1.5rem;
    /* 24px */
    padding: 1.5rem 1.5rem 2rem;
    /* 24px sides, 32px bottom for button */
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: "";
    /* position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0; */
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.icon-container {
    width: 100px;
    height: 100px;
    /* background: #e8e8e8;
    border-radius: 50%; */
    /* margin-bottom: 25px; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* position: relative; */
    margin-left: auto;
    margin-right: auto;
}

/*.icon {
     width: 40px;
            height: 40px;
            opacity: 0.7;
} */

.game-card p {
    margin: 15px 0 25px;
    line-height: 20px;
    color: #fff;
}

.game-card span {
    color: #ffb200;
    margin-bottom: 20px;
}

/* Custom icons using CSS */
.scratchcard-icon::before {
    content: "🎫";
    font-size: 32px;
}

.fireball-icon::before {
    content: "🔥";
    font-size: 32px;
}

.crash-icon::before {
    content: "📱";
    font-size: 32px;
}

.game-title {
    color: white;
    font-size: 1.65rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Enhanced game card title and description */
.game-card-title {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 600;
    margin-top: 1.25rem;
    /* space under icon */
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.2;
}

.game-card-description {
    font-size: 0.95rem;
    max-width: 20rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Game card badge */
.game-card-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.game-card--live .game-card-badge {
    background: rgba(0, 255, 150, 0.18);
    color: #00ff96;
}

.game-card--coming-soon .game-card-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
}

/* .game-card-badge--soon {
    Additional styles if needed
} */

.play-button {
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.2rem;
    text-transform: uppercase !important;
    line-height: normal;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: none;
    border-radius: 999px;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    -ms-border-radius: 999px;
    -o-border-radius: 999px;
    background-image: -moz-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    background-image: -webkit-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    background-image: -ms-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    box-shadow: 0px 17px 40px 0px rgba(124, 78, 25, 0.35);
    -webkit-transition: background-size 0.3s;
    -o-transition: background-size 0.3s;
    transition: background-size 0.3s;
}

/* Enhanced game card CTA button */
.game-card-cta {
    margin-top: 1.5rem;
    /* 24px above button */
    min-width: 10rem;
    /* ~160px */
    min-height: 2.75rem;
    /* tap target */
}

/* Button states for live vs coming soon */
.game-card--live .game-card-cta {
    opacity: 1;
    pointer-events: auto;
}

.game-card--coming-soon .game-card-cta {
    background: transparent !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    pointer-events: none;
    /* not clickable */
    box-shadow: none !important;
    cursor: not-allowed;
}

.play-button:hover {
    background-size: 300%;
    color: #ffffff;
    transform: scale(1.02);
}

.play-button:active {
    transform: scale(0.98);
}

/* Tablet Responsive - 2 cards per row */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .latest-games-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .latest-games-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .latest-games-heading {
        margin-bottom: 1.5rem;
    }

    .title {
        font-size: 2.2rem;
        margin-bottom: 0;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 1rem;
        /* 16px side margin */
    }

    .game-card {
        padding: 1.25rem 1.25rem 1.75rem;
        max-width: none;
    }

    .game-title,
    .game-card-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .game-card-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .play-button,
    .game-card-cta {
        padding: 14px 32px;
        font-size: 1rem;
        min-height: 2.75rem;
    }

    .game-card-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 767px) {
}

@media (max-width: 480px) {
    .latest-games-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .latest-games-heading {
        margin-bottom: 1.25rem;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .game-card {
        padding: 1rem 1rem 1.5rem;
    }

    .game-title,
    .game-card-title {
        font-size: 1.4rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .game-card-description {
        font-size: 0.85rem;
    }

    .icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .game-card-cta {
        margin-top: 1.25rem;
        min-height: 2.5rem;
        font-size: 0.9rem;
    }

    .game-card-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
        margin-bottom: 0.75rem;
    }
}

/* Animation for page load */
.game-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.game-card:nth-child(1) {
    animation-delay: 0.1s;
}

.game-card:nth-child(2) {
    animation-delay: 0.2s;
}

.game-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disabled {
    opacity: 0.9;
    cursor: not-allowed;
    pointer-events: none;
}

/********Games lobby *************/
.game-lobby {
    background: #310c4dad;
    border-radius: 15px;
    padding: 30px 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    background-position: center bottom;
    background-repeat: no-repeat;
    /* max-width: 600px; */
}

.game-items {
    display: flex;
    gap: 15px;
}

.lobby-container {
    /* padding: 150px 0 0 0; */
    margin: 0 auto;
    display: flex;
    gap: 20px;
    /* height: 100vh; */
    align-items: center;
    flex-direction: column;
}

.lobby-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.game-lobby p {
    margin-bottom: 30px;
}

/* Page wrapper */
.scratch-page {
    /* padding-top: 6.5rem; */
    /* space below header navigation */
    /* padding-bottom: 4rem; */
}

/* Header */
.scratch-header {
    /* max-width: 1120px;
    margin: 3.5rem auto 1.5rem;
    text-align: left; */
}

.scratch-breadcrumb {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.scratch-title {
    font-family: "Josefin Sans", sans-serif;
    /* keep brand */
    font-size: 2rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    color: #fff;
    font-weight: 700;
}

.scratch-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Games section */
.scratch-games {
    max-width: 1120px;
    margin: 0 auto 2.5rem;
    padding: 2rem 2.5rem;
    border-radius: 1.5rem;
    background: rgba(46, 6, 93, 0.85);
    /* same purple tone, slightly transparent */
}

.scratch-games-cardwrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    /* cards take full column height */
}

/* Make all cards equal height and tighter */
.scratch-games-cardwrap .scratch-card,
.scratch-games-cardwrap .game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 1.75rem 1.5rem 2rem;
}

/* Balance section */
.scratch-balance {
    max-width: 1120px;
    margin: 0 auto;
}

/* Scratch Card Styles (Lobby Cards) */
.scratch-games-cardwrap .scratch-card,
.scratch-games-cardwrap .game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 1.75rem 1.5rem 2rem;
    width: 100%;
    border-radius: 1.5rem;
    position: relative;
}

/* Card content spacing */
.scratch-games-cardwrap .scratch-card h3,
.scratch-games-cardwrap .scratch-card .game-title,
.scratch-games-cardwrap .game-card h3,
.scratch-games-cardwrap .game-card .game-title {
    margin-bottom: 0.5rem;
}

.scratch-games-cardwrap .scratch-card .game-description,
.scratch-games-cardwrap .game-card .game-description {
    margin-bottom: 1rem;
}

.scratch-games-cardwrap .scratch-card .scratch-card-meta,
.scratch-games-cardwrap .game-card .game-meta {
    margin-bottom: 1rem;
}

.scratch-games-cardwrap .scratch-card .scratch-card-button,
.scratch-games-cardwrap .scratch-card .scratch-btn,
.scratch-games-cardwrap .game-card .game-cta,
.scratch-games-cardwrap .game-card .play-button {
    margin-top: 1.25rem;
}

/* Legacy support for .game-items */
.game-items .scratch-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem 2rem;
    gap: 0.75rem;
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    position: relative;
}

.scratch-games-cardwrap .scratch-card-badge,
.game-items .scratch-card-badge {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.scratch-games-cardwrap .scratch-card--live .scratch-card-badge,
.game-items .scratch-card--live .scratch-card-badge {
    background: rgba(0, 255, 150, 0.18);
    color: #00ff96;
}

.scratch-games-cardwrap .scratch-card--soon,
.game-items .scratch-card--soon {
    opacity: 0.75;
}

.scratch-games-cardwrap .scratch-card--soon .scratch-card-badge,
.game-items .scratch-card--soon .scratch-card-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.scratch-games-cardwrap .scratch-card-meta,
.game-items .scratch-card-meta {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scratch-games-cardwrap .scratch-card-cost,
.game-items .scratch-card-cost {
    font-weight: 600;
    color: #f5aa41;
}

.scratch-games-cardwrap .scratch-card-rule,
.game-items .scratch-card-rule {
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.85);
}

.scratch-games-cardwrap .scratch-card--soon .scratch-card-button,
.game-items .scratch-card--soon .scratch-card-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    box-shadow: none;
}

/* Legacy game-item support (if still used elsewhere) */
.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    position: relative;
}

.game-item:last-child {
    border-bottom: none;
}

.game-icon {
    width: 150px;
    height: 150px;
    background: linear-gradient(180deg, #e844e1, #9d00f3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* Consistent icon circles for scratch cards */
.scratch-card-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    /* center + space under icon */
    background-size: cover;
    background-position: center;
}

.scratch-card-icon img {
    max-width: 70%;
    height: auto;
}

.game-info {
    flex: 1;
    text-align: center;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0px;
    color: #ffffff;
}

p.game-description {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.game-subtitle {
    color: #f5aa41;
    font-size: 0.9rem;
}

.game-subtitle.coming-soon {
    color: #999;
}

.scratch-btn,
.current-tokens {
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 999px;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    -ms-border-radius: 999px;
    -o-border-radius: 999px;
    background-image: -moz-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    background-image: -webkit-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    background-image: -ms-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    box-shadow: 0px 17px 40px 0px rgba(124, 78, 25, 0.35);
    -webkit-transition: background-size 0.3s;
    -o-transition: background-size 0.3s;
    transition: background-size 0.3s;
}

.scratch-btn:hover {
    background-size: 300%;
    color: #ffffff;
    transform: scale(1.02);
}

.disabled {
    opacity: 0.9;
    cursor: not-allowed;
    pointer-events: none;
}

/* Scratch Balance Panel */
.scratch-balance-panel {
    padding: 1.25rem 1.75rem;
    border-radius: 1.25rem;
    background: #2d086580;
    border: 1px solid #000000b2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
    width: 100%;
}

.scratch-balance-item .label {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.scratch-balance-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* Legacy balance-panel support (if still used elsewhere) */
.balance-panel {
    background: #2d086580;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: fit-content;
    border: 1px solid #000000b2;
    overflow: hidden;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

/* Base Modal Styling */
.modal-base {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

/* Confirmation Modal */
.confirmation-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 96%;
    text-align: center;
}

.confirmation-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2e1965;
    text-transform: uppercase;
}

.confirmation-modal p {
    color: #262626;
    margin-bottom: 20px;
    line-height: normal;
}

.cost-info {
    background: #2c0341;
    padding: 10px 25px;
    border-radius: 25px;
    margin: 0 auto;
    color: #fff;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tokens-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.tokens-left-icon {
    width: 75px;
    height: 75px;
}

p.token-left {
    text-align: left;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

p.token-left .tokens-balance {
    color: #2e1965;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: normal;
}

p.token-left .you-have {
    color: #262626;
}

/* .balance-selection {
    margin-top: 15px; 
}*/

.balance-selection label {
    color: #2c0341;
    margin-bottom: 0;
}

.balance-selection input {
    min-height: auto;
}

.balance-selection span {
    color: #2c0341;
}

.modal-buttons {
    display: flex;
    gap: 35px;
    margin-top: 15px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.exit-btn {
    color: #ee1285;
    border: 1px solid #ee1285;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    text-transform: uppercase;
    box-shadow: 0px 17px 40px 0px rgba(124, 78, 25, 0.35);
}

/* Auth Modal */
.auth-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: left;
    position: relative;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: #333;
    border-bottom-color: #333;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #333;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    color: #333;
}

.auth-submit {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
}

.social-login {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-weight: 600;
}

.social-btn.google {
    color: #4285f4;
}

.social-btn.facebook {
    color: #1877f2;
}

/* History Modal */
.history-modal {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
}

.history-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.history-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
}

.history-filter {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-content {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:nth-child(even) {
    background-color: #4e40b9;
}

.history-game-info {
    flex: 1;
}

.history-game-name {
    font-weight: 600;
}

.history-game-time {
    color: #999;
    font-size: 14px;
}

.history-result {
    font-weight: 700;
    font-size: 18px;
}

.history-result.win {
    color: #4caf50;
}

.history-result.loss {
    color: #f44336;
}

.load-more-btn {
    width: auto;
    padding: 20px;
    background: #f8f8f8;
    border: none;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.load-more-btn:hover {
    background: #f0f0f0;
}

/* Loss Modal */
.loss-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.loss-icon {
    width: 80px;
    height: 80px;
    background: #f44336;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.loss-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2e1965;
}

.loss-subtitle {
    color: #262626;
    margin-bottom: 10px;
}

.countdown-timer {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.countdown-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background-image: -webkit-linear-gradient(90deg, #6c0092 40%, #ec1379 100%);
    background-image: -moz-linear-gradient(90deg, #6c0092 40%, #ec1379 100%);
    background-image: -ms-linear-gradient(90deg, #6c0092 40%, #ec1379 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 70px;
}

.countdown-colon {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.win-chance {
    color: #262626;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Game Screen */
.game-screen {
    background: #310c4dad;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    /* max-width: 950px; */
    margin: 0 auto;
    width: 100%;
    background-position: center bottom;
    background-size: cover;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.title-sec {
    text-align: left;
}

.game-screen-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.current-tokens {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.current-tokens span {
    color: #fff;
}

.cost-display {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 40px;
    color: #666;
}

.scratch-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.scratch-card {
    width: 100%;
    max-width: 350px;
    height: 350px;
    background: url("https://staging.8bmf8.com/public/frontend/assets/images/elements/games-bg.png");
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.scratch-card-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    pointer-events: auto;
    z-index: 2;
    cursor: pointer;
    touch-action: none;
    image-rendering: pixelated;
}

.scratch-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    /* above .scratch-card-canvas (z-index: 2) */
    pointer-events: none;
    /* allow scratching through the text layer */
}

.scratch-card-symbol {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    font-size: 6rem;
    color: white;
    font-weight: bold;
}

.scratch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.scratch-card.revealed {
    background: #35298c;
    color: white;
    cursor: default;
}

.scratch-card.revealed .scratch-card-canvas {
    display: none;
}

.scratch-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.4;
}

.scratch-text strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 2.5rem;
    color: #ffc64f;
    /* highlight WIN in gold */
}

.game-instruction {
    color: #fff;
    margin-top: 30px;
    font-size: 1rem;
}

/* Win Modal */
.win-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: visible;
}

.trophy-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.win-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2e1965;
}

.win-subtitle {
    color: #262626;
    margin-bottom: 10px;
}

.win-amount {
    background: #5a4bcc;
    padding: 40px 80px;
    border-radius: 20px;
    margin: 20px auto;
    width: max-content;
    position: relative;
}

.winning-icon {
    position: absolute;
    left: -50px;
}

.win-amount-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
}

.win-amount-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
}

.win-details {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* Celebration Animation Styles */
.celebration-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.celebration-particle {
    position: absolute;
    pointer-events: none;
}

.celebration-sparkle {
    position: absolute;
    pointer-events: none;
}

/* Confetti Fall Animation */
@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }

    10% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
        transform: translateY(120vh) rotate(var(--rotation, 360deg));
    }
}

/* Sparkle Animation */
@keyframes sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Bounce In Animation for Win Icon and Title */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }

    50% {
        transform: scale(1.05) translateY(0);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.win-icon-animated {
    animation: bounceIn 0.8s ease-out;
}

.win-title-animated {
    animation: bounceIn 0.8s ease-out 0.2s both;
}

/* Homepage Button */
.homepage-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: transparent;
    z-index: 9999999;
}

/* Hidden Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* User Status */
.user-status {
    display: none;
}

.user-status.logged-in {
    display: flex;
}

.guest-status {
    display: flex;
}

.guest-status.logged-in {
    display: none;
}

/* Tablet Responsive */
@media (max-width: 991.98px) {
    .scratch-games {
        padding: 1.5rem 1.25rem;
    }

    .scratch-games-cardwrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
    .container {
        flex-direction: column;
        gap: 20px;
        /* padding: 20px; */
    }

    .balance-panel {
        width: 100%;
    }

    .header-right {
        gap: 10px;
    }

    .all-games-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .token-display {
        font-size: 0.9rem;
    }

    .game-lobby {
        padding: 20px;
    }

    .screen {
        margin: 0 10px;
    }

    .lobby-title {
        font-size: 1.5rem;
    }

    .game-item {
        gap: 15px;
    }

    .scratch-card {
        margin-inline: 1rem;
        margin: auto;
    }

    .scratch-balance-panel {
        grid-template-columns: 1fr;
        margin-inline: 1rem;
        margin: auto;
    }

    .game-icon {
        width: 80px;
        height: 80px;
        font-size: 20px;
        margin: 0 auto;
    }

    .scratch-cards {
        gap: 15px;
    }

    /* Scratch card game elements (the cards you scratch) */
    .scratch-cards .scratch-card {
        flex: 1 1 0;
        max-width: 100px;
        height: 100px;
    }

    /* Scratch lobby cards */
    .game-items .scratch-card {
        margin-inline: 1rem;
        max-width: 100%;
    }

    /* Scratch page responsive */
    .scratch-header {
        margin-top: 3rem;
    }

    .scratch-header,
    .scratch-games,
    .scratch-balance {
        padding-inline: 1rem;
    }

    .scratch-title {
        font-size: 1.6rem;
    }

    .scratch-games-cardwrap {
        grid-template-columns: 1fr;
    }

    .scratch-balance-panel {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .scratch-text {
        line-height: 1.5;
        font-size: 0.87rem;
    }

    .scratch-text strong {
        font-size: 1.57rem;
    }

    .scratch-card.revealed {
        font-size: 2.5rem !important;
    }

    .scratch-card-symbol {
        font-size: 4rem !important;
    }

    .game-screen {
        padding: 20px;
    }

    /*  .modal-buttons {
        flex-direction: column; 
    }*/

    .homepage-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 20px;
    }

    .auth-modal {
        padding: 30px 20px;
    }

    .history-modal {
        max-width: 95%;
    }

    .history-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .countdown-display {
        gap: 10px;
    }

    .countdown-item {
        padding: 12px 15px;
        font-size: 1.2rem;
        min-width: 60px;
    }

    .game-items {
        flex-direction: column;
        align-items: center;
    }

    .lobby-container {
        padding: 150px 0 0 0;
    }

    .confirmation-title {
        font-size: 1.25rem;
    }

    .modal-buttons {
        gap: 20px;
    }

    .game-header {
        flex-direction: column-reverse;
        gap: 20px;
        justify-content: center;
        text-align: center;
    }

    .win-amount {
        padding: 40px;
    }

    .loss-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #2e1965;
        line-height: 1;
    }

    .scratch-btn,
    .current-tokens,
    .exit-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-base,
    .confirmation-modal,
    .win-modal,
    .loss-modal {
        padding: 30px 20px;
    }

    .scratch-cards {
        gap: 10px;
    }

    /*  .scratch-card {
        width: 120px;
        height: 120px;
    } */

    .game-items {
        flex-direction: column;
    }

    .lobby-container {
        padding: 150px 0 0 0;
    }

    .confirmation-title {
        font-size: 1.25rem;
    }

    .modal-buttons {
        gap: 20px;
    }

    .game-header {
        flex-direction: column-reverse;
        gap: 20px;
        justify-content: center;
        text-align: center;
    }

    /* .scratch-card.revealed {
        font-size: 4rem;
    } */

    .win-amount {
        padding: 40px;
    }

    .scratch-btn,
    .current-tokens,
    .exit-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/************ Top header***********/
.w-icon-top-h {
    width: 26px;
    height: 26px;
}

.top-h-box {
    background-color: #2c0341;
    border-radius: 8px;
    width: auto;
    height: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px;
    border: 1px solid #d2d5fc;
}

.me-2.top-h-box p {
    font-size: 14px;
    padding: 3px;
    color: white;
    margin: 0;
}

.top-h-box p {
    font-size: 14px;
    padding: 3px;
    color: white;
    margin: 0;
}

.header__top .right .amount__btn i {
    color: #ffffff;
    font-size: 30px;
}

span.cart__num {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.product__cart {
    margin-right: 1rem;
    position: relative;
}

a.dropdown-item.custom-dropdown-item span {
    color: white;
    padding: 13px 0px !important;
    font-size: 15px !important;
    display: block !important;
}

.mobHeader {
    position: relative;
    display: flex;
    align-items: center;
    height: 65px;
    padding: 0 20px;
    z-index: 998 !important;
}

/* User Account Dropdown Styles */
.user__account {
    position: relative;
    display: inline-block;
}

i.las.la-shopping-basket {
    font-size: 38px;
}

.user__btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.user__btn:hover,
.user__btn:focus,
.user__btn:active {
    background: rgba(255, 255, 255, 0.3);
    color: white !important;
    text-decoration: none;
    outline: none;
}

.user__btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user__btn i {
    font-size: 18px;
}

.user-name-link {
    color: white !important;
    text-decoration: none;
    margin-left: 8px;
    vertical-align: middle;
}

.user-name-link:hover,
.user-name-link:focus {
    color: white !important;
    text-decoration: none;
}

/* FIXED Dropdown Menu Styles */
.user-dropdown-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #5a4bcc;
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
    padding: 15px;
    margin: 0;
    pointer-events: none;
}

.user-dropdown-menu-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

.user-dropdown-menu-dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.user-dropdown-menu-dropdown li a {
    display: flex;
    align-items: center;
    padding: 12px 16px !important;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 2px;
}

.user-dropdown-menu-dropdown li:last-child a {
    border-bottom: none;
    margin-bottom: 0;
}

.user-dropdown-menu-dropdown li a:hover,
.user-dropdown-menu-dropdown li a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none;
    transform: translateX(2px);
}

.user-dropdown-menu-dropdown li a img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    object-fit: contain;
}

.user-dropdown-menu-dropdown li a span {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* Backdrop */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-backdrop.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Bootstrap 3 compatibility */
.header-top {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.header-customer {
    display: table-cell;
    vertical-align: middle;
}

.customer-login {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.customer-login > div {
    display: inline-block;
    vertical-align: middle;
    margin-left: 15px;
}

.d-flex {
    display: inline-block;
    vertical-align: middle;
}

.d-flex .top-h-box {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* MOBILE RESPONSIVE STYLES */
@media screen and (max-width: 768px) {
    .top-h-box {
        height: 35px !important;
        width: 89px !important;
        padding: 3px !important;
    }

    .customer-login span,
    .customer-login p {
        font-size: 14px;
    }

    .nav-section a,
    .nav-section button {
        font-size: 12px;
        padding: 10px 24px !important;
        line-height: normal !important;
    }

    .customer-login > div {
        margin-left: 0px;
    }

    .user-dropdown-menu-dropdown.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        pointer-events: auto !important;
    }

    .w-icon-top-h {
        width: 20px;
        height: 20px;
        padding: 2px !important;
    }

    .user__account {
        position: relative;
        display: inline-block;
        /* Removed problematic top positioning */
    }

    .d-flex.desktop-menu {
        display: flex !important;
        gap: 13px;
        align-items: center;
        justify-content: space-between;
    }

    /* FIXED Mobile dropdown positioning */
    .user-dropdown-menu-dropdown {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        right: 0 !important;
        left: auto !important;
        transform: translateY(-10px) scale(0.95) !important;
        min-width: 200px !important;
        max-width: 280px !important;
        margin: 0 !important;
        z-index: 99999 !important;
    }

    .user-dropdown-menu-dropdown.show {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Better touch targets */
    .user__btn {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .user-dropdown-menu-dropdown li a {
        min-height: 48px;
        padding: 16px !important;
        font-size: 16px;
        touch-action: manipulation;
    }

    .user-dropdown-menu-dropdown li a span {
        font-size: 16px;
    }

    /* Hide user name on very small screens */
    .user-name-link {
        display: none;
    }

    .product__cart {
        margin-right: 0.5rem;
    }

    /* Ensure parent container doesn't clip dropdown */
    .customer-login {
        overflow: visible !important;
    }

    .header-top {
        overflow: visible !important;
    }

    .header__top {
        overflow: visible !important;
    }
}

/* For very small screens */
@media screen and (max-width: 480px) {
    .user-dropdown-menu-dropdown {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        right: -10px !important;
        left: auto !important;
        min-width: 180px !important;
        max-width: 250px !important;
    }

    .d-flex.desktop-menu {
        gap: 5px;
    }

    .top-h-box p {
        font-size: 12px;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Progressive breakpoints: 767px → 576px → 480px → 375px → 320px
   ============================================ */

/* Breakpoint: 767px - Small Tablets and Large Phones */
@media screen and (max-width: 767px) {
    /* Header adjustments */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .customer-login {
        display: flex;
        align-items: center;
    }

    .d-flex.desktop-menu {
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
    }

    /* Fix alignment for all header elements - override inline styles */
    .d-flex.desktop-menu > * {
        display: flex !important;
        align-items: center !important;
        vertical-align: middle !important;
    }

    .all-games-btn,
    .nav-btn,
    .history-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
    }

    .token-display,
    .tokens-display {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        vertical-align: middle !important;
    }

    .top-h-box {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        height: 36px !important;
    }

    /* Latest Games Section */
    .container#latest_games {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure container is fluid */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 35px;
        letter-spacing: 1px;
    }

    /* Note: games-grid columns handled by 567px-767px breakpoint below */

    .game-card {
        padding: 25px 20px;
        max-width: 100%;
        border-radius: 15px;
    }

    .game-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .game-card p {
        font-size: 14px;
        line-height: 1.5;
        margin: 12px 0 20px;
    }

    .icon-container {
        width: 80px;
        height: 80px;
        margin-bottom: 18px;
    }

    .play-button {
        padding: 14px 30px;
        font-size: 1rem;
        min-height: 44px;
    }

    /* Header buttons and elements - override inline styles */
    .all-games-btn,
    .nav-btn,
    .history-btn {
        padding: 8px 18px !important;
        font-size: 13px !important;
        min-height: 36px !important;
        height: 36px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box {
        height: 36px !important;
        min-width: 75px !important;
        padding: 4px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .token-display,
    .tokens-display {
        height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .token-display span,
    .tokens-display span {
        display: flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        font-size: 13px;
    }

    .w-icon-top-h {
        width: 18px;
        height: 18px;
    }

    .token-display,
    .tokens-display {
        font-size: 12px;
        padding: 6px 10px;
    }

    .customer-login span,
    .customer-login p {
        font-size: 13px;
    }

    .user-name {
        font-size: 13px;
    }

    .profile-img,
    .profile-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
        line-height: 32px;
    }
}

/* Breakpoint: 567px to 767px - Two cards per row (must come after max-width: 767px) */
@media screen and (min-width: 567px) and (max-width: 767px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 0 10px;
    }

    .game-card {
        padding: 22px 18px;
        max-width: 100%;
    }

    .game-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .game-card p {
        font-size: 13px;
        line-height: 1.5;
        margin: 10px 0 18px;
    }

    .icon-container {
        width: 75px;
        height: 75px;
        margin-bottom: 15px;
    }

    .play-button {
        padding: 12px 28px;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/* Breakpoint: 576px - Small Tablets */
@media screen and (max-width: 576px) {
    .title {
        font-size: 1.75rem;
        margin-bottom: 30px;
        letter-spacing: 0.5px;
    }

    .games-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 8px;
    }

    .game-card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .game-title {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .game-card p {
        font-size: 13px;
        margin: 10px 0 18px;
    }

    .icon-container {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .play-button {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .d-flex.desktop-menu {
        gap: 6px !important;
        align-items: center !important;
        display: flex !important;
    }

    .all-games-btn,
    .nav-btn,
    .history-btn {
        padding: 7px 16px !important;
        font-size: 12px !important;
        min-height: 34px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box {
        height: 34px !important;
        min-width: 70px !important;
        padding: 3px 7px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .token-display,
    .tokens-display {
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        font-size: 12px;
    }

    .w-icon-top-h {
        width: 16px;
        height: 16px;
    }

    .token-display,
    .tokens-display {
        font-size: 11px;
        padding: 5px 8px;
    }

    .profile-img,
    .profile-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
        line-height: 30px;
    }
}

/* Breakpoint: 480px - Standard Mobile Phones */
@media screen and (max-width: 480px) {
    .container#latest_games {
        padding-left: 12px;
        padding-right: 12px;
    }

    .title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .games-grid {
        gap: 20px;
        padding: 0 5px;
    }

    .game-card {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .game-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .game-card p {
        font-size: 12px;
        line-height: 1.4;
        margin: 8px 0 15px;
    }

    .icon-container {
        width: 65px;
        height: 65px;
        margin-bottom: 12px;
    }

    .play-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .d-flex.desktop-menu {
        gap: 5px !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        display: flex !important;
    }

    .all-games-btn,
    .nav-btn,
    .history-btn {
        padding: 6px 14px !important;
        font-size: 11px !important;
        min-height: 32px !important;
        height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box {
        height: 32px !important;
        min-width: 65px !important;
        padding: 3px 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .token-display,
    .tokens-display {
        height: 32px !important;
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        font-size: 11px;
    }

    .w-icon-top-h {
        width: 15px;
        height: 15px;
    }

    .token-display,
    .tokens-display {
        font-size: 10px;
        padding: 4px 7px;
    }

    .customer-login span,
    .customer-login p {
        font-size: 11px;
    }

    .user-name {
        font-size: 11px;
    }

    .profile-img,
    .profile-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
        margin-right: 6px;
    }

    .user-dropdown-menu-dropdown {
        min-width: 160px !important;
        max-width: 220px !important;
    }
}

/* Breakpoint: 375px - iPhone SE / Small Phones */
@media screen and (max-width: 375px) {
    .container#latest_games {
        padding-left: 10px;
        padding-right: 10px;
    }

    .title {
        font-size: 1.4rem;
        margin-bottom: 20px;
        letter-spacing: 0;
    }

    .games-grid {
        gap: 20px;
        padding: 0;
    }

    .game-card {
        padding: 18px 12px;
        border-radius: 8px;
    }

    .game-title {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .game-card p {
        font-size: 11px;
        line-height: 1.3;
        margin: 6px 0 12px;
    }

    .icon-container {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .play-button {
        padding: 11px 20px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .d-flex.desktop-menu {
        gap: 4px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        display: flex !important;
    }

    .all-games-btn,
    .nav-btn,
    .history-btn {
        padding: 6px 12px !important;
        font-size: 10px !important;
        min-height: 30px !important;
        height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box {
        height: 30px !important;
        min-width: 60px !important;
        padding: 2px 5px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        margin: 0 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .token-display,
    .tokens-display {
        height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .top-h-box p {
        font-size: 10px;
    }

    .w-icon-top-h {
        width: 14px;
        height: 14px;
    }

    .token-display,
    .tokens-display {
        font-size: 9px;
        padding: 3px 6px;
    }

    .customer-login span,
    .customer-login p {
        font-size: 10px;
    }

    .user-name {
        font-size: 10px;
        display: none;
        /* Hide on very small screens */
    }

    .profile-img,
    .profile-icon {
        width: 26px;
        height: 26px;
        font-size: 14px;
        line-height: 26px;
        margin-right: 4px;
    }

    .header-top {
        gap: 8px;
    }
}

/* Breakpoint: 320px - Very Small Phones */
@media screen and (max-width: 320px) {
    .container#latest_games {
        padding-left: 8px;
        padding-right: 8px;
    }

    .title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .games-grid {
        gap: 20px;
    }

    .game-card {
        padding: 15px 10px;
        border-radius: 6px;
    }

    .game-title {
        font-size: 1.05rem;
        margin-bottom: 5px;
    }

    .game-card p {
        font-size: 10px;
        line-height: 1.25;
        margin: 5px 0 10px;
    }

    .icon-container {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }

    .play-button {
        padding: 10px 18px;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .d-flex.desktop-menu {
        gap: 3px;
        flex-direction: column;
        align-items: stretch;
    }

    .all-games-btn,
    .nav-btn {
        padding: 6px 10px;
        font-size: 9px;
        min-height: 28px;
        width: 100%;
        text-align: center;
    }

    .top-h-box {
        height: 28px !important;
        min-width: 55px !important;
        padding: 2px 4px !important;
    }

    .top-h-box p {
        font-size: 9px;
    }

    .w-icon-top-h {
        width: 12px;
        height: 12px;
    }

    .token-display,
    .tokens-display {
        font-size: 8px;
        padding: 2px 5px;
    }

    .customer-login span,
    .customer-login p {
        font-size: 9px;
    }

    .profile-img,
    .profile-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
        line-height: 24px;
        margin-right: 3px;
    }

    .header-top {
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

    .user-dropdown-menu-dropdown {
        min-width: 140px !important;
        max-width: 180px !important;
    }

    /* Ensure container is fluid on smallest screens */
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Additional fluid improvements for all mobile sizes */
@media screen and (max-width: 767px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }

    /* Ensure images are responsive */
    .game-card img,
    .icon-container img {
        max-width: 100%;
        height: auto;
    }

    /* Improve touch targets for better mobile UX */
    .play-button,
    .all-games-btn,
    .nav-btn,
    .user-trigger {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        touch-action: manipulation;
    }

    /* Smooth transitions for better UX */
    .game-card,
    .play-button,
    .top-h-box {
        transition: all 0.3s ease;
    }
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.profile-img,
.profile-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #5a4bcc !important;
    display: inline-block;
    object-fit: cover;
    margin-right: 8px;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    color: white;
}

a.dropdown-item.custom-dropdown-item span {
    color: white;
    padding: 13px 0px !important;
    font-size: 15px !important;
}

.dropdown-menu.custom-dropdown-menu {
    border-radius: 10px;
    background: var(--color-blue-55, #5a4bcc);
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.35);
}

.user-name {
    font-weight: 500;
    /* text-transform: lowercase; */
    color: white;
}

.custom-dropdown-menu {
    background: #5e5be5;
    border-radius: 15px;
    padding: 15px 10px;
    min-width: 200px;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.custom-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    border-radius: 10px;
    transition: background 0.2s;
}

.custom-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: right;
}

.nav-btn {
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn.active {
    background: linear-gradient(135deg, #4b006e, #6a008f);
    color: #ffffff;
    opacity: 0.9;
}

.nav-btn:hover {
    background-size: 300%;
    color: #ffffff;
}

.tokens-display {
    background-image: -moz-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    background-image: -webkit-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    background-image: -ms-linear-gradient(
        86deg,
        #ec038b 0%,
        #fb6468 44%,
        #fbb936 100%
    );
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.tokens-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.tokens-display span {
    color: #fff;
}

.header__top {
    display: none;
}

.site-logo {
    width: auto;
}

.header__bottom {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(90, 75, 204, 0.502);
}

.header.menu-fixed .header__bottom {
    padding: 15px 0;
}

/* @media (max-width: 480px) {
    .header__top {
    display: block;
}
} */
@media (max-width: 768px) {
    .header__top {
        display: block;
    }

    .header-mobile .header__top {
        position: static;
        z-index: 999;
        background: #070b28;
    }

    .header.menu-fixed .header__top {
        display: block;
    }
}

/*************** Footer ***********/
/* .logo img {
    width: 93rem;

} */
.logo,
.logo a,
.logo img {
    width: 100%;
}

/* css */

.fs-14 {
    font-size: 15px !important;
    padding-bottom: 30px;
}

.footer-left-column-logo-text::after {
    position: absolute;
    content: "";
    top: 0;
    left: auto;
    right: 0;
    width: 1px;
    height: 234px;
    background-color: #ffffff;
    margin-top: 0;
}

@media screen and (max-width: 768px) {
    /* .desktop-menu{
display: none !important;
} */

    .footer-left-column-logo-text::after {
        position: absolute;
        content: "";
        top: 0;
        left: 35.3rem;
        width: 1px;
        height: 306px;
        background-color: #ffffff;
        margin-top: 0;
        display: none !important;
    }
}

.short-links li a {
    padding: 0px 15px;
    font-size: 16px;
}

/*********** Main Balance ***/
.user-info-card__list li .caption {
    margin-right: 15px !important;
    width: 30%;
}

.checkmark img {
    width: 119px;
    height: 119px;
}

.user-info-card__list li .value {
    width: 65%;
    padding-left: 25px;
}

.user-info-card__list .iti {
    width: 100% !important;
}

.iti__country-container {
    margin-top: 1px;
}

/* Wallet Balance Section */
/*.balance-card {
    background: linear-gradient(180deg, #5d35dc 0%, #3828a2 100%);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            margin-top: 20px; 
}*/

.balance-section {
    background-color: #4939c1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.balance-section h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400 !important;
}

.user-action-list li.active a {
    background: #3b26db;
    background: -webkit-linear-gradient(
        to right,
        #ad1f83,
        rgba(108, 0, 146, 0.25),
        rgba(59, 38, 219, 0.001)
    );
    background: linear-gradient(
        to right,
        #ad1f83,
        rgba(108, 0, 146, 0.25),
        rgba(59, 38, 219, 0.001)
    );
    border-color: #ff002a;
}

.balance-display {
    background-color: #2c0341;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid white;
}

.balance-amount {
    display: flex;
    justify-content: space-between;
}

.balance-amount span {
    color: #fff;
    font-size: 24px !important;
    font-weight: 600 !important;
}

.withdrawable-info {
    text-align: center;
    color: #fff;
}

.withdrawable-amount {
    font-size: 18px !important;
    font-weight: 400 !important;
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: var(
        --liner-3,
        linear-gradient(
            89deg,
            var(--color-rose-47, #cc2474) 0%,
            var(--color-red-69, #fb6468) 44%,
            var(--color-orange-60, #fbb936) 100%
        )
    );
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.boder-botttom-bredcrum {
    width: 78%;
    height: 1px;
    background-color: white;
    position: absolute;
}

@media (max-width: 768px) {
    .action-btn {
        background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
        border: none;
        border-radius: 50px;
        padding: 12px 25px;
        color: #fff;
        font-weight: 600;
        display: flex;
        align-items: center;
        font-size: 12px !important;
        gap: 10px;
        transition: all 0.3s;
        width: auto;
    }

    .last-align-list {
        justify-content: flex-start !important;
        padding-left: 6px;
        padding-top: 10px;

        padding-bottom: 12px;
    }

    .inner-hero-section.style--five {
        padding-bottom: 233px !important;
    }

    .md-t-0 {
        margin-top: 0rem !important;
    }
}

.last-align-list {
    justify-content: flex-end;
    height: 100%;
}

/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-custom {
    background: linear-gradient(135deg, #5a4bcc 0%, #5a4bcc 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: white;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

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

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.close-btn:hover {
    opacity: 1;
}

.kyc-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.kyc-icon-inner {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
}

.kyc-card {
    width: 40px;
    height: 25px;
    background: white;
    border-radius: 3px;
    position: relative;
    margin-bottom: 8px;
}

.kyc-card::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 8px;
    background: #ddd;
    border-radius: 2px;
}

.kyc-card::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 3px;
    width: 20px;
    height: 2px;
    background: #ddd;
    border-radius: 1px;
}

.kyc-text {
    color: white;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}

.modal-content-custom h4 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.modal-content-custom p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.start-verification-btn,
.reupload-btn {
    background: linear-gradient(
        88deg,
        var(--color-rose-47, #ec038b) 0%,
        var(--color-red-69, #fb6468) 44%,
        var(--color-orange-60, #fbb936) 100%
    );
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
}

.start-verification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 89, 118, 0.3);
}

/* Document Upload Modal */
.document-modal-content {
    max-width: 800px;
    width: 95%;
    padding: 30px;
}

.document-modal-content h4 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    flex: 1;
}

.form-label {
    color: white;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.custom-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    /* padding: 12px 20px; */
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.custom-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.custom-select option {
    background: #7c3aed;
    color: white;
}

.upload-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    backdrop-filter: blur(10px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.upload-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.upload-text p {
    margin-bottom: 10px;
    font-size: 16px;
    color: white;
}

.browse-link {
    color: #ff9244;
    text-decoration: underline;
    cursor: pointer;
}

.upload-text small {
    display: block;
    opacity: 0.8;
    margin-bottom: 5px;
    font-size: 13px;
    color: white;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    min-width: 150px;
    cursor: pointer;
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
    /* <-- This may also hide the icon */
}

.review-modal {
    background: linear-gradient(135deg, #5a4bcc 0%, #5a4bcc 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    color: white;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
    /* top: 10rem; aligned the popup at center*/
}

.custom-select {
    position: relative;
    padding-right: 3rem;
    /* give space for the arrow */
    background: url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
        no-repeat right 10px center;
    background-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.review-heading {
    font-size: 16px !important;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 89, 118, 0.3);
}

@media (max-width: 768px) {
    .nav-section {
        justify-content: space-between;
    }

    .nav-section.games {
        justify-content: left;
    }

    /*.d-flex .top-h-box {
        margin-right: 20px; 
    }*/

    .form-row,
    .upload-row {
        flex-direction: column;
        gap: 15px;
    }

    ul.user-action-list {
        display: flex;
        overflow: scroll;
        align-items: center;
    }

    .menu-bar-tabs {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .modal-content-custom {
        top: 7rem !important;
    }

    .custom-modal {
        overflow: auto !important;
    }

    .user-action-list li a {
        font-size: 15px !important;
        text-transform: capitalize;
        padding: 12px 30px;
        display: block;
        border-left: 2px solid transparent;
    }

    .modal-content-custom,
    .document-modal-content {
        width: 95%;
        padding: 49px;
    }

    .upload-area {
        min-height: 150px;
        padding: 20px 15px;
    }

    .action-btn {
        background: var(
            --liner-3,
            linear-gradient(
                89deg,
                var(--color-rose-47, #cc2474) 0%,
                var(--color-red-69, #fb6468) 44%,
                var(--color-orange-60, #fbb936) 100%
            )
        );
        border: none;
        border-radius: 50px;
        padding: 11px 25px;
        color: #fff;
        font-weight: 600;
        display: flex;
        align-items: center;
        font-size: 17px !important;
        gap: 12px;
        transition: all 0.3s;
        width: 100%;
        justify-content: center;
        align-content: center;
    }

    .action-buttons {
        display: flex;
        justify-content: flex-start !important;
        gap: 15px;
        margin-top: 20px !important;
        flex-direction: column !important;
    }

    .mt-minus-150 {
        margin-top: -365px !important;
    }
}

.mt-minus-150 {
    margin-top: -207px;
}

/************Transaction History*********/
.all-transaction table td {
    text-align: unset !important;
}

.all-transaction table tr th {
    text-align: unset !important;
}

td.text-white {
    word-break: break-word !important;
    min-width: 360px !important;
    white-space: normal !important;
}

.all-transaction table td span {
    font-size: 16px;
}

.calendar_img {
    background-image: url("{{ asset('assets/icons/calendar.png') }}");
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: 95% 50%;
}

.text_white {
    color: white !important;
}

.all-transaction__header select {
    width: 100%;
    border-radius: 5px;
    padding: 5px 10px;
    height: 50px;
}

.all-transaction__header .date-range {
    width: unset;
    position: relative;
}

.all-transaction__header .title {
    margin-bottom: 0;
}

/******** deposit page**********/
.user-info-card__list li .caption {
    margin-right: 15px !important;
    width: 30%;
}

.user-info-card__list li .value {
    width: 65%;
    padding-left: 25px;
}

.user-info-card__list .iti {
    width: 100% !important;
}

.iti__country-container {
    margin-top: 1px;
}

/* Wallet Balance Section */
/*.balance-card {
     background: linear-gradient(180deg, #5d35dc 0%, #3828a2 100%);
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
} */

.balance-section {
    background-color: rgba(93, 53, 220, 1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.balance-section h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.balance-display {
    background-color: #17133a;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.balance-amount {
    display: flex;
    justify-content: space-between;
}

.balance-amount span {
    color: #fff;
    font-size: 1.75rem;
    font-weight: bold;
}

.withdrawable-info {
    text-align: center;
    color: #fff;
}

.modal-body .position-relative {
    top: -18px;
}

.withdrawable-amount {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.last-align-list {
    justify-content: flex-end;
}

/* Deposit Section Styles */
.deposit-card {
    background: linear-gradient(180deg, #5d35dc 0%, #3828a2 100%);
    border-radius: 10px;
    padding: 25px;
    color: #fff;
}

.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.deposit-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.deposit-logo img {
    height: 40px;
}

.deposit-amount-section {
    background-color: rgba(93, 53, 220, 1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.amount-preset-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.amount-btn {
    background-color: #17133a;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s;
    flex-grow: 1;
    text-align: center;
    min-width: 60px;
}

.amount-btn.active {
    border-color: #ff7e5f;
    background-color: rgba(255, 126, 95, 0.3);
}

.amount-btn:hover {
    background-color: #221b4d;
}

.custom-amount {
    margin-top: 15px;
}

.custom-amount input {
    background-color: #17133a;
    border: none;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    width: 100%;
}

.custom-amount input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.deposit-summary {
    background-color: rgba(93, 53, 220, 1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.2rem;
}

.payment-btn {
    background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s;
    margin-top: 20px;
}

.payment-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.payment-methods {
    margin-bottom: 20px;
    gap: 0;
}

.payment-method-item {
    background-color: #17133a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-item:hover {
    background-color: #221b4d;
}

.payment-method-item.selected {
    border: 2px solid #ff7e5f;
}

.payment-method-logo {
    width: 40px;
    margin-right: 15px;
}

.payment-method-name {
    font-weight: 600;
}

.boder-botttom-bredcrum {
    width: 78%;
    height: 1px;
    background-color: white;
    position: absolute;
}

.modal-body h3 {
    font-size: 1.6rem !important;
    font-size: 20px !important;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .action-btn {
        background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
        border: none;
        border-radius: 50px;
        padding: 12px 25px;
        color: #fff;
        font-weight: 600;
        display: flex;
        align-items: center;
        font-size: 12px !important;
        gap: 10px;
        transition: all 0.3s;
        width: auto;
    }

    .mt-minus-150 {
        margin-top: -365px !important;
    }

    .md-t-0 {
        margin-top: 0rem !important;
    }

    .last-align-list {
        justify-content: flex-start !important;
        padding-left: 6px;
        padding-top: 10px;

        padding-bottom: 12px;
    }

    .desposit-amount-buttons div button {
        font-size: 11px;
    }

    .desposit-amount-buttons div {
        min-width: 46px !important;
        max-width: 54px !important;
    }

    ul.user-action-list {
        display: flex;
        overflow: scroll;
        align-items: center;
    }

    .user-action-list li a {
        font-size: 15px !important;
        text-transform: capitalize;
        padding: 12px 30px;
        display: block;
        border-left: 2px solid transparent;
    }

    .inner-hero-section.style--five {
        padding-bottom: 233px !important;
    }

    .menu-bar-tabs {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .payment-methods {
        gap: 15px;
    }

    .w-237-responsive {
        margin: 0 auto !important;
    }

    .user-card {
        margin-top: 0;
    }
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/*.modal-content {
    box-shadow: none !important;
    background-color: #17133a;
    background-image: url('https://staging.8bmf8.com/public/frontend/assets/images/elements/confirm-deposit.png');
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-position: center;
    background-repeat: no-repeat; 
}*/

.btn-close:focus {
    box-shadow: none;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Glassmorphism effect for the info card */
.modal-body .position-relative {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Button hover effect */
button[onclick="completePayment()"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 89, 118, 0.4) !important;
    transition: all 0.3s ease;
}

.model-close-button {
    right: -24px !important;
    top: -33px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem) !important;
    }

    .mobile-flex-column {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .menu-bar-tabs {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .modal-content {
        border-radius: 20px;
    }

    .modal-body {
        padding: 1.5rem !important;
        padding-top: 50px !important;
    }

    .modal-body .position-relative {
        padding: 5px 20px !important;
    }

    .modal-body h3 {
        font-size: 1.6rem !important;
        font-size: 20px !important;
        text-transform: uppercase;
    }

    .payment-methods {
        gap: 15px;
    }

    .w-237-responsive {
        margin: 0 auto !important;
    }

    .user-card {
        margin-top: 0;
    }
}

/* Animation for modal entrance */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.mt-minus-150 {
    margin-top: -207px;
}

.confirm-payment-icon {
    width: 30px;
    height: 30px;
}

.active-amount {
    background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%) !important;
}

/********* Withdraw page ********/
.user-info-card__list li .caption {
    margin-right: 15px !important;
    width: 30%;
}

.card-mobile-withdrawal {
    width: auto !important;
}

.user-info-card__list li .value {
    width: 65%;
    padding-left: 25px;
}

.user-info-card__list .iti {
    width: 100% !important;
}

.iti__country-container {
    margin-top: 1px;
}

/* withdraw Balance Section */
/* .balance-card {
    background: linear-gradient(180deg, #5d35dc 0%, #3828a2 100%);
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px; 
}*/

.balance-section {
    background-color: rgba(93, 53, 220, 1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.balance-section h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.balance-display {
    background-color: #2c0341;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.balance-amount {
    display: flex;
    justify-content: space-between;
}

.balance-amount span {
    color: #fff;
    font-size: 1.75rem;
    font-weight: bold;
}

.withdrawable-info {
    text-align: center;
    color: #fff;
}

.withdrawable-amount {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.last-align-list {
    justify-content: flex-end;
}

.me-2 span {
    font-size: 14px;
}

img.w-icon {
    width: 50px;
    height: 50px;
    padding: 8px;
}

span.w-heading {
    font-size: 14px !important;
    line-height: 18px;
}

.boder-botttom-bredcrum {
    width: 78%;
    height: 1px;
    background-color: white;
    position: absolute;
}

@media (max-width: 768px) {
    .action-btn {
        background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
        border: none;
        border-radius: 50px;
        padding: 11px 25px;
        color: #fff;
        font-weight: 600;
        display: flex;
        align-items: center;
        font-size: 17px !important;
        gap: 12px;
        transition: all 0.3s;
        width: 100%;
        justify-content: center;
        align-content: center;
    }

    .action-buttons {
        display: flex;
        justify-content: flex-start !important;
        gap: 15px;
        margin-top: 20px !important;
        flex-direction: column !important;
    }

    .card-mobile-withdrawal {
        width: 100% !important;
    }

    .last-align-list {
        justify-content: flex-start !important;
        padding-left: 6px;
        padding-top: 10px;

        padding-bottom: 12px;
    }

    ul.user-action-list {
        display: flex;
        overflow: scroll;
        align-items: center;
    }

    .user-action-list li a {
        font-size: 15px !important;
        text-transform: capitalize;
        padding: 12px 30px;
        display: block;
        border-left: 2px solid transparent;
    }

    .menu-bar-tabs {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .inner-hero-section.style--five {
        padding-bottom: 233px !important;
    }

    .md-t-0 {
        margin-top: 0rem !important;
    }

    .mt-minus-150 {
        margin-top: -365px !important;
    }

    .btn-right button {
        width: 100%;
    }
}

/* .mt-minus-150 {
    margin-top: -207px !important;
} */

/* Change tooltip background and text color */
.tooltip-inner {
    background-color: white !important;
    /* Set your desired background color */
    color: black !important;
    width: 300px !important;
    max-width: 400px !important;
    /* Optional: set text color */
}

/* Optional: Change arrow color to match */
.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-color: #343a40 !important;
}

.card-mobile-withdrawal {
    border: 1px solid #fff !important;
}

span.w-heading {
    font-size: 14px !important;
    line-height: 18px;
    color: white;
}

.dis-icon-box p {
    font-size: 21px;
    color: white;
    font-weight: 600;
}

@media (min-width: 1200px) and (max-width: 1920px) {
    .inner-hero-section.style--five {
        padding-bottom: 150px;
    }

    .dis-icon-box {
        margin-left: 10px !important;
    }

    .card-mobile-withdrawal {
        border: 1px solid #fff !important;
    }

    img.w-icon {
        width: auto !important;
        height: auto !important;
        padding: 0px !important;
    }

    .box-wallet-one {
        width: 192px !important;
        height: 95px !important;
    }

    .box-wallet-two {
        width: 200px !important;
        height: 95px !important;
        margin-left: -2rem;
    }

    .box-wallet-three {
        width: 265px !important;
        margin-left: -55px;
        height: 95px !important;
    }

    .mt-minus-150 {
        margin-top: -207px !important;
    }
}

.inner-hero-section .bg-shape {
    position: absolute;
    left: 0;
    bottom: -5px;
    display: block;
    width: 100%;
}

.bg-shape img {
    width: 100%;
}

.upload-text p {
    word-break: break-word;
    margin: 10px 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

#tab2 .error-message {
    display: block !important;
    color: #ff4757;
    font-size: 12px;
    margin-top: 6px;
    text-align: center;
}

/**********term condition page style****/
.para-section h2 {
    color: #ffffff;
    margin-top: 30px;
    font-size: 1.2em;
    text-transform: uppercase;
}

.para-section .header-info {
    text-align: right;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.para-section p {
    margin: 10px 0;
    text-align: justify;
    color: #c4cbf9;
}

.para-section {
    margin-bottom: 20px;
}

.para-section .subsection {
    margin-left: 20px;
}

.para-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.para-section table,
.para-section th,
.para-section td {
    border: 1px solid #333;
}

.para-section th,
.para-section td {
    padding: 10px;
    text-align: left;
    color: #ffffff;
}

.para-section th {
    background-color: transparent;
}

.para-section ul {
    margin: 10px 0;
    list-style: outside;
    padding-left: 25px;
}

/* .para-section .additional-info {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #333;
} */
.para-section .end-mark {
    text-align: center;
    font-weight: bold;
    margin: 30px 0;
}

.faq-body-wrapper .tab-content {
    display: block !important;
}

.logo-18 {
    width: 150px;
    margin-top: 1rem;
}

/* ============================================
   FOOTER SPACING REDUCTION
   Reduce vertical spacing in footer only
   ============================================ */

/* Override Bootstrap pt-5 (3rem = 48px) to 1.5rem (24px) for first footer container */
footer.footer-section .container.pt-5 {
    padding-top: 1.5rem !important;
    /* 24px instead of 48px */
}

/* Override Bootstrap mt-5 (3rem = 48px) to 1.5rem (24px) for second footer container */
footer.footer-section .container.mt-5 {
    margin-top: 1.5rem !important;
    /* 24px instead of 48px */
}

/* Reduce vertical spacing between internal footer blocks */
/* Override Bootstrap my-5 (3rem top/bottom = 48px) to 1rem (16px) for license text row */
footer.footer-section .container.mt-5 .row.my-5 {
    margin-top: 1rem !important;
    /* 16px instead of 48px */
    margin-bottom: 1rem !important;
    /* 16px instead of 48px */
}

/* Override Bootstrap py-5 (3rem top/bottom = 48px) to 1.5rem (24px) for copyright row */
footer.footer-section .row.py-5 {
    padding-top: 1.5rem !important;
    /* 24px instead of 48px */
    padding-bottom: 1.5rem !important;
    /* 24px instead of 48px */
}

/* ============================================
   REGISTER PAGE LAYOUT
   Full-page register screen styling
   ============================================ */

.register-page {
    /* push whole content down so it clears the fixed header */
    /* padding-top: 8.5rem !important; */
    /* ~120px from top */
    /* padding-bottom: 0rem; */
    /* space before footer */
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    /* padding-left: 1.5rem; */
    /* padding-right: 1.5rem; */
    background: #0f0232;
    /* same as site background */
    align-items: center;
}

.register-card-wrapper {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.register-page-wrapper {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    /* no top margin here, spacing handled by .register-page */
}

.register-card-wrapper .signup-container {
    width: 100%;
    margin: 0 auto;
    transform: none;
    max-height: none;
    padding: 2rem 2.5rem;
    /* 32px top/bottom, 40px left/right */
    border-radius: inherit;
}

/* Card header spacing */
.register-card-wrapper .signup-container .title {
    margin-bottom: 0.5rem;
    /* 8px under WELCOME */
}

.register-card-wrapper .signup-container .subtitle {
    margin-bottom: 1rem;
    /* 16px before progress bar */
}

.register-card-wrapper .signup-container #registerStatusMessage {
    margin-bottom: 1rem;
}

.register-card-wrapper .signup-container .progress-bar {
    margin-bottom: 1rem;
    /* 16px before tabs */
}

.register-card-wrapper .signup-container .tabs {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    /* 24px before first form row */
}

/* Form layout improvements */
.register-card-wrapper .signup-container #signupForm .form-row {
    display: flex;
    gap: 1rem;
    /* 16px between columns */
    margin-bottom: 1.25rem;
    /* 20px between rows */
}

.register-card-wrapper .signup-container #signupForm .form-group {
    margin-bottom: 0;
    /* Remove default margin, use form-row spacing */
}

.register-card-wrapper .signup-container #signupForm .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    /* 6–7px between label and input */
}

/* CTA button spacing */
.register-card-wrapper .signup-container #signupForm .btn-right {
    margin-top: 1.75rem;
    /* 28px above CONTINUE button */
    text-align: right;
}

.register-card-wrapper .signup-container #signupForm .form-row .btn-center {
    margin-top: 1.75rem;
    /* 28px above REGISTER/VERIFY buttons */
}

/* .register-card-wrapper .signup-container #signupForm .btn-primary,
.register-card-wrapper .signup-container #signupForm .btn-secondary {
    min-width: 10rem;
    min-height: 2.75rem;
} */

/* Error/validation spacing */
.register-card-wrapper .signup-container #signupForm .error-message {
    margin-top: 0.25rem;
    /* 4px between field and error text */
}

.register-card-wrapper .signup-container #signupForm .tooltip {
    margin-top: 0.25rem;
}

/* Checkbox group spacing */
.register-card-wrapper .signup-container #signupForm .checkbox-group {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* OTP input group spacing */
.register-card-wrapper .signup-container #signupForm .otp-input-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .register-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .register-page-wrapper {
        margin: 0 auto;
        /* no top margin, spacing handled by .register-page */
    }

    .register-card-wrapper .signup-container {
        padding: 1.5rem;
        /* 24px all around on mobile */
    }

    .register-card-wrapper .signup-container #signupForm .form-row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .register-card-wrapper .signup-container #signupForm .btn-primary,
    .register-card-wrapper .signup-container #signupForm .btn-secondary {
        width: 100%;
        /* full-width button on mobile */
    }

    .register-card-wrapper .signup-container #signupForm .btn-right {
        text-align: center;
    }

    .register-card-wrapper .signup-container #signupForm .form-row .btn-center {
        width: 100%;
    }
}

/* ============================================
   LOGIN PAGE LAYOUT
   Full-page login screen styling
   ============================================ */

.login-page {
    /* push whole content down so it clears the fixed header */
    /* padding-top: 8.5rem !important; */
    /* ~120px from top */
    /* padding-bottom: 0rem; */
    /* space before footer */
    /* min-height: 100vh; */
    display: flex;
    justify-content: center;
    /* padding-left: 1.5rem; */
    /* padding-right: 1.5rem; */
    background: #0f0232;
    /* same as site background */
    align-items: center;
}

.login-page-wrapper {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    /* no top margin here, spacing handled by .login-page */
}

.login-page-wrapper .login-container {
    width: 100%;
    margin: 0 auto;
    transform: none;
    max-height: none;
}

@media (max-width: 768px) {
    .login-page {
        /* padding-top: 6rem !important; ~96px from top on mobile */
        padding-bottom: 0rem;
        /* space before footer on mobile */
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .login-page-wrapper {
        margin: 0 auto;
        /* no top margin, spacing handled by .login-page */
    }

    .login-page-wrapper .login-container {
        padding: 32px 24px;
    }

    .footer-section .discription {
        text-align: center;
    }
}

.custom-select-dropdown .dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-select-dropdown .dropdown-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-select-dropdown .country-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    flex-shrink: 0;
}

.custom-select-dropdown .country-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.custom-select-dropdown .country-name {
    flex: 1;
}

.custom-select-dropdown .country-phone-code {
    color: #888;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: auto;
    flex-shrink: 0;
}

/*************/
.all-transaction__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    padding: 0 20px;
}

.all-transaction__header .title {
    font-size: 1.5rem;
}

.all-transaction__header .date-range {
    margin-top: 0px;
}

.filter-section {
    margin-bottom: 0.5rem;
    width: 100%;
    align-items: center;
}

.filter-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.all-transaction__header .btn-outline-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.collapse-icon {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

[aria-expanded="false"] .collapse-icon {
    transform: rotate(-90deg);
}

[aria-expanded="true"] .collapse-icon {
    transform: rotate(0deg);
}

.game-card--live .game-card-badge,
.scratch-card--live .scratch-card-badge {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }
}

/* ============================================
   INTERNAL PAGE LAYOUT FIXES
   Remove hero completely and fix content spacing
   ============================================ */
.is-internal .inner-hero-section {
    display: none !important;
}

/* Neutralize negative margin and set consistent top padding */
/* 130px accounts for the fixed header + desired top gap */
.is-internal .mt-minus-150 {
    margin-top: 0 !important;
    padding-top: 130px !important;
}

/* Ensure mobile responsiveness */
@media (max-width: 768px) {
    .is-internal .mt-minus-150 {
        padding-top: 100px !important;
        /* Smaller gap on mobile */
    }

    /* Ensure user section containers don't have conflicting padding */
    .is-internal .user-section,
    .is-internal .pb-120 {
        padding-top: 0 !important;
    }
    .payment-details{
        gap: 20px;
    }
}

/* ============================================
   INLINE STYLE REFACTORING
   ============================================ */

/* Layout & Backgrounds */
.page-body-bg {
    background: #deddd2;
}

/* Components */
.user-profile-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.header-desktop-menu {
    justify-content: flex-end;
    gap: 13px;
    align-items: center;
}

/* Wallet Balance Box */
.wallet-balance-box {
    background-color: #2c0341;
    border-radius: 8px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    border: 1px solid #d2d5fc;
}

/* Forms */
.mobile-input-wrapper {
    width: 65%;
}

/* Conflict removed - handled by grid styles */

/* Loaders */
.btn-loader-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.spinner-svg {
    animation: spin 1s linear infinite;
    width: 16px;
    height: 16px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Cookies Banner */
.cookies-eu-banner {
    background: #cc2474;
    color: #fff;
    padding: 6px;
    font-size: 13px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.cookies-eu-banner button,
.cookies-eu-banner a {
    text-decoration: none;
    background: #fff;
    color: #cc2474;
    border: 1px solid #fff;
    cursor: pointer;
    padding: 4px 7px;
    margin: 2px 0;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.07s, color 0.07s, border-color 0.07s;
}

.cookies-eu-banner button:hover,
.cookies-eu-banner a:hover {
    background: #fff;
    color: #0f0233;
}

.cookies-hidden {
    display: none;
}

/* Typography */
.site-title-large {
    font-size: 2rem;
}

/* Dashboard Styles Inherited from Blade */
.user-info-card__list li .caption {
    margin-right: 15px !important;
    width: 30%;
}

.user-info-card__list li .value {
    width: 65%;
    padding-left: 25px;
}

.user-info-card .iti {
    width: 100% !important;
    display: block;
    /* Ensure it behaves as a block in the grid */
}

.user-info-card .iti input {
    height: 48px !important;
    width: 100% !important;
}

.user-info-card .select-wrap {
    display: none;
}

.user-info-card.is-editing .select-wrap {
    display: block;
}

.iti__country-container {
    margin-top: 1px;
}

/* Personal Information 2-Column Grid */
.personal-info-grid {
    margin-top: 30px;
}

.pi-row {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    /* Tighter row spacing */
}

.pi-col {
    flex: 1;
    min-width: 0;
}

.pi-col .value.input_fields {
    width: 100% !important;
    margin: 0;
    padding: 12px 15px;
    /* Force consistent padding */
    height: 48px;
    line-height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.pi-col .caption {
    display: block;
    margin-bottom: 4px;
    /* Tighter label-to-input spacing */
    width: 100% !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    /* Slightly smaller for elegance */
}

.pi-col .value.span_fields {
    display: block;
    width: 100% !important;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-height: 48px;
    height: 48px;
    color: #fff;
    box-sizing: border-box;
    border: 1px solid transparent;
    /* Match input border for alignment */
    line-height: 24px;
    /* Ensure vertical center overlap */
}

@media (max-width: 767px) {
    .pi-row {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
}

/* Mobile Input Wrapper Override */
.user-info-card .mobile-input-wrapper {
    margin: 0 !important;
    padding: 0 0px !important;
    width: 100% !important;
}

.user-info-card .iti {
    width: 100% !important;
    display: block;
    /* position: relative !important; */
    height: 48px !important;
}

.user-info-card .iti input,
.user-info-card .mobile-input-value {
    padding-left: 52px !important;
    height: 48px !important;
    line-height: 24px !important;
    box-sizing: border-box;
}

/* Ensure flag container alignment */
.user-info-card .iti__flag-container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Dropdown Arrow Fix */
.select-wrap {
    position: relative;
    width: 100%;
}

.user-info-card .select-wrap:after {
    display: none;
}

.user-info-card.is-editing .select-wrap:after {
    display: block;
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 15px !important;
    /* Fix missing left padding */
    padding-right: 40px !important;
    /* Space for arrow */
}

.select-wrap:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.7);
    z-index: 5;
}

/* Date Picker Indicator Fix */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* Make it visible on dark backgrounds */
    opacity: 0.8;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.is-editing input[type="date"]::-webkit-calendar-picker-indicator {
    visibility: visible;
}

/* Hide native picker indicator when not editing if parent doesn't hide input */
input[type="date"]::-webkit-calendar-picker-indicator {
    visibility: hidden;
}

.is-editing input[type="date"]::-webkit-calendar-picker-indicator {
    visibility: visible;
}

input[type="date"] {
    position: relative;
}

/* ========================================================================== 
   MOBILE RESPONSIVENESS PATCH (< 992px ONLY)
   ========================================================================== */

:root {
    --mobile-header-offset: 80px;
}

/* TARGETING <= 991px (TABLET/MOBILE LANDSCAPE) */
@media (max-width: 991px) {
    /* A) Header & Top Nav */
    .header-desktop,
    .header-mobile,
    .header__bottom {
        flex-wrap: wrap !important;
    }

    .navContainer {
        max-width: 100%;
    }

    .mobHeader {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 15px !important;
    }

    .header-mobile .logo {
        max-width: 120px;
    }

    .header-mobile .user__account {
        margin-left: auto;
    }

    /* B) Tabs & Navigation */
    .user-action-list {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        padding: 10px 5px !important;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .user-action-list::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .user-action-list li {
        flex: 0 0 auto;
        margin: 0 !important;
    }

    .user-action-list li a {
        padding: 10px 20px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* E) Global Spacing */
    .mt-minus-150 {
        margin-top: 0 !important;
    }

    .internal-page-wrap {
        /* padding-top: var(--mobile-header-offset) !important; */
        margin-top: 0 !important;
    }

    /* F) Forms */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .personal-info-grid .pi-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* TARGETING <= 767px (LARGE PHONES) */
@media (max-width: 767px) {
    .header__top {
        display: none !important;
        /* Move balance to mobile header if needed, but per inventory it is sometimes there */
    }

    .all-transaction__header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    .all-transaction__header .title {
        width: 100% !important;
    }

    .date-range {
        width: 100% !important;
    }
}

/* TARGETING <= 480px (SMALL PHONES) */
@media (max-width: 480px) {
    /* A) Header 2-Row Layout */
    .mobHeader {
        flex-wrap: wrap;
    }

    .mobHeader .logo {
        flex: 0 0 auto;
    }

    .mobHeader .navTrigger {
        order: 3;
    }

    .mobHeader .user__account {
        order: 2;
        margin-left: auto;
    }

    /* C) FAQ & Category Buttons */
    .cmn-tabs {
        flex-direction: column !important;
        gap: 10px;
    }

    .cmn-tabs li {
        width: 100%;
    }

    .cmn-tabs .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px !important;
    }

    /* Cookie Banner */
    .cookies-eu-banner {
        flex-direction: column !important;
        text-align: center;
        padding: 20px !important;
    }

    .cookies-eu-banner button,
    .cookies-eu-banner a {
        width: 100% !important;
        margin: 5px 0 !important;
    }

    /* Forms Adjustments */
    .login-container,
    .signup-container {
        padding: 20px 15px !important;
    }

    .login-page-wrapper,
    .register-page-wrapper {
        padding: 10px !important;
    }
}

/* ==========================================================================
   Inline CSS replacement utilities
   ========================================================================== */

.card-gradient-wrapper {
    background: linear-gradient(180deg, #5d35dc 0%, #3828a2 100%);
    border-radius: 15px;
}

.dark-panel-8 {
    background-color: #2c0341;
    border-radius: 8px;
}

.dark-panel-10 {
    background-color: #2c0341;
    border-radius: 10px;
}

.form-floating,
.dark-panel-10 {
    margin: 10px 0 0 0;
}

.amount-btn-base {
    background-color: #2c0341;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.amount-btn-base.active-amount {
    background-color: #fbb936 !important;
    color: #17133a !important;
}

.amount-box {
    min-width: 60px;
    max-width: 80px;
}

.cta-gradient-btn {
    background: linear-gradient(90deg, #ff5976 0%, #ff9244 100%);
    box-shadow: 0 8px 25px rgba(255, 89, 118, 0.3);
    width: 100%;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 15px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    color: #fff;
}

.cta-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 89, 118, 0.4);
}

.cta-gradient-btn:active {
    transform: translateY(0);
}

.glass-chip {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 13px 25px;
    backdrop-filter: blur(10px);
}

.icon-30 {
    width: 30px !important;
    height: 30px !important;
}

.icon-40 {
    width: 40px !important;
    height: 40px !important;
}

.icon-50 {
    width: 50px !important;
    height: 50px !important;
}

.z-10 {
    z-index: 10 !important;
}

.w-237-responsive {
    width: 100%;
    max-width: 237px;
}

.modal-w-365 {
    max-width: 365px !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Border Helpers */
.border-white {
    border: 1px solid #fff !important;
}

.border-white-20 {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.border-white-30 {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Background Helpers */
.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-dark-panel {
    background-color: #2c0341 !important;
}

/* Spacing Helpers */
.pt-20 {
    padding-top: 20px !important;
}

.h-60 {
    height: 60px !important;
}

.gap-14 {
    gap: 14px !important;
}

/* Divider Helper */
.divider-h-30 {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.dashed-panel {
    background-color: rgba(23, 19, 58, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.w-184-responsive {
    width: 100%;
    max-width: 184px;
}

.w-100-imp {
    max-width: 100% !important;
}

.btn-icon-img {
    width: 30px !important;
    height: 30px !important;
}

/* Transaction Table Refinement */
.tx-table-wrapper {
    position: relative;
    height: 600px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 19, 58, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.tx-loading-overlay.show {
    visibility: visible;
    opacity: 1;
}

.tx-loading-text {
    color: #fff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tx-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding-bottom: 40px;
}

.tx-page-btn {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.tx-page-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tx-page-btn.active {
    background: var(
        --liner-3,
        linear-gradient(89deg, #cc2474 0%, #fb6468 44%, #fbb936 100%)
    );
    border: none;
}

.tx-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-type-select {
    width: 100%;
    max-width: 160px;
}

.date-range-wrap {
    width: 100%;
    max-width: 235px;
    position: relative;
}

.tx-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.all-transaction__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: nowrap;
}

.btn-icon-sq {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .all-transaction__header {
        flex-wrap: wrap;
    }

    .tx-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .filter-type-select,
    .date-range-wrap {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Typography Helpers */
.text-11 {
    font-size: 0.6875rem !important;
}

.text-13 {
    font-size: 0.8125rem !important;
}

.text-14 {
    font-size: 0.875rem !important;
}

.text-16 {
    font-size: 1rem !important;
}

.text-18 {
    font-size: 1.125rem !important;
}

/* 1.1rem approx */
.text-21 {
    font-size: 1.3125rem !important;
}

/* 1.3rem approx */
.text-22 {
    font-size: 1.375rem !important;
}

/* 1.4rem approx */
.text-26 {
    font-size: 1.625rem !important;
}

/* 1.6rem approx */
.text-32 {
    font-size: 2rem !important;
}

/* Datepicker Fix */
.datepicker--container {
    z-index: 9999 !important;
}

/* Datepicker Calendar Alignment Fix */
.datepickers-container {
    z-index: 9999 !important;
}

.datepicker {
    z-index: 10000 !important;
}

/* Ensure date-range wrapper has proper positioning context */
.date-range {
    position: relative;
}

/* Calendar icon positioning */
.date-range-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    transition: color 0.2s ease;
}

.date-range-icon:hover {
    color: #fbb936;
}

/* Fix datepicker position to align below input with minimal spacing */
.datepicker.-bottom-left-,
.datepicker.-bottom-right- {
    margin-top: 8px !important;
}

/* Ensure datepicker aligns to the right side near the icon */
.datepicker.-bottom-right- {
    transform: translateX(0) !important;
}

/* Remove any extra spacing from datepicker container */
.datepicker--content {
    margin: 0 !important;
}

/* Ensure calendar icon doesn't interfere with input text */
.date-range input.calendar_img {
    padding-right: 45px !important;
}

/* ============================================
   P1 CLEANUP - Status Color Utilities
   ============================================ */

/* Transaction status colors - replaces inline styles */
.status-success {
    color: #22b868 !important;
}

.status-pending,
.status-failed,
.status-rejected {
    color: #ff5976 !important;
}

.status-approved {
    color: #22b868 !important;
}

/* Wallet transaction status colors - LNTO-209 */
.tx-status {
    font-weight: 500;
}

.tx-status--approved,
.tx-status--completed {
    color: #22b868 !important;
}

.tx-status--pending {
    color: #fbb936 !important;
}

.tx-status--failed,
.tx-status--rejected,
.tx-status--cancelled {
    color: #ff5976 !important;
}

/*register page country selection note*/
.country-restriction-notice {
    font-size: 12px;
    color: #ccc;
    padding: 5px;
}

.header-mobile-container {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mob-top-row {
    justify-content: space-between !important;
}

.mob-register-pill,
.mob-login-pill {
    padding: 7px 25px !important;
}

/***************login page style***********/
/* Login Button */
.login-btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 1px solid #3a3a3a;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.login-container .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.popup-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background: #2a2a2a;
    border-radius: 16px;
    padding: 40px;
    width: 96%;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s ease;
    margin: 20px;
}

.popup-overlay.show .login-container {
    transform: scale(1) translateY(0);
}

.login-container .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-container .close-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

.login-container .title {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 600;
}

.login-container .subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 32px;
    font-size: 16px;
}

.login-container .form-group {
    margin-bottom: 15px;
}

.login-container label {
    display: block;
    margin-bottom: 0px;
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
}

.login-container .required {
    color: #ff6b35;
    line-height: normal;
}

.login-container input[type="email"],
.login-container input[type="password"],
.login-container input[type="text"] {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus,
.login-container input[type="text"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.login-container input::placeholder {
    color: #666;
}

.login-container .password-container {
    position: relative;
}

.login-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.login-container .password-toggle:hover {
    color: #ff6b35;
}

.login-container .forgot-password {
    text-align: right;
    margin-bottom: 24px;
}

.login-container .forgot-password a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.login-container .forgot-password a:hover {
    color: #f7931e;
    text-decoration: underline;
}

.login-container .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 0;
}

.login-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ff6b35;
}

.login-container .checkbox-item {
    display: flex;
    gap: 10px;
}

.login-container .checkbox-label {
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    margin-bottom: 0;
}

.login-container .btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.login-container .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login-container .divider {
    text-align: center;
    margin: 10px 0;
    position: relative;
    color: #666;
    font-size: 14px;
}

.login-container .divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #3a3a3a;
    z-index: 1;
}

.login-container .divider span {
    background: #2a2a2a;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.login-container .social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.login-container .social-btn {
    flex: 1;
    padding: 12px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.login-container .social-btn:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

.login-container .signup-link {
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.login-container .signup-link a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.login-container .signup-link a:hover {
    text-decoration: underline;
}

.login-container .error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 6px;
}

.login-container .success-message {
    color: #2ed573;
    font-size: 12px;
    margin-top: 6px;
}

/* Demo content styling */
.login-container .demo-content {
    text-align: center;
}

.login-container .demo-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-container .demo-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 10px;
    }

    .login-container .social-login {
        flex-direction: column;
    }

    .login-container .demo-content h1 {
        font-size: 32px;
    }
    .payment-details{
        gap: 20px;
    }
}

.btn-w button {
    width: 100%;
}
span.header-tokens-mob,
span.header-main-balance-mob,
.mob-wallet-pill span {
    font-size: 12px !important;
}

.register-page .checkbox-item{
    display: flex;
    gap: 10px;
}