/* Responsive overrides — mobile, tablet, desktop */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
}

img,
picture img,
video,
.banner-img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 100%;
}

/* ── Tablet & below (≤991px) ── */
@media (max-width: 991px) {
    .topbar-container .row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar-left-container,
    .topbar-right-container {
        width: 100%;
    }

    .topbar-left-section {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .topbar-right-container .login-panel {
        justify-content: center;
    }

    .site-header .row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .site-header .col-sm-3,
    .site-header .col-sm-9,
    .site-header .col-md-3,
    .site-header .col-md-9 {
        width: 100%;
        float: none;
    }

    .site-header .logo {
        max-width: 220px;
        margin: 0 auto;
    }

    .menu-slide {
        width: 100%;
    }

    .popular-games {
        flex-direction: column;
    }

    .popular-games [data-section="left"],
    .popular-games [data-section="right"] {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .footer-sitemap-section {
        flex-direction: column;
        gap: 24px;
        padding-right: 0;
    }

    .footer-featured-product-section > [class*="col-"] {
        width: 100%;
        float: none;
        margin-bottom: 12px;
    }

    .footer-copyright-section .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .provider-container {
        display: block;
        width: calc(100% - 20px);
        margin: 20px 10px 0;
        box-sizing: border-box;
    }

    .modal-dialog {
        width: 92%;
        max-width: 560px;
        margin: 20px auto;
    }
}

/* ── Mobile landscape & portrait (≤767px) ── */
@media (max-width: 767px) {
    .topbar-container {
        padding: 6px 0;
    }

    .topbar-left-section .topbar-item + .topbar-item {
        margin-left: 0;
        border-left: 0;
        padding-left: 0;
    }

    .topbar-left-section .telegram-btn {
        font-size: 0;
        gap: 0;
        padding: 5px 8px;
    }

    .topbar-left-section .telegram-btn i {
        margin: 0;
    }

    .login-panel .login-button,
    .login-panel .register-button {
        width: auto;
        min-width: 80px;
        padding: 6px 14px;
        font-size: 13px;
    }

    .top-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .top-menu::-webkit-scrollbar {
        display: none;
    }

    .top-menu > li {
        flex: 0 0 auto;
        flex-basis: auto;
        min-width: 72px;
        width: auto;
    }

    .top-menu > li > a {
        padding: 12px 4px;
        font-size: 11px;
    }

    .top-menu > li > a img {
        width: 24px !important;
        height: 24px !important;
    }

    .menu-slide > i {
        flex-shrink: 0;
        font-size: 14px;
    }

    .announcement-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    .announcement-container > [data-section="announcements"] {
        width: 100%;
    }

    .announcement-container > [data-section="date"] {
        font-size: 11px;
        justify-content: flex-end;
    }

    .home-inner-container {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .home-progressive-jackpot {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
    }

    .home-progressive-jackpot .outer-container,
    .home-progressive-jackpot .inner-container,
    .home-progressive-jackpot .border-container {
        border-radius: 16px;
    }

    .home-progressive-jackpot .jackpot-play-section {
        justify-content: center;
    }

    .home-progressive-jackpot .jackpot-container {
        font-size: 16px !important;
        letter-spacing: 2px;
        padding: 0 8px;
        width: 100%;
    }

    .home-progressive-jackpot .jackpot-play {
        max-width: 120px;
        height: auto;
    }

    .games-group {
        width: calc((100% - 12px) / 2.2) !important;
        min-width: 140px;
    }

    .popular-game-title-container .container-content .game-list,
    .home-game-list-container .container-content .game-list {
        -webkit-overflow-scrolling: touch;
    }

    .popular-games .popular-game-list .game-item {
        width: calc(100% / 2);
    }

    .popular-games [data-section="left"] .section-title {
        font-size: 15px;
        height: auto;
        min-height: 44px;
        padding: 8px;
    }

    .home-game-list-container .container-content .game-list .game-item {
        width: calc((100% - 20px) / 2.5) !important;
        min-width: 120px;
    }

    .scrtabs-tabs-fixed-container,
    .scrtabs-tab-container,
    .popular-games .nav-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .scrtabs-tabs-fixed-container::-webkit-scrollbar,
    .popular-games .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .popular-games .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
    }

    .popular-games .nav-tabs > li {
        flex-shrink: 0;
    }

    .nav-btn.main-prev {
        left: 8px;
    }

    .nav-btn.main-next {
        right: 8px;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .footer-banking-section .banking-footer-section .bank-service-container {
        grid-template-columns: 1fr;
        margin: 16px;
        gap: 12px;
    }

    .site-description h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .site-description h2 {
        font-size: 1.1rem;
    }

    .hover-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .provider-section .hover-list > li + li {
        margin-left: 0;
    }

    .register-modal .modal-dialog,
    .login-modal .modal-dialog,
    .forgot-password-modal .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topbar-left-section {
        justify-content: space-around;
    }

    .topbar-left-section .topbar-item {
        font-size: 11px;
    }

    .top-menu > li {
        min-width: 64px;
    }

    .top-menu > li > a {
        font-size: 10px;
        padding: 10px 2px;
    }

    .top-menu > li > a img {
        width: 20px !important;
        height: 20px !important;
    }

    .games-group {
        width: calc(100% - 16px) !important;
        min-width: 120px;
    }

    .popular-games .popular-game-list .game-item {
        width: 100%;
    }

    .popular-games .popular-game-list {
        padding: 0 8px;
    }

    .home-progressive-jackpot .jackpot-container {
        font-size: 13px !important;
        letter-spacing: 1px;
    }

    .home-progressive-jackpot .jackpot-play-text {
        font-size: 12px;
    }

    .announcement-container > [data-section="date"] {
        display: none;
    }

    .footer-links > li {
        display: block;
    }

    .login-panel {
        width: 100%;
        justify-content: stretch;
        gap: 8px;
    }

    .login-panel .login-panel-item {
        flex: 1;
    }

    .login-panel .login-panel-item + .login-panel-item {
        margin-left: 0;
    }

    .login-panel .login-button,
    .login-panel .register-button {
        width: 100%;
    }
}

/* ── Large desktop (≥1200px) ── */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}
