/* Global */
body {
    background: #0e141b;
}

body::-webkit-scrollbar {
    padding-top: 15px;
    height: 8px;
    width: 10px;
    cursor: pointer;
}

body::-webkit-scrollbar-track {
    padding-top: 15px;
    background: #2d3835;
    border-radius: 5px;
    height: 8px;
    width: 10px;
    cursor: pointer;
}

body::-webkit-scrollbar-thumb {
    padding-top: 15px;
    background-color: white;
    border-radius: 5px;
    height: 5px;
    cursor: pointer;
    width: 10px;
}

div::-webkit-scrollbar {
    padding-top: 15px;
    height: 5px;
    width: 8px;
    cursor: pointer;
}

div::-webkit-scrollbar-track {
    padding-top: 15px;
    background: white;
    border-radius: 5px;
    height: 5px;
    width: 8px;
    cursor: pointer;
}

div::-webkit-scrollbar-thumb {
    padding-top: 15px;
    background-color: #2d3835;
    border-radius: 5px;
    height: 5px;
    cursor: pointer;
    width: 8px;
}


/* Sidebar */
.sidebar {
    background: #0b1016;
    border-right: 1px solid #62626d;
}

.logo {
    font-size: 26px;
    font-weight: 800;
}

.nav-item {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #9aa4b2;
    cursor: pointer;
    transition: 0.2s;
}

.nav-item:hover {
    background: #1b2026;
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(135deg, #1b2026, #1b2026);
    color: #4cff7a;
}

/* Language */
.lang-select {
    width: 160px;
    background: #1b2026;
    color: #fff;
    /* border: none; */
}

/* Banners */
.banner {
    width: 100%;
    height: auto;
    border: 1px solid;
    border-radius: 10px;
}


/* Providers */
.provider-panel {
    background: #111821;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 20px;
}

.provider-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
}

.section-sub {
    font-size: 13px;
    color: #8b95a3;
}

/* Search inputs */
.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    color: #6b7684;
    font-size: 16px;
    pointer-events: none;
}

.search-box .form-control {
    background: #0b1016;
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 10px;
    padding: 9px 12px 9px 36px;
    font-size: 14px;
}

.search-box .form-control::placeholder {
    color: #6b7684;
}

.search-box .form-control:focus {
    background: #0b1016;
    color: #fff;
    border-color: #49e37c;
    box-shadow: 0 0 0 3px rgba(73, 227, 124, .15);
}

/* Type tabs */
.game-type-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    scrollbar-width: none;
}

.game-type-tabs::-webkit-scrollbar {
    display: none;
}

.game-type-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #9aa4b2;
    padding: 10px 14px 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease;
}

.game-type-btn::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -5px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background .2s ease;
}

.game-type-btn:hover {
    color: #fff;
}

.game-type-btn.active {
    color: #fff;
}

.game-type-btn.active::after {
    background: #49e37c;
}

.tab-count {
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #9aa4b2;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.game-type-btn.active .tab-count {
    background: rgba(73, 227, 124, .15);
    color: #49e37c;
}

/* Provider grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    min-width: 0;
    gap: 12px;
}

.provider-tile {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px 12px;
    background: #161d26;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    color: #e6e9ee;
    cursor: pointer;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

/* a frame provider's page (/sportsbook, /lottery): the way to open it in place of a game list, and no count of games */
.frame-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 20px 22px;
    background: #161d26;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
}

.frame-panel h3 {
    margin: 0;
}

.section-sub:has(#games-count:empty) {
    font-size: 0;
}

.section-sub:has(#games-count:empty) .change-provider {
    font-size: 13px;
}

a.provider-tile,
a.provider-tile:hover {
    color: #e6e9ee;
    text-decoration: none;
}

.provider-tile:hover {
    transform: translateY(-2px);
    background: #1b2430;
    border-color: rgba(255, 255, 255, .18);
}

.provider-tile.active {
    background: linear-gradient(180deg, rgba(73, 227, 124, .12), rgba(73, 227, 124, .03));
    border-color: #49e37c;
    box-shadow: 0 8px 24px rgba(41, 215, 122, .15);
}

.provider-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-bottom: 6px;
}

.provider-logo img {
    max-width: 88%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.provider-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #222c38;
    color: #cfd6df;
    font-weight: 700;
    font-size: 15px;
}

