* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #1a1d2e 0%, #0f1117 100%);
    color: #fff;
    min-height: 100vh;
}

/* Add smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #1e2233;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hide by default on desktop */
}

/* Show menu button only on mobile devices */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
}

.logo {
    display: flex;
    align-items: center;
        padding: 10px 25px;
    
}

.logo-img {
    width: 100px;
    height: 40px;
}

.logo-text {
    display: none;
}

.search-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50%;
    cursor: pointer;
}

.claim-bonus-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-icon {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.header-right {
    display: flex;
    gap: 15px;
}

.log-in-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.sign-up-btn {
    background: #00ff88;
    border: none;
    color: #000;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 60px;
    height: calc(100vh - 70px);
    background: #1e2233;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 30px;
    z-index: 100;
}

.sidebar-icon {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    color: white;
}

.sidebar-icon:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar-icon-default {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.main-content {
    margin-left: 60px;
    padding: 30px;
    max-width: 1980px; /* Increased from 1200px to better utilize space */
    margin-right: auto;
}

.promo-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Increased min width */
    gap: 25px; /* Slightly increased gap */
    margin-bottom: 50px;
}

.promo-card {
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
}

.promo-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.promo-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffeb3b;
    margin-bottom: 5px;
}

.promo-subtitle {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.promo-sign-up-btn {
    background: #00ff88;
    border: none;
    color: #000;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}

.section {
    margin-bottom: 50px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: bold;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style for the "View All" links that are now links instead of buttons */
a.view-all-btn, .view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

a.view-all-btn:hover, .view-all-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

/* Links for game cards and provider cards */
a.game-card-link, a.provider-card-link {
    text-decoration: none;
    color: inherit;
}

a.game-card-link:hover, a.provider-card-link:hover {
    opacity: 0.9;
}

/* Claim bonus button as a link */
a.claim-bonus-btn {
    display: inline-flex;
    align-items: center;
    background-color: #ff6b00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

a.claim-bonus-btn:hover {
    background-color: #ffffff;
}

/* Search button as a link */
a.search-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: color 0.3s ease;
}

a.search-btn:hover {
    color: #ff6b00;
}

.view-all-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: background 0.3s;
}

.arrow-btn:hover {
    background: rgba(99, 102, 241, 0.5);
}

.wins-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 50px;
}

.win-card {
    min-width: 250px;
    background: #1e2233;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.win-game-img {
    width: 60px;
    height: 60px;
    background: #2d3548;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.win-game-img-inner {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.win-info {
    flex: 1;
}

.win-game-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.win-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
}

.win-user-avatar {
    width: 20px;
    height: 20px;
    background: #2d3548;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.win-amount {
    font-size: 18px;
    font-weight: bold;
    color: #00ff88;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.games-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

.games-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.games-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.games-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

/* Remove scrollbar for big wins container since it's auto-scrolled by script */
#big-wins-container {
    overflow-x: hidden !important;
    scrollbar-width: none  !important;
}

#big-wins-container::-webkit-scrollbar {
    display: none;
}

.game-card {
    background: #1e2233;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    min-width: 220px;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d3548 0%, #1e2233 100%);
    background-size: cover;
    background-position: center;
}

.game-info {
    padding: 15px;
    text-align: center;
}

.game-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.game-provider {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.prerelease-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00ff88;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.tabs-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff88;
}

.bottom-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
}

.action-btn {
    background: rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.5);
}

.action-btn.active {
    background: #6366f1;
    border-color: #6366f1;
}

