* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    padding-bottom: 0; /* Убираем отступ для ПК, т.к. bottom-nav только для мобильных */
    line-height: 1.5;
}

/* Для ПК скрываем bottom-nav и показываем обычный header */
.bottom-nav {
    display: none;
}

/* Адаптируем header под ПК */
.new-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 16px 40px; /* Увеличенные отступы */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem; /* Увеличили лого */
}

.logo-area a {
    text-decoration: none;
    background: linear-gradient(135deg, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-area i {
    background: none;
    color: #3b82f6;
    font-size: 1.8rem;
}

.header-buttons {
    display: flex;
    gap: 16px;
}

.header-btn {
    padding: 10px 24px; /* Увеличенные кнопки */
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-login-header {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #1e293b;
}

.btn-login-header:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-register-header {
    background: #3b82f6;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
}

.btn-register-header:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f1f5f9;
    padding: 8px 20px 8px 16px;
    border-radius: 60px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.user-name-small {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
}

.user-balance-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 16px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.9rem;
}

.logout-header-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 30px;
    transition: background 0.2s;
}

.logout-header-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Основной контейнер для ПК — больше ширина и отступы */
.container {
    max-width: 1400px; /* Увеличили максимальную ширину */
    margin: 0 auto;
    padding: 0 40px; /* Больше боковых отступов */
}

/* Категории — более удобные для ПК */
.categories-wrapper {
    margin: 24px 0 32px 0;
}

.categories-toggle-btn {
    display: none; /* На ПК не нужен toggle, показываем все категории сразу */
}

.categories-dropdown {
    max-height: none !important;
    overflow: visible !important;
    background: transparent;
    border-radius: 0;
    padding: 0 !important;
    border: none !important;
}

.categories-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
}

.category-pill {
    background: #f1f5f9;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.category-pill.active {
    background: #0f172a;
    color: white;
}

/* Hero Slider — адаптация под ПК */
.hero-section {
    margin: 16px 0 48px;
}

.swiper {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
}

.hero-slide {
    position: relative;
    height: 520px; /* Выше для ПК */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.hero-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    width: 100%;
    padding: 48px 40px;
    color: white;
}

.hero-category {
    background: rgba(59, 130, 246, 0.9);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    max-width: 70%;
}