.provider-name {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-meta {
    font-size: 12px;
    color: #8b95a3;
}

.provider-tile.active .provider-meta {
    color: #49e37c;
}

.provider-empty {
    grid-column: 1 / -1;
    padding: 32px 0;
    text-align: center;
    color: #8b95a3;
}

/* Games header */
#games-section {
    scroll-margin-top: 16px;
}

.games-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.games-head-provider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.games-head-logo {
    width: 72px;
    height: 44px;
    margin: 0;
    padding: 6px;
    background: #161d26;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
}

.games-head-logo:empty {
    display: none;
}

@media (max-width: 576px) {
    .provider-panel {
        padding: 14px;
    }

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

    .provider-tile {
        padding: 10px 6px 8px;
    }

    .provider-logo {
        height: 40px;
    }

    .provider-name {
        font-size: 12px;
    }

    .provider-meta {
        font-size: 11px;
    }

    .search-box {
        max-width: none;
    }
}

/* Game Card */
.game-card {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #161d26;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    transition: transform .25s, box-shadow .25s;
}

.game-thumb {
    position: absolute;
    inset: 0;
    background-color: #1a1f28;
    background-size: cover;
    background-position: center;
    transition: transform .35s;
}

/* bottom shade so the title stays readable over any artwork */
.game-card::before {
    content: "";
    position: absolute;
    inset: 45% 0 0 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .8));
    pointer-events: none;
}

/* hover dim */
.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}

.play-btn {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%) scale(.8);
    width: 54px;
    height: 54px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    background: linear-gradient(145deg, #5dff8a, #1fd35a);
    color: #0b1a10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 6px rgba(76, 255, 122, .18);
    opacity: 0;
    transition: opacity .25s, transform .25s, box-shadow .25s;
}

.play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 3px; /* optically center the triangle */
    fill: currentColor;
}

.play-btn:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 0 9px rgba(76, 255, 122, .25);
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}

.game-card:hover .game-thumb {
    transform: scale(1.06);
}

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

.game-card:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 0 8px 10px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
}

.game-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.game-type {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .game-name {
        font-size: 13px;
    }
}

/* Mobile banner swipe */
@media (max-width: 991px) {
    .banners {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 12px 0px;
    }

    .banners .col-lg-4 {
        flex: 0 0 85%;
    }
}



.dropdown-menu {
    border-radius: 12px;
}

.dropdown-item {
    border-radius: 8px;
}

/* Button */
.region-btn {
    background: #1b2026;
    color: #fff;
    /* padding: 10px 14px; */
    border-radius: 12px;
    min-width: 200px;
    text-align: left;
}

.region-btn::after {
    float: right;
    margin-top: 8px;
}

/* Dropdown menu */
.region-menu {
    background: #1b2026;
    border-radius: 14px;
    padding: 6px;
    min-width: 220px;
    /* border: none; */
}

/* Items */
.region-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e6e6e6;
    border-radius: 10px;
    cursor: pointer;
}

.region-menu .dropdown-item img {
    width: 18px;
    height: 18px;
}

/* Hover / active */
.region-menu .dropdown-item:hover,
.region-menu .dropdown-item:focus {
    background: #2a313a;
    color: #fff;
}


/* currency */
/* Button */
.currency-btn {
    background: #1b2026;
    color: #ffffff;
    /* border: none; */
    border-radius: 12px;
    min-width: 120px;
    text-align: left;
}

.currency-btn::after {
    float: right;
    margin-top: 8px;
}

/* Dropdown menu */
.currency-menu {
    background: #1b2026;
    border-radius: 14px;
    padding: 6px;
    /* border: none; */
    min-width: 140px;
}

/* Items */
.currency-menu .dropdown-item {
    color: #e6e6e6;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

/* Hover / active */
.currency-menu .dropdown-item:hover,
.currency-menu .dropdown-item:focus {
    background: #2a313a;
    color: #ffffff;
}

.loading-bar {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 19, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.telegram-link img {
    width: 72px;
    height: 72px;
    transition: transform .2s ease, filter .2s ease;
}

.telegram-link:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 12px rgba(80, 180, 255, .6));
}



.marquee-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #070b18, #040813);
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 12px;
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px;
}

.marquee-content span {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #eae3c2;
    letter-spacing: .04em;
}

/* animation */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .marquee-content span {
        font-size: 13px;
    }
}

.modal-fullscreen {
    max-width: 100% !important;
}