.action-icon {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.bets-table {
    background: rgba(30, 34, 51, 0.5);
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 40px;
}

.table-header {
    display: grid;
    grid-template-columns: 280px 160px 130px 110px 130px 130px; /* Increased column widths */
    gap: 25px; /* Increased gap */
    padding: 15px 30px;
    background: rgba(255,255,255,0.05);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.table-row {
    display: grid;
    grid-template-columns: 280px 160px 130px 110px 130px 130px; /* Increased column widths */
    gap: 25px; /* Increased gap */
    padding: 15px 30px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}

.table-row:hover {
    background: rgba(255,255,255,0.05);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.game-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #fff;
}

.game-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 8px;
}

.game-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bet-badge {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.multiplier-badge {
    background: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.payout-cell {
    color: #00ff88;
    font-weight: 700;
    font-size: 15px;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.provider-card {
    background: rgba(30, 34, 51, 0.8);
    border-radius: 12px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.provider-card:hover {
    background: rgba(30, 34, 51, 1);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
}

.provider-logo {
    width: 120px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.payment-icon {
    width: 60px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    opacity: 0.7;
    transition: opacity 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.payment-icon:hover {
    opacity: 1;
}

.footer {
    background: #1e2233;
    padding: 50px 30px 30px 90px;
    margin-top: 60px;
    max-width: 1800px; /* Match the main content width */
    margin-left: 80px;
    border-radius: 5px;
    margin-right: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; /* Adjusted column ratios */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.6);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #00ff88;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 100px;
    height: 40px;
}

.footer-logo-text {
    display: none;
}

.social-links {
    display: none;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.social-icon:hover {
    background: rgba(99, 102, 241, 0.5);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-license {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.license-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-icon {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.language-selector {
    background: rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.support-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #6366f1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    z-index: 1000;
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.8); /* Bright red for visibility */
    border: 2px solid white; /* White border for contrast */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Maximum z-index */
    display: flex !important; /* Force display for testing */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.scroll-top-btn:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn::after {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 34, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.cookie-text {
    font-size: 14px;
    max-width: 800px;
}

.cookie-link {
    color: #00ff88;
    text-decoration: none;
}

.accept-btn {
    background: #6366f1;
    border: none;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.header-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.gift-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-license-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-app-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-age-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.footer-logo-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.provider-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.footer-logo-img-inner {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.provider-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.payment-method-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Background Banner Styles */
/*
.banner-container {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.background-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
*/

/* Promo Card Banner Styles */
/*
.promo-banner {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin: -30px -30px 20px -30px;
}

.promo-background-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
*/

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #1e2233;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 500;
}

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

.mobile-menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.mobile-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

.mobile-signup-btn {
    background: #00ff88;
    border: none;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
        margin-top: 20px;
    }
    
    /* Hide the entire sidebar on mobile */
    .sidebar {
        display: none;
    }
    
    .header {
        padding: 15px;
    }
    
    /* Hide header menu items on mobile */
    .header-right {
        display: none;
    }
    
    /* Mobile footer styles */
    .footer {
        padding: 30px 15px 15px 15px;
        margin-top: 40px;
        margin-left: -60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo-section {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }
    
    .footer-license {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .footer-badge {
        width: 100%;
        justify-content: center;
    }
    
    .language-selector {
        width: 100%;
        max-width: 200px;
    }
    
    .promo-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .promo-card {
        min-height: 180px;
        padding: 20px;
    }
    
    .promo-title {
        font-size: 28px;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .game-card {
        min-width: 150px;
    }
    
    .game-img {
        height: 150px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-controls {
        width: 100%;
        justify-content: space-between;
    }
    

    
    .tabs-container {
        gap: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .bottom-actions {
        gap: 10px;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 150px 100px 80px 80px 80px 80px;
        padding: 10px 15px;
    }
    
    .scroll-top-btn {
        position: fixed;
        bottom: 70px; /* Move above cookie banner */
        right: 20px;
        width: 40px;
        height: 40px;
        display: flex !important; /* Force display for testing */
        z-index: 9999;
        background: rgba(255, 0, 0, 0.8); /* Bright red for visibility */
        border: 2px solid white; /* White border for contrast */
    }
    
    .payment-methods {
        gap: 20px;
        padding: 20px 0;
    }
    
    .payment-icon {
        width: 50px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .header {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .log-in-btn,
    .sign-up-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .promo-card {
        min-height: 160px;
        padding: 15px;
    }
    
    .promo-title {
        font-size: 24px;
    }
    
    .promo-subtitle {
        font-size: 14px;
    }
    
    .promo-sign-up-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .game-card {
        min-width: 130px;
    }
    
    .game-img {
        height: 130px;
    }
    
    .game-info {
        padding: 10px;
    }
    
    .game-title {
        font-size: 12px;
    }
    
    .game-provider {
        font-size: 10px;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 120px 80px 70px 70px 70px 70px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .table-cell {
        font-size: 12px;
    }
    
    .bet-badge,
    .multiplier-badge {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .payout-cell {
        font-size: 14px;
    }
    
    .scroll-top-btn {
        position: fixed;
        bottom: 70px; /* Move above cookie banner */
        right: 15px;
        width: 35px;
        height: 35px;
        display: flex !important; /* Force display for testing */
        z-index: 9999;
        background: rgba(255, 0, 0, 0.8); /* Bright red for visibility */
        border: 2px solid white; /* White border for contrast */
    }
}

.index-content {
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.index-content h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.index-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.index-content ul, .index-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.index-content li {
    margin-bottom: 0.5rem;
}
/* ==== Base / dark theme ==== */
:root {
  --bg: #0e0f13;
  --text: #f3f4f6;         /* белый, но не слепящий */
  --muted: #a6adbb;
  --primary: #7aa2ff;      /* цвет ссылок */
  --primary-hover: #9bb7ff;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.2);
  --surface: rgba(255,255,255,0.04);
  --code-bg: #1a1d24;

  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,0.3);

  --leading: 1.7;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}


/* ==== Typography ==== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.2;
  margin: var(--space-6) 0 var(--space-3);
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .95rem; color: var(--muted); }

p, ul, ol, blockquote, pre, table, figure {
  margin: 0 0 var(--space-5);
}

p { color: var(--text); }

small { color: var(--muted); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease, box-shadow .2s ease;
}
a:hover { color: var(--primary-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Списки */
ul, ol { padding-inline-start: 1.25rem; }
li + li { margin-top: var(--space-2); }

/* Цитаты */
blockquote {
  border-inline-start: 3px solid var(--border-strong);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text);
}

/* Разделитель */
hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: var(--space-6) 0;
}

/* ==== Code ==== */
code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

code {
  background: var(--code-bg);
  color: #e6e8ee;
  padding: 0 .35em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  color: #e6e8ee;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
}
pre code {
  background: transparent;
  border: 0;
  padding: 0;
  white-space: pre;
}

/* ==== Media ==== */
img, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}

/* ==== Tables (responsive, dark) ==== */

/* Базовые стили, ширина всегда 100% */
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; /* для скругления */
}

caption {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  color: var(--muted);
  font-size: .95rem;
}

thead th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  position: sticky;
  top: 0; /* липкая шапка в горизонтальном скролле */
  z-index: 1;
}

th, td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(255,255,255,0.035);
}

tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.02);
}

/* Чипы внутри ячеек */
td .tag {
  display: inline-block;
  padding: .2rem .5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Мобильная адаптация: таблица блоком + горизонтальный скролл */
@media (max-width: 768px) {
  table {
    display: block;           /* ключевое требование */
    overflow-x: auto;         /* горизонтальный скролл */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;      /* не переносим ячейки */
    border-radius: var(--radius);
  }
  thead th, tbody td, tbody th {
    /* немного подтянуть вертикальный ритм на мобильных */
    padding: .75rem .85rem;
  }
}

/* ==== Forms (минимально) ==== */
input, select, textarea {
  width: 100%;
  padding: .75rem .9rem;
  color: var(--text);
  background: #12141a;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(122,162,255,0.25);
}

/* ==== Accessibility & motion ==== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==== Misc content helpers ==== */
figure { margin: 0 0 var(--space-5); }
figcaption { color: var(--muted); font-size: .95rem; margin-top: .4rem; }

mark {
  background: #3b3f4a;
  color: var(--text);
  padding: 0 .25em;
  border-radius: 4px;
}

/* ==== FAQ Styles ==== */
.faq-block {
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.faq-heading {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item h3::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active h3::after {
  content: "−";
}

.faq-item p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: none;
}

.faq-item.active p {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile FAQ Styles */
@media (max-width: 768px) {
  .faq-block {
    margin: 1.5rem 0;
    padding: 1rem 0;
  }
  
  .faq-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .faq-item {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .faq-item h3 {
    font-size: 1.1rem;
  }
}