:root {
    --primary-color: #0088cc;
    --secondary-color: #005580;
    --dark-bg: #1e1e2d;
    --card-bg: #2b2b3d;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --success-color: #26c15f;
    --danger-color: #F44336;
}

/* Кастомный скроллбар */
/* Webkit браузеры (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 2px solid var(--dark-bg);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary-color);
}

::-webkit-scrollbar-corner {
    background: var(--dark-bg);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Предотвращаем масштабирование при двойном тапе на мобильных */
* {
    touch-action: manipulation;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    /* Дополнительная защита от масштабирования */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px; /* Добавляем отступ для плавающего меню */
}

/* Общие стили для заголовков секций */
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: left;
}

/* Блок 1: Шапка сайта */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap; /* Предотвращаем перенос текста */
}

.logo a:hover {
    color: var(--text-light);
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wallet-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 8px 15px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wallet-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.balance-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 8px 15px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.balance-container:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.ton-amount {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ton-icon {
    color: var(--primary-color);
}

.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.profile-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: border-color 0.3s;
}

.profile-img:hover img {
    border-color: var(--text-light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0px 0;
    margin-top: 10px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.profile-dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Блок 2: Live-лента выигрышей */
.live-feed {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
}


.live-feed h2 {
    font-size: 24px;
    color: var(--primary-color);
    white-space: nowrap;
}

.wins-container {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 0 10px;
    align-items: center;
    min-height: 80px;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Скрытие скроллбара для live-ленты */
.wins-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

.win-circle {
    width: 70px;
    height: 70px;
    position: relative;
    perspective: 1000px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.win-circle:active {
    transform: scale(0.95);
}

.win-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.win-circle:hover .win-flipper {
    transform: rotateY(180deg);
}

.win-front, .win-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.win-front {
    z-index: 2;
    transform: rotateY(0deg);
    background-color: rgba(255, 255, 255, 0.05);
}

.win-back {
    transform: rotateY(180deg);
    background-color: rgba(255, 255, 255, 0.1);
}

.win-front img, .win-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.win-tooltip {
    position: absolute;
    width: 150px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 5px;
    padding: 8px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.win-tooltip:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.9);
}

.win-circle:hover .win-tooltip {
    opacity: 1;
}

.win-user {
    font-weight: bold;
    margin: 0 0 4px 0;
    color: white;
}

.win-amount {
    color: var(--success-color);
    font-weight: bold;
    margin: 0 0 4px 0;
}

.win-time {
    color: var(--text-gray);
    font-size: 11px;
    display: block;
}

/* Блок 3: Игровые режимы */
.game-modes {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.game-modes h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mode-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mode-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.mode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mode-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.play-mode-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 100%;
}

.play-mode-btn:hover {
    background-color: var(--secondary-color);
}

/* Стили для неактивных игровых режимов */
.mode-card.inactive {
    opacity: 0.6;
    cursor: not-allowed;
}

.mode-card.inactive .mode-image {
    border-color: var(--text-gray);
}

.mode-card.inactive:hover {
    transform: none;
    box-shadow: none;
}

.play-mode-btn.disabled {
    background-color: var(--text-gray);
    color: var(--dark-bg);
    cursor: not-allowed;
}

.play-mode-btn.disabled:hover {
    background-color: var(--text-gray);
}

/* Блок 4: Баннер с картинкой */
.banner {
    position: relative;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 136, 204, 0.3);
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 13px;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 13px;
}

.banner-text {
    flex: 1;
    max-width: 60%;
}

.banner-text h2 {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.banner-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.banner-button {
    flex-shrink: 0;
}

.banner-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 16px;
}

.banner-btn:hover {
    background-color: var(--secondary-color);
}

/* Блок 5: Список кейсов */
.cases-section {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.cases-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s;
    min-width: 0; /* Предотвращает переполнение */
}

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

.case-card img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    object-fit: contain;
    display: block;
}

.case-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-price {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.open-case-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 0;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.open-case-btn:hover {
    background-color: var(--secondary-color);
}

/* Блок 6: Навигация */
.site-navigation {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(43, 43, 61, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Скрыто по умолчанию на ПК */
}

.site-navigation ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-navigation li {
    flex: 1;
    text-align: center;
}

.site-navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-gray);
    padding: 5px;
    transition: color 0.3s;
    position: relative;
}

.site-navigation a i {
    font-size: 20px;
    margin-bottom: 5px;
}

.site-navigation a span {
    font-size: 12px;
}

.site-navigation a:hover,
.site-navigation a.active {
    color: var(--primary-color);
}

.site-navigation a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

/* Модальное окно с выигрышем */
.reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.reward-modal.show {
    opacity: 1;
}

.reward-modal.fade-out {
    opacity: 0;
}

.reward-modal-content {
    background-color: #2b2b3d;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.reward-modal h2 {
    margin-bottom: 15px;
    color: #0088cc;
}

.reward-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 30px 0;
}

.reward-amount.win {
    color: #26c15f;
}

.reward-amount.lose {
    color: #a0a0a0;
}

.close-modal-btn {
    background-color: #0088cc;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.close-modal-btn:hover {
    background-color: #005580;
}

/* Модальное окно с информацией о выигрыше */
.win-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
}

.win-info-modal.show {
    opacity: 1;
}

.win-info-modal.fade-out {
    opacity: 0;
}

.win-info-modal-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
}

.win-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.win-info-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.close-win-info-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.close-win-info-btn:hover {
    color: var(--text-light);
}

.win-info-body {
    padding: 20px;
}

