/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #1A1212;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll when sidebar is open */
    width: 100%;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Утилиты */
.bg-black-q {
    background-color: #000;
}

.text-white-b {
    color: #fff;
}

.section-container {
    max-width: 1400px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Навигационная панель */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #0e0e0e;
    border-bottom: 1px solid #222;
    z-index: 50;
    overflow: hidden; /* Prevent content overflow */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%; /* Ensure container doesn't exceed viewport */
}

@media (min-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
}

/* Гамбургер-меню */
.hamburger-menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    background-color: #292929;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
    line-height: 1;
}

.hamburger-menu i {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .hamburger-menu {
        order: -1;
        margin-left: 0;
        margin-right: 0.5rem;
    }
}

@media (min-width: 1200px) {
    .hamburger-menu {
        margin-right: 1rem;
    }
}

.navbar-left {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .navbar-left {
        margin-right: 1rem;
        order: 0;
    }
}

.logo-image {
    height: 28px;
}

@media (min-width: 768px) {
    .logo-image {
        height: 40px;
    }
}

.navbar-center {
    display: none;
}

@media (min-width: 768px) {
    .navbar-center {
        display: block;
        flex-grow: 1;
        margin-left: 1rem;
    }
}

.nav-pills {
    display: flex;
    align-items: center;
    background-color: #222222;
    border-radius: 9999px;
    padding: 0.375rem 0.5rem;
    width: fit-content;
    margin-left: 0;
}

@media (min-width: 992px) {
    .nav-pills {
        margin-left: 1rem;
    }
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-pill:not(.active) {
    color: #9ca3af;
}

.nav-pill:not(.active):hover {
    color: #fff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.missions-button {
    display: none !important; /* Force hide on mobile */
}

@media (min-width: 768px) {
    .missions-button {
        display: flex !important; /* Show only on desktop */
        align-items: center;
        gap: 0.25rem;
        background-color: #4050e6;
        border-radius: 9999px;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
    }
}

.missions-icon {
    width: 20px;
    height: 20px;
}

.notification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    color: #4050e6;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.25rem;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #292929;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.search-button:hover {
    color: #fff;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.language-switcher .lang-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
}

.language-switcher .lang-button.active {
    background-color: #4b5563;
    color: #fff;
}

/* Remove mobile-only restriction for language switcher */
@media (min-width: 768px) {
    .language-switcher.mobile-only {
        display: flex !important; /* Override any previous display:none */
    }
}

.auth-buttons {
    display: none;
}

@media (min-width: 768px) {
    .auth-buttons {
        display: flex;
        gap: 0.5rem;
    }
}

.login-button {
    border-radius: 9999px;
    background-color: #292929;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    transition: background-color 0.2s;
}

