@media (max-width: 768px) {
    .wrapper {
        width: 1100px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .sidebar {
        display: none;
    }

    /* ✅ FIX: Full-screen cascasino games on mobile/tablet */
    .slot-iframe {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important; /* ✅ Extremely high z-index */
        background: #000;
    }

    .slot-iframe.show {
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important;
    }

    .slot-iframe iframe {
        width: 100% !important;
        height: calc(100% - 45px) !important; /* Header space */
        border: 0 !important;
    }

    .slot-iframe .slot-header {
        height: 45px !important;
        min-height: 45px !important;
        padding: 8px 10px !important;
        flex-shrink: 0;
    }

    .slot-iframe .title h4 {
        font-size: 14px !important;
        margin: 0 !important;
        line-height: 1.2;
    }

    .close-slot-frame {
        font-size: 14px !important;
        padding: 5px 12px !important;
        background: #dc3545;
        border-radius: 4px;
        color: #fff !important;
        font-weight: bold;
        cursor: pointer;
    }

    .pagination>li>a {
        border: 1px solid var(--grey-color);
        padding: 7px 13px;
        outline: none;
        cursor: pointer;
        color: var(--grey-color);
    }

    .support-detail {
        width: 100%;
        margin-top: 15px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .footer-links,
    .support-detail,
    .social-icons-box {
        flex: unset;
    }

    .footer-links {
        width: 100%;
        text-align: center;
    }

    .footer-links ul {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-links ul li {
        width: 50%;
    }

    .social-icons-box {
        width: 100%;
        justify-content: center;
        position: unset;
        margin-top: 15px;
    }

    /* Dashboard home (strips under tab) — 2px side inset, mobile only */
    .home-page {
        margin-left: 2px;
        margin-right: 2px;
        box-sizing: border-box;
    }

    .secure-logo {
        width: 100%;
    }

    .secure-logo~div {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .footer-links .nav-link {
        padding: 3px;
        text-decoration: underline;
        font-size: 12px;
    }

    .footer-text {
        margin-top: 5px;
        font-size: 12px;
    }

    .modal-body .card32b .col-12 {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        padding: 5px;
    }

    .cmertercard {
        width: 23px !important;
    }

    .placebet-run {
        position: absolute;
        width: 100%;
        text-align: center;
        margin-top: 75px;
        top: 0;
    }

    .placebet-run img {
        width: 50px;
    }

    .clspwidth p {
        width: 50px;
    }

    .cc-banner-ball img {
        width: 24px !important;
        margin-right: 5px !important;
    }

    .cc-banner-ball {
        position: absolute;
        top: 157px !important;
        width: 100%;
        text-align: center;
    }

    .cc-banner-container-inner {
        height: 110px !important;
    }

    .cc-banner-container {
        background-color: rgba(0, 0, 0, 0.4);
        position: absolute;
        width: 80% !important;
        height: 110px !important;
        display: flex;
        justify-content: center;
        left: 11% !important;
        top: 9% !important;
        color: #fff;
    }

    .video-tv-popup {
        position: absolute;
        top: 0;
        width: 100%;
    }

    .video-tv-popup .img-fluid {
        max-width: 74%;
        height: 250px;
    }

    .cc-banner-container h4 {
        font-size: 15px !important;
    }

    .cc-banner-container h5 {
        font-size: 12px !important;
        margin-bottom: 0px !important;
    }

    .cc-banner-container span {
        font-family: Digital;
        font-weight: bold;
        font-size: 13px !important;
        line-height: 16px !important;
    }

    .modal-body .card32b .col-12 h4 {
        margin-bottom: 0px;
        font-size: 16px;
        margin-right: 20px;
    }

    .modal-body .card32b .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .modal-body .card32 .col-12 {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        padding: 5px;
    }

    .modal-body .card32 .col-12 h4 {
        margin-bottom: 0px;
        font-size: 16px;
        margin-right: 20px;
    }

    .modal-body .card32 .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .videoCards img {
        width: 23px !important;
    }

    .opentp .eightplayer {
        width: 100%;
    }

    .opentp .eightplayer .row {
        padding: 0px;
        margin: 0px;
    }

    .opentp .eightplayer .row .sixplayer-image {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 5px;
    }

    .opentp .eightplayer .row .sixplayer-image h4 {
        font-size: 14px;
        margin-right: 10px;
        margin-left: 20px;
    }

    .card-dtl-mobile {
        width: 100%;
        margin-bottom: 2px !important;
        margin-top: 2px !important;
    }

    .superover .suspended::after {
        width: 80% !important;
    }

    .superover .fancy-tripple .suspended::after {
        width: 40% !important;
    }

    .fancy-tripple-box .suspended::after {
        width: 40% !important;
    }

    .fancy-market .fancy-tripple.suspended::after {
        width: 40% !important;
    }

    .fivewicket .fancy-tripple .suspended::after {
        width: 40% !important;
    }

    .fancy-market .box-6 {
        width: 60%;
        min-width: 60%;
        max-width: 60%;
    }

    .fivewicket .clock2digit {
        bottom: 45px;
    }

    .Superover .clock2digit {
        bottom: 68px;
    }

    .casinoicons .new-launch-casino {
        -webkit-animation: NAME-YOUR-ANIMATION 1s infinite;
        -moz-animation: NAME-YOUR-ANIMATION 1s infinite;
        -o-animation: NAME-YOUR-ANIMATION 1s infinite;
        animation: NAME-YOUR-ANIMATION 1s infinite;
        position: absolute;
        left: 63%;
        top: -15px;
        padding: 5px;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: normal;
        color: #fff;
        font-size: 11px;
    }

    @keyframes NAME-YOUR-ANIMATION {

        0%,
        49% {
            background-color: rgba(215, 43, 43, 0.8);
        }

        50%,
        100% {
            background-color: rgba(0, 15, 255, 0.8);
        }
    }

    .mobilescorcard {
        display: flex;
        padding-left: 24px;
    }

    .mobile-flex {
        display: flex;
        justify-content: space-between;
        padding-left: 10px;
    }

    .mobile-flex span {
        padding: 0px;
        white-space: nowrap;
    }

    .mobile-flex p span:nth-child(1) {
        margin-right: 10px;
    }

    .hands-pattern-container .nav-tabs .nav-item {
        width: 49%;
        background-color: var(--theme1-bg);
    }

    .hands-pattern-container .nav-tabs .nav-link {
        background-color: var(--theme2-bg);
        color: #fff;
    }

    .meter-content img {
        width: 30px;
    }

    .col12p10 {
        padding: 0px 10px;
    }

    .meter-content .col-lg-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hands-pattern-container .bt-action {
        text-align: left;
    }

    .hands-pattern-container .patern-name {
        width: 100%;
    }

    .hands-pattern-container .point {
        float: none;
        text-align: left;
        font-weight: bold;
        font-size: 16px;
        margin-top: 10px;
        display: inline-block;
    }

    .hands-pattern-container .min-max {
        font-size: 11px;
        float: none;
    }

    .search {
        display: flex;
        align-items: center;
    }

    .casino-video-title {
        display: none !important;
    }

    .lucky7card {
        margin-right: 3px;
    }

    .card32 .videoCards img {
        width: 22px !important;
    }

    .card32 .videoCards span {
        font-size: 12px;
    }

    .queen .videoCards img {
        width: 22px !important;
    }

    .queen .videoCards span {
        font-size: 12px;
    }

    .baccarat .player-card img {
        height: 15px;
        margin-top: 5px;
    }

    .baccarat .bet-odds {
        font-size: 11px !important;
    }

    .casino-name {
        background-image: linear-gradient(var(--theme1-bg), var(--theme2-bg));
        color: var(--primary-color);
        padding: 2px;
        position: absolute;
        width: 100%;
        bottom: -15px;
        text-align: center;
        text-transform: uppercase;
        font-weight: bold;
        border-radius: 4px;
        font-size: 8px;
    }

    footer p {
        display: flex;
        align-items: center;
        font-size: 12px;
        justify-content: center;
    }

    .video-overlay img {
        width: 24px !important;
        height: auto;
        margin-right: 2px;
        margin-left: 2px;
    }

    .hidemob {
        display: none !important;
    }

    .ball-runs {
        height: 25px;
        width: 25px;
        font-size: 12px;
        line-height: 25px;
    }

    .aaa-content {
        background-color: #eee;
        padding: 10px !important;
    }

    .result-image img,
    .player-type img,
    .sixplayer-image img,
    .andar-bahar-image {
        width: 35px;
    }

    .logo img {
        height: 55px;
    }

    .card-seven img {
        width: 30px !important;
        cursor: pointer;
    }

    /* Grid: col1 = home+logo, col2 = top ul (account row) to the right of logo; row2 = full-width marquee */
    .header-top {
        min-height: 60px;
        height: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 4px;
        padding-left: 5px;
    }

    .header-top .flex05:first-child {
        display: flex;
        align-items: center;
        gap: 8px;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    /* Flatten stack so ul + marquee are grid children of .header-top */
    .header-top .profile-right-stack {
        display: contents;
    }

    .header-top ul.profile-right-side.profile-right-side__top {
        grid-column: 2;
        grid-row: 1;
        margin-left: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: flex-end;
        align-self: center;
    }

    .header-top ul {
        padding-top: 0px;
    }

    .t-underline {
        font-weight: normal;
    }

    .header-mobile-account__stack {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .header-mobile-account__balance-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    .header-mobile-account__bank-icon {
        color: #2dd4bf;
        font-size: 15px;
    }

    .header-mobile-account__balance-val {
        color: var(--primary-color);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
    }

    .header-mobile-account__meta-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-mobile-account__exp {
        color: var(--primary-color);
        font-size: 13px;
        text-decoration: underline;
        white-space: nowrap;
    }

    .header-mobile-account__exp b {
        font-weight: 700;
    }

    .header-mobile-account__user {
        color: var(--primary-color);
        text-decoration: underline !important;
        width: auto !important;
        max-width: 100%;
        margin-top: 0 !important;
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        justify-content: flex-end;
        cursor: pointer;
    }

    .header-mobile-account__user i {
        font-size: 11px;
    }

    .profile-section {
        width: 100%;
        display: flex;
        justify-content: end;
        margin-top: 5px;
        align-items: center;
    }

    .profile-section i {
        font-size: 11px;
    }

    .profile-right-side {
        align-items: center;
    }

    .header .header-promo-marquee.marqueeN {
        font-size: 13px;
        padding: 4px 0 2px;
    }

    .header .header-promo-marquee.marqueeN p {
        animation: marquee 32s linear infinite;
    }

    .header-top .profile-right-stack > .header-promo-marquee.marqueeN p,
    .header-marquee-search-row > .header-promo-marquee.marqueeN p {
        padding-top: 8px;
    }

    /* Mobile: search icon + expanding pill (L→R) in same row as marquee — desktop unchanged */
    .header-marquee-search-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding-right: 6px;
    }

    .header-top .profile-right-stack > .header-promo-marquee.marqueeN {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
    }

    .header-mobile-marquee-search {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 0 0 auto;
        gap: 0;
        min-height: 40px;
    }

    .header-mobile-marquee-search__fab {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fff;
        color: #111 !important;
        text-decoration: none;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    }

    .header-mobile-marquee-search__fab .fa-search-plus {
        font-size: 18px;
        line-height: 1;
        color: #111 !important;
        font-weight: 900;
        -webkit-text-fill-color: #111;
    }

    .header-mobile-marquee-search__pill {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 0 1 auto;
        max-width: 0;
        min-width: 0;
        overflow: hidden;
        background: #fff;
        border-radius: 999px;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
        opacity: 0;
        pointer-events: none;
        transition:
            max-width 0.38s ease,
            opacity 0.22s ease;
    }

    .header-mobile-marquee-search:not(.header-mobile-marquee-search--open) .header-mobile-marquee-search__ac .MuiInputBase-input {
        pointer-events: none !important;
    }

    .header-mobile-marquee-search--open .header-mobile-marquee-search__pill {
        max-width: min(440px, calc(100vw - 72px));
        opacity: 1;
        pointer-events: auto;
    }

    .header-mobile-marquee-search--open .header-mobile-marquee-search__input-shell {
        flex: 1 1 auto;
        min-width: min(300px, 58vw);
    }

    .header-mobile-marquee-search__input-shell {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .header-mobile-marquee-search__close {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        color: #111;
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .header-mobile-marquee-search__close .fa-times {
        font-size: 16px;
    }

    .header-mobile-marquee-search__ac.MuiAutocomplete-root {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        margin: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .header-mobile-marquee-search__ac.MuiAutocomplete-root .MuiFormControl-root {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }

    .header-mobile-marquee-search__pill .MuiFilledInput-root {
        background-color: transparent !important;
        border-radius: 0 !important;
    }

    .header-mobile-marquee-search__pill .MuiFilledInput-root::before,
    .header-mobile-marquee-search__pill .MuiFilledInput-root::after {
        display: none !important;
    }

    .header-mobile-marquee-search__pill .MuiInputLabel-root {
        display: none !important;
    }

    .header-mobile-marquee-search__pill .MuiInputBase-root {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        font-size: 14px !important;
    }

    .header-mobile-marquee-search__pill .MuiInputBase-input {
        padding: 6px 0 6px 12px !important;
    }

    /* Open: widen MUI stack so the typed field grows (mobile only) */
    .header-mobile-marquee-search--open .header-mobile-marquee-search__pill .MuiAutocomplete-root,
    .header-mobile-marquee-search--open .header-mobile-marquee-search__pill .MuiFormControl-root {
        width: 100% !important;
        max-width: none !important;
    }

    .header-mobile-marquee-search--open .header-mobile-marquee-search__pill .MuiInputBase-root {
        width: 100% !important;
        min-width: 0 !important;
    }

    .header-mobile-marquee-search--open .header-mobile-marquee-search__pill .MuiInputBase-input {
        width: 100% !important;
        min-width: 10rem !important;
        box-sizing: border-box !important;
    }

    .header-marquee-search-row > .header-promo-marquee.marqueeN {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding-top: 2px;
    }

    .search .fa-search-plus {
        color: var(--primary-color);
        font-size: 24px;
        margin-left: 0px;
        float: right;
        margin-top: 5px;
    }

    .header-top .fa-home {
        font-size: 21px;
    }

    .favourite-live-strip__list {
        display: flex;
        width: auto;
    }

    /* Live favourite cards in mobile header only — dashboard/desktop Fav unchanged */
    .header-mobile .favourite.favourite-live-strip .favourite-live-strip__item > a.fav-live-card {
        min-width: calc(20% - 10px);
        max-width: none;
        justify-content: center;
        align-items: center;
        padding: 3px 5px;
        background: #353535;
        margin-right: 5px;
        border-radius: 4px;
        color: var(--white-color);
        margin-bottom: 5px;
        display: inline-flex;
        box-sizing: border-box;
    }

    .marqueeheader {
        padding: 0px 10px 10px 10px;
    }

    .support-detail h2 {
        color: #fff;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 0;
    }

    .header-mobile {
        width: 100%;
    }

    .header-mobile .header-b-menu {
        gap: 12px;
        flex-wrap: wrap;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* IPL 2026: same opacity pulse as desktop nav (.new-launch-text2); beats .header-b-menu a { blinker } */
    .header-mobile .header-b-menu a.new-launch-text2.header-b-menu__ipl {
        animation: new-launch 1s linear infinite;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .header-mobile .navbarnav {
        background: linear-gradient(0deg, var(--theme3-bg) 50%, var(--theme4-bg)) !important;
        box-shadow: 0 3px 5px rgba(57, 63, 72, 0.5);
        flex-wrap: nowrap;
        height: 40px !important;
        overflow-x: auto;
        overflow-y: hidden;
        position: relative;
        display: flex;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        align-items: center;
    }

    .header-mobile .nav-item {
        flex: 1 1 auto;
        position: relative;
        text-align: center;
        line-height: 32px;
        white-space: nowrap;
    }

    .header-mobile .nav-item a {
        background: linear-gradient(0deg, var(--theme3-bg) 50%, var(--theme4-bg)) !important;
        border-left: 0 solid #fff !important;
        border-right: 0 solid #fff !important;
        color: #fff;
        font-size: 15px;
        font-weight: 500 !important;
        height: 100%;
        padding: 8px;
        text-transform: uppercase;
        font-family: 'Roboto Condensed';
        line-height: 15px !important;
        text-decoration: none;
    }

    .header-mobile .nav-item a:after {
        content: '|';
        position: absolute;
        right: 0;
        top: 8px;
    }

    .header-mobile .nav-item .active {
        border-top: 2px solid #fff;
    }

    .mobile-header-2 {
        background-color: var(--theme2-bg) !important;
        box-shadow: 0 0.063em 0.25em rgba(37, 50, 55, 0.25);
        z-index: 2;
        top: 0;
        overflow: auto;
        white-space: nowrap;
        display: block;
        box-shadow: 0 0.063em 0.25em rgba(37, 50, 55, 0.25);
        margin-top: 0px !important;
        overflow: auto;
    }

    .mobile-header-2 .active {
        background-color: #FEB90D !important;
    }

    .mobile-header-2 .nav-tabs .nav-link {
        border-radius: 0;
        color: #fff;
        background: linear-gradient(0deg, var(--theme3-bg) 50%, var(--theme4-bg));
        border-right: 0px solid var(--theme2-bg) !important;
        border: 0;
    }

    .mobile-header-2 p {
        margin: 5px 0px 0px 0px;
    }

    .pt30 {
        padding-top: 20px;
    }

    .pb30 {
        padding-bottom: 20px;
    }

    .blink_me {
        -webkit-animation: blinker 1s linear infinite;
        animation: blinker 1s linear infinite;
    }

    @keyframes blinker {
        50% {
            opacity: 0;
        }
    }

    .coupon-table-mobile td {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .mobile-match {
        /* padding: 15px 0px;
        margin: 15px; */
    }

    .text-edark {
        color: #000;
    }

    .tx-666 {
        color: #666;
    }

    .game-icons {
        float: none;
        width: 100%;
        text-align: right;
    }

    .game-name a {
        font-weight: bold;
        font-size: 14px;
    }

    .game-name {
        float: none;
        width: 100%;
    }

    .coupon-table-mobile td,
    .table th {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 0px solid #dee2e6;
    }

    .min-h-10 {
        min-height: 5px;
    }

    .border-bottom {
        border-bottom: 1px solid #666;
    }

    .ln10 {
        line-height: 10px;
    }

    .game-icon {
        width: auto;
        text-align: center;
        margin-top: 0px;
        display: inline-block;
        margin-right: 10px;
    }

    .game-icons {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .game-icon .in-play {
        background-color: #28a745;
        height: 12px;
        width: 12px;
        border-radius: 50%;
    }

    .tx-green {
        color: #28a745;
    }

    .sidebar-right {
        display: none;
    }

    .game-heading .card-header-title {
        font-size: 13px;
        text-transform: uppercase;
    }

    .card-header-date {
        font-size: 12px;
    }

    .nav-tabs {
        background-color: var(--theme2-bg);
        width: 100%;
    }

    .nav-tabs .nav-link {
        border-radius: 0;
        color: var(--secondary-color);
        background-color: var(--theme2-bg);
        border-right: 0px solid var(--theme2-bg) !important;
        border: 0;
        display: block;
        padding: 5px 10px;
    }

    button:focus {
        outline: 1px dotted;
        outline: 0px auto -webkit-focus-ring-color;
    }

    .nav-tabs .nav-item.show .nav-link,
    .nav-tabs .nav-link.active {
        background-color: var(--theme2-bg);
        border-color: #fff;
        color: var(--secondary-color);
        border-bottom: 2px solid #fff;
    }

    .tab-content {
        width: 100%;
    }

    .place-bet {
        position: fixed;
        top: 0%;
        /* left: 2%;
        right: 2%; */
        width:100%;
        z-index: 3;
    }

    .backdrop-custom {
        position: fixed;
        /* display: none; */
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 2;
        cursor: pointer;
    }

    .container-main {
        height: 115px !important;
        width: 100%;
        padding: 5px !important;
    }

    .suspended:after {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 60%;
        right: 0;
        background-color: rgba(0, 0, 0, 0.6);
        color: var(--white-color);
        text-transform: uppercase;
        font-family: 'Font Awesome 5 Free';
        content: attr(data-title);
        font-weight: 900;
        font-size: 18px;
        top: 0;
        color: red;
    }

    .padding-custom {
        padding: 0px 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .ballance,
    .expose,
    .account {
        margin-left: 7px;
        margin-top: 0;
    }

    .mrc-2 {
        margin-right: 2px;
    }

    /* Dashboard casino-first-strip: 4 tiles × 2 rows on mobile */
    .casino-first-strip {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .casino-first-strip__tile {
        width: 25%;
        max-width: 25%;
        flex: 0 0 25%;
    }

    .new-launch__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .new-launch-card__media {
        height: 70px;
        width: 130px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .new-launch-card__name {
        padding: 5px 0;
        font-size: 8px;
        height: 34px;
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .my-favorites__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .my-favorites-card__media {
        height: 70px;
        width: 130px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .my-favorites-card__name {
        padding: 5px 0;
        font-size: 8px;
        height: 34px;
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .our-providers__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;
    }

    /* Same 16:10 banner ratio; cell height follows column width */
    .our-providers__tile-media {
        aspect-ratio: 16 / 10;
    }

    /* ✅ Casino Int - 4 columns on mobile */
    .casino-list-item {
        width: calc(25% - 10px) !important;  /* 4 columns on mobile */
    }

    .casino-list-item .casino-list-item-banner {
        padding-top: 120% !important;  /* Portrait aspect ratio for mobile */
    }
    
    .casino-list-item .casino-list-name {
        font-size: 9px !important;  /* Smaller font for 4 columns */
        padding: 3px !important;
    }

    /* Casino int: mobile banner — 2 columns (CASINO | search), low height */
    .casino-int-banner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 3px 8px;
    }

    .casino-int-banner__title {
        flex: 0 0 auto;
        width: auto;
        min-height: 0;
        justify-content: flex-start;
        font-size: 12px;
        gap: 4px;
    }

    .casino-int-banner__icon {
        font-size: 13px;
    }

    .casino-int-banner__search {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        width: auto;
        align-self: center;
    }

    .casino-int-banner__input {
        height: 20px;
        font-size: 11px;
        padding: 2px 5px;
    }

    .casino-int-banner__search-btn {
        width: 26px;
        height: 20px;
        font-size: 11px;
    }
    
    .game-alert-banner__wrap {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .game-alert-banner {
        max-width: 300px;
        padding: 10px 14px;
        border-radius: 6px;
    }

    .game-alert-banner__label {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .game-alert-banner__message {
        font-size: 12px;
    }


    /* Casino int games: 4 columns; cards must not stretch to row height (fixes tall / warped art) */
    .casino-list.casino-int-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        margin-left: 0;
    }

    .casino-list.casino-int-games-grid > .casino-int-game-card {
        align-self: start;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    /* Uniform square tiles — height from column width, not source image dimensions */
    .casino-int-game-card__media {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-height: none;
        flex-shrink: 0;
        overflow: hidden;
    }

    .casino-int-game-card__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .casino-int-game-card__name {
        font-size: 9px;
        padding: 4px 3px;
    }

    .casino-int-tab-row .nav-link {
        min-height: 28px;
        padding: 0 8px !important;
        font-size: 11px;
    }

    .casino-int-tab-row--icons .nav-link {
        min-height: 44px;
        gap: 2px;
        padding: 3px 6px !important;
    }

    .casino-int-tab-row__icon {
        font-size: 13px;
    }

    .casino-int-tab-row__label {
        font-size: 8px;
        max-width: 80px;
    }

    /* ✅ Provider list - horizontal scroll on mobile/tablet (not sidebar) */
    .provider-list-responsive {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        margin-bottom: 10px !important;
    }

    .provider-list-responsive .nav-item {
        flex-shrink: 0 !important;
        width: auto !important;  /* ✅ FIX: Auto width to fit content */
    }

    .provider-list-responsive .nav-link {
        width: auto !important;  /* ✅ FIX: Auto width */
        padding: 8px 12px !important;  /* ✅ FIX: Minimal padding - just enough space */
        white-space: nowrap !important;  /* ✅ FIX: No text wrapping */
    }
}

/* ✅ Tablet (769px - 1199px) - Provider horizontal like mobile, not sidebar */
@media (min-width: 769px) and (max-width: 1199px) {
    .provider-list-responsive {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        margin-bottom: 10px !important;
    }

    .provider-list-responsive .nav-item {
        flex-shrink: 0 !important;
        width: auto !important;  /* ✅ FIX: Auto width to fit content */
    }

    .provider-list-responsive .nav-link {
        width: auto !important;  /* ✅ FIX: Auto width */
        padding: 8px 12px !important;  /* ✅ FIX: Minimal padding */
        white-space: nowrap !important;
    }

    /* ✅ Tablet - 3 columns for casino games */
    .casino-list-item {
        width: calc(33.33% - 10px) !important;
    }
}