/* ===== TOP BAR ===== */
.topbar {
    background: linear-gradient(180deg, #050813, #03060f);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar-inner {
    max-width: 1200px;
    /* 🔥 critical fix */
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.support-dd {
    margin-right: auto;
}

/* Right group */
/* The logo and wordmark before the Support button. The picture holds the name, so no other brand's host has it in its HTML,
   and it shows only on pages with the brand's text (.seo-hero, which other brands' hosts do not get: services/site.js). */
.site-brand {
    display: none;
    flex: none;
    /* centred between the bar's left edge and the Support button, which stays where it is: half the difference between the
       space on its left (the bar's padding, 16px) and on its right (the bar's gap, 12px) */
    transform: translateX(-2px);
}

@media (min-width: 1400px) {

    /* here the bar is 1296px wide and .topbar-inner stops at 1200px, which adds 48px on the left */
    .site-brand {
        transform: translateX(-26px);
    }
}

body:has(.seo-hero) .site-brand {
    display: block;
}

.site-brand img {
    display: block;
    width: auto;
    height: 40px;
}

.topbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    /* 🔥 prevents overflow */
}

/* Buttons */
.topbar-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #eaf1ff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.topbar-btn:hover,
.topbar-btn:focus {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* Dropdown menus */
.dropdown-menu {
    border-radius: 10px;
    padding: 6px;
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {

    .topbar-inner {
        flex-wrap: wrap;
    }

    .support-dd span {
        display: none;
        /* icon only */
    }

    .topbar-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
/* Provider modal */
.provider-modal {
    background: #111821;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    color: #fff;
}

.provider-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 20px;
}

.provider-modal .modal-body {
    padding: 20px;
}

.provider-modal .provider-search {
    max-width: none;
}

.change-provider {
    color: #49e37c;
    text-decoration: none;
    font-weight: 600;
}

.change-provider:hover {
    color: #7af0a0;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .provider-modal .modal-body {
        padding: 14px;
    }
}

/* Game thumbnails as images (their names are the alt text) */
.game-thumb .game-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Skip link: shown only when focused from the keyboard */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 1000;
    padding: 8px 14px;
    border-radius: 8px;
    background: #49e37c;
    color: #071807;
    font-weight: 700;
}

.skip-link:focus {
    left: 8px;
}

/* Page text: intro, what the demo shows, how it works, questions (services/site.js) */
/* vertical padding only: the side padding is the Bootstrap row gutter */
.seo-hero {
    padding-top: 18px;
    padding-bottom: 10px;
}

.seo-hero h1 {
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 6px 0 10px;
}

.seo-hero p {
    max-width: 920px;
    color: #c9d2de;
    margin-bottom: 12px;
}

.seo-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(73, 227, 124, 0.45);
    color: #7cf0a2;
    font-size: 0.8rem;
    font-weight: 600;
}

.seo-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* the game types under the intro (services/site.js hero) */
.seo-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.seo-types li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eef2f7;
    font-size: 0.85rem;
    font-weight: 600;
}

.seo-types li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #49e37c;
}

.seo-block {
    padding-top: 28px;
    padding-bottom: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-block h2 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.seo-block > p {
    color: #c9d2de;
    max-width: 920px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.seo-card {
    display: block;
    padding: 16px;
    border-radius: 14px;
    background: #151b23;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eef2f7;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

a.seo-card:hover {
    border-color: #4cff7a;
    background: #1a2620;
    color: #ffffff;
}

.seo-card h3,
.seo-steps h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.seo-card p,
.seo-steps p {
    font-size: 0.92rem;
    color: #aab4c2;
    margin: 0;
}

.seo-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 0;
    margin-top: 14px;
    list-style: none;
    counter-reset: step;
}

.seo-steps li {
    padding: 16px;
    border-radius: 14px;
    background: #151b23;
    counter-increment: step;
}

.seo-steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #49e37c;
    color: #071807;
    font-weight: 800;
}

.seo-faq details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

/* the next section's top border already closes the list */
.seo-faq details:last-child {
    border-bottom: 0;
}

.seo-faq summary {
    cursor: pointer;
    font-weight: 700;
}

.seo-faq details p {
    color: #c9d2de;
    margin: 8px 0 0;
}

.seo-cta {
    margin-bottom: 12px;
}

.site-footer {
    padding: 20px 4px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #8f9bab;
}

.site-footer a {
    color: #aab4c2;
}

.lang-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 12px;
}

.lang-links a {
    text-decoration: none;
}

.lang-links a[aria-current="page"] {
    color: #4cff7a;
    font-weight: 700;
}