@media (min-width: 768px) {
    .login-button {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

.login-button:hover {
    background-color: #333;
}

.register-button {
    border-radius: 9999px;
    background: linear-gradient(to bottom, #e6b829, #edc849);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #000;
    transition: filter 0.2s;
}

@media (min-width: 768px) {
    .register-button {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

.register-button:hover {
    filter: brightness(110%);
}

/* Мобильное боковое меню */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #0e0e0e;
    z-index: 100;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #222;
}

.mobile-sidebar-logo {
    height: 30px;
}

.close-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    color: #9ca3af;
    border-radius: 50%;
    background-color: #222;
}

.mobile-sidebar-content {
    padding: 1rem;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-sidebar-item:not(.active) {
    color: #9ca3af;
}

.mobile-sidebar-item.active {
    background-color: #222;
    color: #fff;
}

.mobile-sidebar-item:not(.active):hover {
    background-color: #1a1a1a;
    color: #fff;
}

.mobile-sidebar-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.login-button-full, .register-button-full {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.login-button-full {
    background-color: #292929;
    color: #fff;
}

.register-button-full {
    background: linear-gradient(to bottom, #e6b829, #edc849);
    color: #000;
}

.mobile-sidebar-language {
    padding-top: 1rem;
    border-top: 1px solid #222;
    display: block !important; /* Force display */
    visibility: visible !important; /* Ensure visibility */
    opacity: 1 !important; /* Ensure opacity */
    margin-top: 1rem;
}

.mobile-sidebar-language p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block !important;
}

.language-switcher-full {
    display: flex !important;
    gap: 0.5rem;
}

.language-switcher-full .lang-button {
    flex: 1;
    display: block;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s;
    color: #9ca3af;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.language-switcher-full .lang-button.active {
    background-color: #4b5563;
    color: #fff;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* Основной контент */
main {
    padding-top: 64px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 60px;
}

/* Hero секция */
.hero-f {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .hero-f {
        height: 340px;
        background-position: 30% 15%;
    }
}

.hero-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0;
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .register-button-large,
    .login-button-large {
        width: 100%;
        padding: 1rem;
        font-size: 1.125rem;
    }
}

.register-button-large {
    border-radius: 9999px;
    background: linear-gradient(to bottom, #e6b829, #edc849);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    transition: filter 0.2s;
    white-space: nowrap;
}

.register-button-large:hover {
    filter: brightness(110%);
}

.login-button-large {
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.login-button-large:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 374px) {
    .hero-content {
        padding: 0;
    }

    .register-button-large,
    .login-button-large {
        padding: 0.875rem;
        font-size: 1rem;
    }
}

/* Дополнительные медиа-запросы для разных размеров экранов */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-f {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }
}

/* Секция способов оплаты */
.payment-methods {
    padding: 3rem 0;
    background-color: #240e0e;
    margin-top: -1px;
}

.payment-methods h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e6b829;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .payment-icons {
        gap: 1rem;
    }
}

.payment-icon {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.payment-logo {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .payment-logo {
        height: 2rem;
    }
}

.payment-icon:hover .payment-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Секция популярных игр */
.popular-games {
    padding: 3rem 0;
}

.popular-games h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-left: 0;
    margin-bottom: 1rem;
}

.games-filter {
    display: flex;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.games-filter::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.games-section {
    padding: 0;
    margin: 0 0 2rem 0;
}

.games-section h3 {
    padding: 0;
    margin: 0 0 1rem 0;
}

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

.game-card {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.2s;
    aspect-ratio: 3/4;
    width: 100%;
}

.game-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 0.5rem;
}

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

.play-button {
    background-color: #e6b829;
    color: #000;
    font-weight: 700;
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: background-color 0.2s, transform 0.2s;
    transform: scale(0.9);
}

.game-card:hover .play-button {
    transform: scale(1);
}

.play-button:hover {
    background-color: #edc849;
}

.favorite-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    padding: 0.25rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
}

.game-tag.hot {
    background-color: #dc2626;
}

.game-tag.new {
    background-color: #2563eb;
}

.game-info {
    padding: 0.75rem;
    background: #1a1a1a;
}

.game-provider {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.game-name {
    font-size: 0.875rem;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.load-more-l {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.load-more-button {
    background-color: #e6b829;
    color: #000;
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.load-more-button:hover {
    background-color: #edc849;
}

/* Секция провайдеров игр */
.game-providers {
    padding: 3rem 0;
    background-color: transparent;
}

.game-providers h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .providers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .providers-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.provider-logo {
    background-color: #240e0e;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    aspect-ratio: 16/9;
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
    max-height: 40px;
}

.provider-logo:hover {
    transform: translateY(-5px);
}

.provider-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Секция геймификации */
.gamifi-p {
    padding: 3rem 0;
    background-color: transparent;
}

.gamifi-p h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.gamifi-featur-w {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gamifi-featur-w {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gamifi-featur-w {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: #240e0e;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
    text-decoration: none;
    display: block;
    color: inherit;
}

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

.feature-icon {
    font-size: 2rem;
    color: #FFB800;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Секция особенностей */
.featur-k {
    padding: 0;
    background-color: transparent;
    margin-top: -1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-box {
    background-color: #240e0e;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.9;
}

.feature-img-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.feature-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

@media (max-width: 480px) {
    .feature-box h3 {
        font-size: 0.875rem;
    }
    
    .features-grid {
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .feature-box {
        padding: 0.75rem 0;
    }
}

/* Секция мобильного приложения */
.mobile-app {
    padding: 3rem 0;
    background-color: transparent;
}

.mobile-app-content {
    background-color: #240e0e;
    border-radius: 1rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 280px;
}

.mobile-app-text {
    max-width: 600px;
    z-index: 1;
}

.mobile-app h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.mobile-app p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.mobile-app-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-app-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.app-store-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.app-store-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.app-store-button:hover {
    color: #fff;
}

.app-rating {
    background: rgba(35, 24, 24, 0.5);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.app-rating img {
    width: 24px;
    height: 24px;
}

.app-rating .stars {
    color: #FFB800;
}

.app-rating .verified {
    background: #2F9B4E;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.discover-button {
    background: linear-gradient(to bottom, #FFD700, #FFB800);
    color: #000;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    transition: filter 0.2s;
    border: none;
    cursor: pointer;
}

.discover-button:hover {
    filter: brightness(1.1);
}

/* Футер */
.footer {
    padding: 3rem 0;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.footer-nav-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
    opacity: 0.7;
}

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

.footer-nav-column li {
    margin-bottom: 0.75rem;
}

.footer-nav-column a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-nav-column a:hover {
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.help-section {
    text-align: right;
}

.help-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.help-section p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.help-section .email {
    color: #FFB800;
    text-decoration: none;
    font-weight: 500;
}

/* Мобильная нижняя навигация */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0e0e0e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    z-index: 1000;
    display: none; /* Hidden by default */
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        height: 64px;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #9ca3af;
        text-decoration: none;
        font-size: 0.75rem;
        gap: 0.25rem;
        padding: 0.25rem;
        transition: color 0.2s;
    }

    .mobile-nav-item i {
        font-size: 1.25rem;
        margin-bottom: 0.125rem;
    }

    .mobile-nav-item span {
        font-size: 0.75rem;
        white-space: nowrap;
        text-align: center;
    }

    .mobile-nav-item.active {
        color: #e6b829;
    }

    /* Add padding to main content to account for bottom nav */
    main {
        padding-bottom: 64px;
    }

    /* Ensure footer has enough padding at bottom */
    .footer {
        padding-bottom: calc(64px + 2rem);
    }

    .footer-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .footer-nav-column {
        margin-bottom: 1rem;
        min-width: 120px;
    }
}

/* Стили для страницы игр */
.games-page-main {
    padding-top: 64px;
}

.games-header {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: #240e0e;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .games-header {
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }
}

.games-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

@media (min-width: 768px) {
    .games-header h1 {
        font-size: 2.25rem;
    }
}

.games-header p {
    color: #9ca3af;
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .games-header p {
        font-size: 1rem;
    }
}

.games-filters {
    padding: 0 0 2rem 0;
}

.filters-container {
    background-color: #1f1f1f;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #2a2a2a;
}

.search-filter {
    margin-bottom: 1.5rem;
}

.search-input {
    display: flex;
    align-items: center;
    background-color: #2d2d2d;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #3a3a3a;
}

.search-input i {
    color: #9ca3af;
    margin-right: 0.5rem;
}

.search-input input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 0.875rem;
}

.search-input input::placeholder {
    color: #9ca3af;
}

.category-filter, .provider-filter {
    margin-bottom: 1.5rem;
}

.category-filter h3, .provider-filter h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e6b829;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-option {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    background-color: #2d2d2d;
    color: #9ca3af;
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

@media (min-width: 768px) {
    .filter-option {
        font-size: 0.875rem;
        padding: 0.375rem 1rem;
    }
}

.filter-option.active {
    background-color: #e6b829;
    color: #000;
    font-weight: 500;
}

.filter-option:not(.active):hover {
    background-color: #3a3a3a;
    color: #fff;
    border-color: #4a4a4a;
}

.games-grid-section {
    padding-bottom: 3rem;
}

.games-grid-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #1f1f1f;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination-button.active {
    background-color: #e6b829;
    color: #000;
    font-weight: 600;
}

.pagination-button:not(.active):hover {
    background-color: #3a3a3a;
    color: #fff;
}

.pagination-dots {
    color: #9ca3af;
    padding: 0 0.25rem;
}

/* Дополнительные стили для игр */
.game-card-container {
    aspect-ratio: 1 / 1.5;
    height: 100%;
}

.fallback-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 90%;
}

/* Дополнительные стили из index.html */
.section-container {
    max-width: 1400px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.popular-games h2 {
    padding-left: 0;
    margin-bottom: 1rem;
}

.games-filter {
    display: flex;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.games-filter::-webkit-scrollbar {
    display: none;
}

.category-tabs {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

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

.games-section .games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .games-section .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .games-section .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .games-section .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

.game-image {
    aspect-ratio: 3/4;
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    overflow: hidden;
}

.game-info {
    height: 60px !important;
    margin-top: 0.75rem;
}

.games-section {
    padding: 0;
    margin: 0 0 2rem 0;
}

.games-section h3 {
    padding: 0;
    margin: 0 0 1rem 0;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 60px;
}

.payment-methods {
    background-color: #0e0e0e;
    padding: 1.5rem 0;
    margin-top: -1px;
}

.payment-methods h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e6b829;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .payment-icons {
        gap: 1rem;
    }
}

.payment-icon {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.payment-logo {
    height: 1.75rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .payment-logo {
        height: 2rem;
    }
}

.payment-icon:hover .payment-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    text-decoration: none;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.2s;
}

.section-header:hover h2 {
    color: #FFB800;
}

/* Mobile view adjustments for game cards */
@media (max-width: 767px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .game-card {
        margin-bottom: 0.5rem;
    }
}

/* Hide Misiones section in mobile */
@media (max-width: 767px) {
    h3:contains("Misiones"),
    div.feature-box:has(img[alt="Misiones"]),
    .feature-box:has(> .feature-img-container > img[alt="Misiones"]) {
        display: none !important;
    }
}

/* Hide Misiones feature box in mobile */
@media (max-width: 767px) {
    .mision-featur-k {
        display: none !important;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #0e0e0e;
    border-bottom: 1px solid #222;
    z-index: 50;
    overflow: hidden; /* Prevent content overflow */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%; /* Ensure container doesn't exceed viewport */
}

@media (max-width: 767px) {
    .navbar-container {
        padding: 0 0.5rem;
    }

    .navbar-right {
        display: flex;
        align-items: center;
        gap: 0.25rem; /* Reduce gap for mobile */
    }

    /* Adjust logo size */
    .logo-image {
        height: 24px;
        width: auto;
    }

    /* Hide language switcher on mobile */
    .language-switcher.mobile-only {
        display: none;
    }

    /* Show and style auth buttons */
    .auth-buttons {
        display: flex;
        gap: 0.25rem;
    }

    .login-button,
    .register-button {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Adjust search button size */
    .search-button {
        width: 32px;
        height: 32px;
    }

    /* Adjust hamburger menu */
    .hamburger-menu {
        width: 32px;
        height: 32px;
        margin-right: 0.25rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 767px) {
    .section-container {
        max-width: 100vw;
        padding: 0 1rem;
        overflow: hidden;
    }

    .features-grid {
        margin: 0;
        padding: 0 1rem;
        width: auto;
    }

    .game-providers .providers-grid {
        margin: 0;
        padding: 0;
    }

    .mobile-app-content {
        overflow: hidden;
    }

    .footer-container {
        max-width: 100vw;
        overflow: hidden;
        padding: 0 1rem;
    }

    /* Ensure all grids don't cause horizontal scroll */
    .games-grid,
    .providers-grid,
    .gamifi-featur-w,
    .features-grid {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Fix category tabs scrolling */
    .games-filter {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .category-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0;
        padding-bottom: 0.5rem;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile auth buttons and footer fixes */
@media (max-width: 767px) {
    /* Show auth buttons on mobile */
    .auth-buttons {
        display: flex;
        gap: 0.5rem;
    }

    /* Adjust auth buttons size */
    .login-button,
    .register-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Footer layout fixes */
    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .footer-nav-column {
        margin-bottom: 1rem;
        min-width: 120px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-info {
        order: 2;
    }

    .footer-social {
        order: 1;
        justify-content: center;
        display: flex;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Adjust footer text size */
    .footer-info p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* Add some spacing in footer */
    .footer {
        padding: 2rem 0 5rem; /* Extra bottom padding for mobile nav */
    }

    .footer-container {
        padding: 0 1rem;
    }
}

/* Fix mobile sidebar classes */
.mobile-sidebar.active {
    left: 0;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    /* Hide the last card in each games section on index page mobile view */
    body:not(.games-page) .games-section .games-grid .game-card:nth-child(5) {
        display: none;
    }

    .game-image {
        padding-top: 150%; /* Slightly shorter aspect ratio for mobile */
    }
}

/* Clear image cache fix */
.game-image img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
} 