.hero-meta {
    font-size: 0.85rem;
    opacity: 0.85;
    display: flex;
    gap: 20px;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 32px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* News Grid — 3-4 колонки на ПК */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

.card-img {
    height: 200px; /* Чуть выше для ПК */
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-title a:hover {
    color: #3b82f6;
}

.card-desc {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Bet Buttons — более крупные для ПК */
.bet-buttons-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef2f6;
    align-items: center;
}

.bet-group {
    display: flex;
    gap: 12px;
    flex: 1;
}

.bet-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 60px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.bet-btn-yes {
    background: #e6f7e6;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.bet-btn-yes:hover {
    background: #bbf7d0;
    transform: scale(1.02);
}

.bet-btn-no {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.bet-btn-no:hover {
    background: #fecaca;
    transform: scale(1.02);
}

.bet-coeff {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 30px;
    font-size: 0.75rem;
}

.cancel-bet-btn-full {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 60px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-bet-btn-full:hover {
    background: #fee2e2;
}

.cancel-bet-btn-full .refund-info {
    font-size: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px 12px;
    border-radius: 30px;
}

.news-link-btn {
    width: 48px;
    height: 48px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #3b82f6;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.news-link-btn:hover {
    background: #e2e8f0;
    transform: translateX(3px);
}

/* Comments */
.comments-full-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.comments-full-btn:hover {
    background: #e2e8f0;
}

.comments-full-btn.active {
    background: #8b5cf6;
    color: white;
}

.comments-full-btn.active i {
    color: white;
}

.comments-section {
    margin-top: 16px;
    display: none;
}

.comments-section.open {
    display: block;
}

.comments-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    background: #f8fafc;
    border-radius: 24px;
    padding: 14px 18px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.comment-name {
    font-weight: 700;
}

.comment-date {
    color: #94a3b8;
    font-size: 0.7rem;
}

.comment-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}

.add-comment {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.add-comment input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 60px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.add-comment input:focus {
    border-color: #3b82f6;
}

.add-comment button {
    background: #8b5cf6;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 60px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.1rem;
}

.add-comment button:hover {
    background: #7c3aed;
}

/* Модальные окна — адаптация под ПК */
.global-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.global-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 48px;
    padding: 40px 36px;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-content .sub {
    color: #64748b;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.modal-action-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 60px;
    width: 100%;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
    font-size: 1rem;
}

.modal-action-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.modal-switch {
    margin-top: 24px;
    font-size: 0.85rem;
    color: #3b82f6;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
}

.modal-switch:hover {
    text-decoration: underline;
}

.close-modal-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #64748b;
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    border: none;
    transition: color 0.2s, background 0.2s;
}

.close-modal-icon:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.telegram-auth-btn {
    background: #1e293b;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 60px;
    width: 100%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s;
    font-size: 1rem;
}

.telegram-auth-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #334155;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 60px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.amount-preset-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
    flex-wrap: wrap;
}

.amount-preset {
    background: #f1f5f9;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.amount-preset:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.amount-preset.active {
    background: #3b82f6;
    color: white;
}

.custom-amount-input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 60px;
    text-align: center;
    margin-bottom: 24px;
    outline: none;
    font-size: 1rem;
}

.custom-amount-input:focus {
    border-color: #3b82f6;
}

.news-full-text {
    text-align: left;
    margin: 20px 0;
    line-height: 1.6;
    color: #334155;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 12px;
}

/* Toast notifications — для ПК поднимаем выше */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    left: auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

.toast-notification {
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 60px;
    text-align: center;
    animation: toastSlideUp 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.9rem;
}

.toast-notification i {
    font-size: 1.2rem;
}

.toast-notification.success {
    background: #10b981;
}

.toast-notification.error {
    background: #ef4444;
}

.toast-notification.info {
    background: #3b82f6;
}

@keyframes toastSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.toast-notification.hide {
    animation: toastFadeOut 0.3s ease forwards;
}

/* Confirm dialog */
.confirm-dialog-buttons {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.confirm-dialog-buttons button {
    flex: 1;
    padding: 14px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.confirm-dialog-cancel {
    background: #f1f5f9;
    color: #475569;
}

.confirm-dialog-cancel:hover {
    background: #e2e8f0;
}

.confirm-dialog-confirm {
    background: #ef4444;
    color: white;
}

.confirm-dialog-confirm:hover {
    background: #dc2626;
}

/* Галерея — адаптация под ПК */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    display: flex;
    opacity: 1;
}

.gallery-modal .gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal .gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gallery-modal .gallery-image {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: galleryZoomIn 0.3s ease;
}

@keyframes galleryZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-modal .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: white;
    font-size: 1.5rem;
}

.gallery-modal .gallery-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.gallery-modal .gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.gallery-modal .gallery-prev {
    left: 32px;
}

.gallery-modal .gallery-next {
    right: 32px;
}

.gallery-modal .gallery-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    color: white;
    font-size: 1.3rem;
}

.gallery-modal .gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.gallery-modal .gallery-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 40px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 10;
}

.gallery-modal .gallery-thumbnails {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    overflow-x: auto;
    z-index: 10;
}