.win-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.win-info-item:last-child {
    margin-bottom: 0;
}

.win-info-label {
    color: var(--text-gray);
    font-weight: 500;
}

.win-info-value {
    color: var(--text-light);
    font-weight: bold;
}

.win-info-value.win-amount-value {
    color: var(--success-color);
}



/* Стили для кнопки входа */
.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 8px 15px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    gap: 8px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* Стили для модальных окон авторизации */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.auth-modal.show .auth-modal-content {
    transform: scale(1);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.close-auth-modal {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-auth-modal:hover {
    color: var(--text-light);
}

.auth-modal-body {
    padding: 25px;
}

.telegram-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #0088cc, #005580);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.telegram-login-btn:hover {
    background: linear-gradient(135deg, #005580, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.telegram-login-btn i {
    font-size: 18px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    background: var(--card-bg);
    color: var(--text-gray);
    padding: 0 15px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.2);
}

.form-group input::placeholder {
    color: var(--text-gray);
}

.captcha-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* базовый размер */
.captcha-placeholder iframe {
    transform: scale(0.85);
    transform-origin: top center;
    width: 300px;   /* фиксированный размер капчи */
    height: 65px;   /* стандартная высота */
}

/* под мобилки */
@media (max-width: 480px) {
    .captcha-placeholder iframe {
        transform: scale(0.75);
        width: 300px;
        height: 65px;
    }
}

.auth-submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.auth-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.auth-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--text-light);
}

.auth-links span {
    color: var(--text-gray);
    font-size: 14px;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message i {
    font-size: 48px;
    color: var(--success-color);
    margin-bottom: 15px;
    display: block;
}

.success-message p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: row;
        align-items: center;
    }

    .logo a {
        font-size: 20px; /* Уменьшаем размер шрифта на мобильных */
        letter-spacing: 0.5px; /* Уменьшаем межбуквенный интервал */
    }

    .user-panel {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-feed {
        flex-direction: column;
    }


    .site-navigation {
        display: block; /* Показываем на мобильных */
        width: 100%;
        border-radius: 15px 15px 0 0;
        bottom: 0;
    }

    .banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
    }

    .banner-text {
        max-width: 60%;
        flex: 1;
    }

    .banner-text h2 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .banner-text p {
        display: none; /* Скрываем описание на мобильных */
    }

    .banner-btn {
        padding: 8px 16px;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* Адаптивность для модальных окон */
    .auth-modal-content {
        width: 95%;
        margin: 20px;
    }

    .auth-modal-header {
        padding: 15px 20px 10px;
    }

    .auth-modal-header h3 {
        font-size: 18px;
    }

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

    .form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Предотвращаем зум на iOS */
    }

    .telegram-login-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .auth-submit-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Закрепление шапки */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a3a 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    margin-bottom: 0;
    border-radius: 0 0 15px 15px;
}

/* Добавляем отступ для контента, чтобы он не скрывался под шапкой */
.container {
    padding-top: 100px; /* Увеличиваем отступ сверху */
}

/* Адаптивность для закрепленной шапки */
@media (max-width: 1200px) {
    .header {
        left: 20px;
        right: 20px;
        transform: none;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 10px 15px;
        border-radius: 0;
    }
    
    .container {
        padding-top: 80px; /* Уменьшаем отступ на мобильных */
    }
}

@media (max-width: 480px) {
    .header {
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 8px 10px;
        border-radius: 0;
    }
    
    .container {
        padding-top: 70px; /* Еще меньше на маленьких экранах */
    }
}

/* Дополнительные стили для улучшения внешнего вида закрепленной шапки */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    border-radius: 0 0 15px 15px; /* Добавляем скругление для псевдоэлемента */
    overflow: hidden; /* Обрезаем свечение, чтобы оно не выходило за границы */
}

/* Обновляем псевдоэлемент для мобильных устройств */
@media (max-width: 768px) {
    .header::before {
        border-radius: 0; /* Убираем скругление на мобильных */
    }
}

/* Плавная анимация появления/исчезновения шапки при скролле */
.header {
    transition: all 0.3s ease;
}

/* Стили для выпадающего меню профиля с учетом закрепленной шапки */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Анимация для live-ленты выигрышей с учетом закрепленной шапки */
.live-feed {
    margin-top: 20px; /* Добавляем отступ от закрепленной шапки */
}

/* Дополнительный отступ для контента снизу, чтобы он не скрывался под навигацией */
.container {
    padding-bottom: 100px; /* Увеличиваем отступ снизу */
}

@media (max-width: 768px) {
    .container {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-bottom: 70px;
    }
}

/* Стили для модальных окон с учетом закрепленной шапки */
.modal {
    z-index: 2000; /* Увеличиваем z-index для модальных окон */
}

/* Стили для уведомлений с учетом закрепленной шапки */
.notification {
    top: 100px; /* Сдвигаем уведомления ниже закрепленной шапки */
    z-index: 1500;
}

@media (max-width: 768px) {
    .notification {
        top: 80px;
    }
}

@media (max-width: 480px) {
    .notification {
        top: 70px;
    }
}

/* Плавная прокрутка для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Дополнительные стили для улучшения читаемости */
body {
    padding-top: 0; /* Убираем лишний padding-top у body */
}

/* Стили для секций с учетом закрепленной шапки */
section {
    position: relative;
    z-index: 1;
}

/* Стили для кнопок с учетом закрепленной шапки */
.play-mode-btn, .open-case-btn {
    transition: all 0.3s ease;
}

.play-mode-btn:hover, .open-case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}