.gallery-modal .gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.gallery-modal .gallery-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-modal .gallery-thumbnail.active {
    opacity: 1;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Страница новости детально — ПК */
.news-detail {
    background: white;
    border-radius: 40px;
    overflow: hidden;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.news-detail-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.news-detail-content {
    padding: 48px;
}

.news-detail-category {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.news-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    gap: 32px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.news-detail-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 40px;
}

.news-detail-bet {
    background: #f8fafc;
    padding: 32px;
    border-radius: 32px;
    margin-top: 32px;
}

.news-detail-bet-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.news-detail-bet-buttons {
    display: flex;
    gap: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.85rem;
    color: #64748b;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Баланс */
.balance-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.balance-coin {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.balance-amount {
    font-weight: 700;
}

/* Страница профиля — ПК */
.profile-wrapper {
    max-width: 800px;
    margin: 48px auto;
}

.profile-card {
    background: white;
    border-radius: 48px;
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.profile-email {
    color: #64748b;
    margin-bottom: 28px;
}

.profile-balance {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 16px 32px;
    border-radius: 80px;
    margin: 20px 0;
}

.profile-balance .balance-coin {
    width: 32px;
    height: 32px;
}

.profile-balance span {
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 40px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3b82f6;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}

.profile-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 32px;
}

.profile-actions button {
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-logout-prof {
    background: #ef4444;
    color: white;
}

.btn-logout-prof:hover {
    background: #dc2626;
}

.btn-home {
    background: #3b82f6;
    color: white;
}

.btn-home:hover {
    background: #2563eb;
}

/* Магазин — ПК */
.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.shop-card {
    background: white;
    border-radius: 32px;
    padding: 36px 24px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.2s;
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.1);
}

.shop-card i {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 20px;
}

.shop-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.shop-card .price {
    font-weight: 800;
    font-size: 1.5rem;
    color: #3b82f6;
    margin: 16px 0;
}

.shop-card button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 60px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.shop-card button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.balance-info {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border-radius: 32px;
    padding: 28px 36px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-info span {
    font-size: 2rem;
    font-weight: 800;
}

/* Страница ставок — ПК */
.bets-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0 48px;
}

.stat-card {
    background: white;
    border-radius: 32px;
    padding: 28px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 32px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bet-item {
    background: white;
    border-radius: 32px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
    transition: all 0.2s;
}

.bet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.bet-header {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.bet-img {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
}

.bet-info {
    flex: 1;
}

.bet-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.bet-title a {
    text-decoration: none;
    color: inherit;
}

.bet-title a:hover {
    color: #3b82f6;
}

.bet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #475569;
    margin: 16px 0;
}

.bet-choice {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 0.75rem;
}

.choice-yes {
    background: #e6f7e6;
    color: #15803d;
}

.choice-no {
    background: #fee2e2;
    color: #b91c1c;
}

.bet-amount {
    font-weight: 800;
    font-size: 1rem;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cancel-bet-btn {
    background: #fee2e2;
    border: none;
    padding: 10px 28px;
    border-radius: 60px;
    color: #b91c1c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-bet-btn:hover {
    background: #fecaca;
    transform: scale(1.02);
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 48px;
    margin: 32px 0;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.history-item {
    background: #f8fafc;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f1f5f9;
}

.refund-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    font-size: 2rem;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Медиа-запросы для планшетов и маленьких ПК */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        max-width: 85%;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
    
    .news-detail-content {
        padding: 32px;
    }
    
    .news-detail-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /* На планшетах показываем bottom-nav и адаптируем под мобильные */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        justify-content: space-around;
        padding: 10px 20px 22px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 30;
    }
    
    body {
        padding-bottom: 80px;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.7rem;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
    }
    
    .nav-item i {
        font-size: 1.5rem;
    }
    
    .nav-item.active {
        color: #3b82f6;
        transform: translateY(-2px);
    }
    
    .new-header {
        padding: 12px 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-slide {
        height: 360px;
    }
    
    .hero-title {
        font-size: 1.2rem;
        max-width: 100%;
    }
    
    .hero-overlay {
        padding: 24px 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-toggle-btn {
        display: flex;
        width: 100%;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 60px;
        padding: 12px 20px;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 8px;
    }
    
    .categories-dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: white;
        border-radius: 28px;
    }
    
    .categories-dropdown.open {
        max-height: 300px;
        padding: 12px 16px;
        border: 1px solid #e2e8f0;
        margin-top: 8px;
    }
    
    .categories-flex {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .bet-btn {
        font-size: 0.75rem;
        padding: 10px 8px;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-detail-img {
        height: 250px;
    }
    
    .news-detail-content {
        padding: 24px;
    }
    
    .profile-card {
        padding: 32px 24px;
    }
    
    .profile-name {
        font-size: 1.4rem;
    }
    
    .profile-stats {
        gap: 24px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .gallery-modal .gallery-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .gallery-modal .gallery-prev {
        left: 12px;
    }
    
    .gallery-modal .gallery-next {
        right: 12px;
    }
    
    .gallery-modal .gallery-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .gallery-modal .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
        bottom: 80px;
        max-width: none;
    }
    
    .bet-header {
        flex-direction: column;
    }
    
    .bet-img {
        width: 100%;
        height: 180px;
    }
    
    .bets-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}
/* ===== НОВОЕ НИЖНЕЕ МЕНЮ ДЛЯ ПК (ЦЕНТРИРОВАННОЕ) ===== */
@media (min-width: 769px) {
    /* Скрываем старое меню, которое было спрятано */
    .bottom-nav {
        display: flex !important; /* Включаем отображение */
        position: fixed;
        bottom: 30px; /* Отступ от низа экрана */
        left: 50%;
        transform: translateX(-50%); /* Центрирование по горизонтали */
        width: auto; /* Авто-ширина под контент */
        min-width: 480px; /* Минимальная ширина, чтобы пункты не слипались */
        background: rgb(255 255 255 / 90%); /* Темный полупрозрачный фон */
        backdrop-filter: blur(20px); /* Стеклянный эффект (размытие) */
        border-radius: 60px; /* Сильное скругление */
        padding: 8px 20px; /* Внутренние отступы */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Тень для глубины */
        border: 1px solid rgba(255, 255, 255, 0.15); /* Тонкая светлая обводка */
        z-index: 1000;
        gap: 20px; /* Расстояние между иконками */
        justify-content: center;
    }

    /* Стили для пунктов меню */
    .bottom-nav .nav-item {
        display: flex;
        flex-direction: row; /* Располагаем иконку и текст в строку */
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        border-radius: 40px;
        color: #000000; /* Серый цвет текста */
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        text-decoration: none;
        background: transparent;
    }

    /* Иконка в меню */
    .bottom-nav .nav-item i {
        font-size: 1.2rem;
        transition: transform 0.2s ease;
    }

    /* Эффект при наведении */
    .bottom-nav .nav-item:hover {
        /* background: rgb(59 130 246); */
        color: #3b82f6;
        transform: translateY(-2px);
    }

    .bottom-nav .nav-item:hover i {
        transform: scale(1.1);
    }

    /* Активный пункт меню */
    .bottom-nav .nav-item.active {
        background: #3b82f6; /* Синий фон */
        color: white;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    /* Убираем старый отступ body, который был добавлен для мобильной версии (чтобы меню не наезжало) */
    body {
        padding-bottom: 100px; /* Увеличиваем отступ снизу, чтобы контент не перекрывался меню */
    }
}

/* Адаптация для мобильных устройств (оставляем старый стиль, но улучшаем его) */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        justify-content: space-around;
        padding: 10px 20px 22px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 30;
        border-radius: 0; /* На мобилках пусть будет во всю ширину */
    }
    
    body {
        padding-bottom: 80px;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.7rem;
        color: #64748b;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
    }
    
    .nav-item i {
        font-size: 1.5rem;
    }
    
    .nav-item.active {
        color: #3b82f6;
        transform: translateY(-2px);
    }
}
/* Фикс для контейнера графика, чтобы он всегда был как у .container */
.container .prediction-chart {
    width: 100%;
    box-sizing: border-box;
}

.prediction-chart {
    width: 100%;
    margin: 24px 0;
    background: #f8fafc;
    border-radius: 32px;
    padding: 24px;
    overflow-x: auto; /* Добавляем прокрутку на случай переполнения на совсем маленьких экранах */
}

.chart-container {
    position: relative;
    width: 100% !important;
    height: auto;
    min-height: 320px;
}

#predictionChart {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 320px;
}

/* Дополнительный фикс для canvas, чтобы он не выходил за пределы */
.prediction-chart canvas {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .prediction-chart {
        padding: 16px;
        margin: 16px 0;
        border-radius: 24px;
    }
    
    .chart-container {
        min-height: 260px;
    }
    
    #predictionChart {
        min-height: 260px;
    }
}