/* style.css - Неоновый киберпанк стиль с мобильной адаптацией */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    background: #070b14;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    background: 
        radial-gradient(circle at 20% 20%, #00ffd550 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, #ff3d8150 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, #6a5cff40 0%, transparent 35%),
        #070b14;
}

/* Глобальное отключение трансформаций, которые могут смещать */
.nav-button,
.card,
.balance-item,
.game-card,
.action-card,
.level-card,
.stake-item,
.nav-buttons * {
    transform: translateY(0) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

/* Убираем старые glow и сетку */
.neon-glow {
    display: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
}

/* Неоновый заголовок */
.neon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 2px solid #ff00ff;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.2);
}

@media (max-width: 768px) {
    .neon-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px 0;
    }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }
}

.logo p {
    color: #0ff;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* Балансы */
.balances {
    display: flex;
    gap: 15px;
    background: #111116;
    padding: 8px 20px;
    border-radius: 16px;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .balances {
        gap: 12px;
        padding: 8px 15px;
        width: 100%;
        justify-content: space-around;
    }
}

.bal {
    text-align: center;
}
.bal-label {
    font-size: 0.65rem;
    color: #ff00ff;
}
.bal-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: monospace;
}

@media (max-width: 768px) {
    .bal-value {
        font-size: 1rem;
    }
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 12px;
    background: #0f0f14;
    border-radius: 50px;
    border: 1px solid #ff00ff;
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 8px;
        padding: 10px;
        border-radius: 40px;
    }
}

.nav-item {
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-item {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.nav-item:hover, .nav-item.active {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #000;
    box-shadow: 0 0 15px #ff00ff;
}

/* ДВЕ КОЛОНКИ */
.stats-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .stats-two-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Карточки */
.profile-card {
    background: #0f0f14;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #0ff;
}

@media (max-width: 768px) {
    .profile-card {
        padding: 15px;
        border-radius: 16px;
    }
}

.section-title {
    color: #ff00ff;
    font-size: 1rem;
    margin-bottom: 15px;
    border-left: 3px solid #ff00ff;
    padding-left: 12px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}

/* Стейкинг карточка */
.staking-stats-inner {
    background: linear-gradient(135deg, #0f0f14, #1a1a22);
    border-radius: 16px;
    padding: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .stat-row {
        margin-bottom: 10px;
        font-size: 0.85rem;
    }
}

.stat-label {
    color: #888;
    font-size: 0.85rem;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0ff;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 1.2rem;
    }
}

.stat-value-small {
    font-size: 1rem;
}

/* Стейк карточки */
.stake-card {
    background: #0a0a0f;
    border: 1px solid #ff00ff33;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    transition: 0.2s;
}

@media (max-width: 768px) {
    .stake-card {
        padding: 12px;
        margin-bottom: 12px;
    }
}

.stake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.stake-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0ff;
}

@media (max-width: 768px) {
    .stake-amount {
        font-size: 1.1rem;
    }
}

.stake-apr {
    color: #ff00ff;
    font-weight: bold;
    font-size: 0.85rem;
}

.stake-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .stake-details {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

.stake-detail {
    font-size: 0.8rem;
}

.stake-detail span:first-child {
    color: #888;
}

.rewards-live {
    font-size: 1rem;
    color: #0ff;
    font-family: monospace;
}

@media (max-width: 768px) {
    .rewards-live {
        font-size: 0.85rem;
    }
}

/* Кнопки */
.cancel-stake-btn {
    background: transparent;
    border: 1px solid #ff00ff;
    color: #ff00ff;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.8rem;
}

.cancel-stake-btn:hover {
    background: #ff00ff;
    color: #000;
}

@media (max-width: 768px) {
    .cancel-stake-btn {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .action-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* Неоновые кнопки */
.neon-btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

@media (max-width: 768px) {
    .neon-btn-group {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

.neon-btn {
    background: transparent;
    border: 1.5px solid #0ff;
    color: #0ff;
    padding: 10px 12px;
    border-radius: 60px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .neon-btn {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

.neon-btn:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 25px #0ff;
    border-color: #0ff;
}

.btn-pink {
    border-color: #ff00ff;
    color: #ff00ff;
}
.btn-pink:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 25px #ff00ff;
}

.btn-primary-neon {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    color: #000;
    font-weight: bold;
}

/* Таблицы */
.data-panel {
    background: #0a0a0fcc;
    border: 1px solid #ff00ff;
    border-radius: 20px;
    overflow-x: auto;
    padding: 0;
}

@media (max-width: 768px) {
    .data-panel {
        border-radius: 16px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #ff00ff33;
}

@media (max-width: 768px) {
    th, td {
        padding: 8px 8px;
        font-size: 0.75rem;
    }
}

th {
    color: #0ff;
    font-size: 0.75rem;
}

.join-neon {
    background: none;
    border: 1px solid #0ff;
    border-radius: 30px;
    padding: 4px 12px;
    color: #0ff;
    cursor: pointer;
    font-size: 0.7rem;
}

/* Модалки */
.modal-neon {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-neon-content {
    background: #111;
    border: 2px solid #0ff;
    border-radius: 24px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 40px #ff00ff;
}

@media (max-width: 768px) {
    .modal-neon-content {
        padding: 20px;
        border-radius: 20px;
    }
}

.modal-neon-content input, .modal-neon-content select {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: #1a1a22;
    border: 1px solid #ff00ff;
    color: white;
    border-radius: 60px;
    font-size: 0.9rem;
}

/* Уведомления */
.neon-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a22;
    border: 2px solid #0ff;
    border-radius: 16px;
    padding: 12px 20px;
    z-index: 2000;
    animation: slideUp 0.3s ease;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .neon-toast {
        bottom: 15px;
        padding: 10px 15px;
        font-size: 0.75rem;
        border-radius: 12px;
    }
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Список игр */
.game-list {
    max-height: 300px;
    overflow-y: auto;
}

.game-item {
    padding: 10px;
    border-bottom: 1px solid #ff00ff33;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .game-item {
        padding: 8px;
        flex-direction: column;
        text-align: center;
    }
}

/* Реферальная таблица */
.referral-table {
    margin-top: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.referral-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #ff00ff33;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .referral-row {
        font-size: 0.7rem;
        padding: 6px;
    }
}

/* Анимация обновления */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.updating {
    animation: pulse 0.5s ease;
}

/* Предупреждения */
.warning-text {
    color: #ff00ff;
    font-size: 0.7rem;
    margin-top: 10px;
}

/* Сетка карточек на главной */
.cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .cyber-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.cyber-card {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 20px;
    padding: 15px;
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .cyber-card {
        padding: 12px;
        border-radius: 16px;
    }
    .card-icon {
        font-size: 1.5rem;
    }
    .stat-num {
        font-size: 1.3rem;
    }
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.1), transparent);
    transition: 0.4s;
}

.cyber-card:hover::before {
    left: 100%;
}

.cyber-card:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 20px #ff00ff;
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
}

/* Login form */
.login-form {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.login-input {
    width: 100%;
    padding: 14px;
    background: #1a1a22;
    border: 1px solid #ff00ff;
    color: white;
    border-radius: 60px;
    font-size: 1rem;
    text-align: center;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .login-input {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Hero секция */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255,0,255,0.05), rgba(0,255,255,0.05));
    border-radius: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 25px 15px;
        border-radius: 20px;
    }
}

.hero-title {
    font-size: 2.5rem;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }
}

.hero-subtitle {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Feature сетка */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: #0f0f14;
    border-radius: 20px;
    border: 1px solid #0ff;
}

@media (max-width: 768px) {
    .feature-item {
        padding: 15px;
    }
    .feature-item h3 {
        font-size: 0.9rem;
    }
    .feature-item p {
        font-size: 0.7rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 1px solid #ff00ff33;
    color: #666;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    footer {
        padding: 20px;
        margin-top: 30px;
    }
}

/* Статус активный */
.status-active {
    color: #0ff;
}

/* ========== СТИЛИ ДЛЯ DASHBOARD (ДОБАВИТЬ В КОНЕЦ) ========== */

/* Карточки */
.card {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card-title {
    color: #ff00ff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-left: 3px solid #ff00ff;
    padding-left: 12px;
}

/* Статистика */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #ff00ff1a;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0ff;
    font-family: monospace;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Анимация летающих монет */
.floating-coins {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.coin {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: floatCoin linear infinite;
    filter: drop-shadow(0 0 5px rgba(0,255,255,0.2));
    pointer-events: none;
}

@keyframes floatCoin {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Блок пользователя в шапке */
.header-user-block {
    background: linear-gradient(135deg, #0f0f14 0%, #1a1a2a 100%);
    border: 1px solid #ff00ff;
    border-radius: 20px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: space-between;
    max-width: 70%;
}

.user-info-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-name h3 {
    font-size: 1.1rem;
    color: #0ff;
    margin: 0;
}

.user-name p {
    font-size: 0.65rem;
    color: #888;
    margin: 2px 0 0;
}

.user-stats-expanded {
    display: flex;
    gap: 30px;
}

.user-stat-item {
    text-align: center;
}

.user-stat-item .stat-label {
    font-size: 0.65rem;
    color: #ff00ff;
    letter-spacing: 0.5px;
}

.user-stat-item .stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0ff;
    font-family: monospace;
}

/* ========== КАРБОНОВЫЕ КНОПКИ НАВИГАЦИИ - ПОЛНОСТЬЮ БЕЗ СМЕЩЕНИЯ ========== */

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.nav-button {
    background: repeating-linear-gradient(45deg, #0f0f14, #0f0f14 10px, #13131a 10px, #13131a 20px);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 22px 15px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* КЛЮЧЕВО: фиксированная высота, чтобы блок не прыгал */
    min-height: 160px;
    height: auto;
    transform: none !important;
    will-change: border-color, box-shadow;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.08), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.3);
    transform: none !important;
}

/* Иконка — НЕ меняем transform, только свечение */
.nav-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
    transition: text-shadow 0.2s ease;
    /* УБИРАЕМ transform scale — он растягивает блок */
    transform: none !important;
}

.nav-button:hover .nav-icon {
    /* Убираем scale, оставляем только свечение */
    transform: none !important;
    text-shadow: 0 0 15px #0ff, 0 0 25px #ff00ff;
}

/* Заголовок */
.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0ff;
    letter-spacing: 2px;
    margin-bottom: 5px;
    transition: font-weight 0.2s, letter-spacing 0.2s, text-shadow 0.2s;
}

.nav-button:hover .nav-title {
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 0 8px #0ff, 0 0 12px #ff00ff;
}

/* Подпись */
.nav-desc {
    font-size: 0.7rem;
    color: #888;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-button:hover .nav-desc {
    color: #0ff;
    text-shadow: 0 0 5px rgba(0,255,255,0.3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .nav-button {
        min-height: 130px;
        padding: 15px 10px;
    }
    .nav-icon {
        font-size: 2rem;
    }
    .nav-title {
        font-size: 0.9rem;
    }
}

/* ========== БАЛАНСЫ - БЕЗ СМЕЩЕНИЯ ========== */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.balance-item {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.05), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.balance-item:hover::before {
    left: 100%;
}

.balance-item:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 25px rgba(255,0,255,0.3);
}

.balance-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0ff;
    font-family: monospace;
    transition: text-shadow 0.2s;
    animation: pulseBalance 2s ease-in-out infinite;
}

.balance-item:hover .balance-value {
    animation: none;
    text-shadow: 0 0 15px #0ff;
}

.balance-label {
    font-size: 0.7rem;
    color: #ff00ff;
}

/* Реферальные уровни */
.referral-levels {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.level-card {
    background: #0a0a0f;
    border: 1px solid #ff00ff33;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.level-num {
    font-size: 0.7rem;
    color: #ff00ff;
}

.level-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0ff;
}

.level-earn {
    font-size: 0.7rem;
    color: #0ff;
}

/* Модалки */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #111;
    border: 2px solid #0ff;
    border-radius: 24px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
}

.modal-content h3 {
    color: #ff00ff;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 14px;
    background: #1a1a22;
    border: 1px solid #ff00ff;
    color: white;
    border-radius: 40px;
    margin: 15px 0;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

.balance-info {
    background: #1a1a22;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    color: #0ff;
}

/* Toast уведомление */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a22;
    border: 2px solid #0ff;
    border-radius: 16px;
    padding: 12px 20px;
    z-index: 2000;
    max-width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .header-user-block {
        max-width: 100%;
        flex-direction: column;
        padding: 15px;
    }
    .user-info-area {
        flex-direction: column;
    }
    .user-stats-expanded {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .balance-value { font-size: 1rem; }
    .referral-levels {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .nav-button {
        padding: 18px 12px;
    }
    .nav-icon {
        font-size: 2rem;
    }
    .nav-title {
        font-size: 0.9rem;
    }
    .card {
        padding: 15px;
    }
    .card-title {
        font-size: 0.9rem;
    }
    .stat-value {
        font-size: 1.1rem;
    }
}

/* ========== УСИЛЕННАЯ АНИМАЦИЯ ТОЛЬКО ДЛЯ КНОПОК НАВИГАЦИИ ========== */

.nav-title {
    transition: all 0.3s ease;
}

.nav-button:hover .nav-title {
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 0 8px #0ff, 0 0 12px #ff00ff;
}

.nav-desc {
    transition: all 0.3s ease;
}

.nav-button:hover .nav-desc {
    color: #0ff;
    text-shadow: 0 0 5px rgba(0,255,255,0.5);
}

/* ========== СЕТКА ДЛЯ БАЛАНСОВ (как в твоём старом стиле) ========== */

.balance-item {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Мелкая сетка внутри карточки баланса */
.balance-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(#00ffcc08 1px, transparent 1px),
        linear-gradient(90deg, #00ffcc08 1px, transparent 1px);
    background-size: 12px 12px;
    pointer-events: none;
    opacity: 0.4;
}

.balance-item:hover::after {
    opacity: 0.7;
}

.balance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.06), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.balance-item:hover::before {
    left: 100%;
}

.balance-item:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 25px rgba(255,0,255,0.3);
}

.balance-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0ff;
    font-family: monospace;
    transition: text-shadow 0.2s;
    animation: pulseBalance 2s ease-in-out infinite;
}

@keyframes pulseBalance {
    0%, 100% {
        text-shadow: 0 0 2px #0ff;
    }
    50% {
        text-shadow: 0 0 8px #0ff, 0 0 12px #0ff;
    }
}

.balance-item:hover .balance-value {
    animation: none;
    text-shadow: 0 0 15px #0ff;
}

.balance-label {
    font-size: 0.7rem;
    color: #ff00ff;
    transition: text-shadow 0.2s;
}

.balance-item:hover .balance-label {
    text-shadow: 0 0 6px #ff00ff;
}

/* ========== УСИЛЕННАЯ АНИМАЦИЯ ДЛЯ КАРТОЧЕК РЕФЕРАЛЬНОЙ ПРОГРАММЫ ========== */

.level-card {
    background: #0a0a0f;
    border: 1px solid #ff00ff33;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.level-card:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #0f0f14, #1a1a22);
}

.level-num {
    font-size: 0.7rem;
    color: #ff00ff;
    transition: all 0.3s ease;
}

.level-card:hover .level-num {
    text-shadow: 0 0 8px #ff00ff;
    letter-spacing: 0.5px;
}

.level-count {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0ff;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.level-card:hover .level-count {
    text-shadow: 0 0 12px #0ff, 0 0 8px #ff00ff;
    transform: scale(1.15);
    color: #0ff;
}

.level-earn {
    font-size: 0.7rem;
    color: #0ff;
    transition: all 0.3s ease;
}

.level-card:hover .level-earn {
    text-shadow: 0 0 8px #0ff;
    color: #0ff;
}

/* ========== СТИЛИ ДЛЯ ИГРЫ КНБ ========== */

/* Карбоновая кнопка назад */
.carbon-back-btn {
    background: repeating-linear-gradient(45deg, #0f0f14, #0f0f14 10px, #13131a 10px, #13131a 20px);
    border: 2px solid #0ff;
    border-radius: 20px;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
    color: #0ff;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}
.carbon-back-btn:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 25px rgba(255,0,255,0.3);
    color: #ff00ff;
}
.carbon-back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.08), transparent);
    transition: 0.5s;
}
.carbon-back-btn:hover::before {
    left: 100%;
}

/* Баланс по центру */
.balance-center {
    text-align: center;
    margin-bottom: 30px;
}
.balance-card-center {
    display: inline-block;
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 20px;
    padding: 15px 40px;
    box-shadow: 0 0 20px rgba(0,255,255,0.1);
}
.balance-label-center {
    font-size: 0.7rem;
    color: #ff00ff;
    letter-spacing: 2px;
}
.balance-value-center {
    font-size: 2rem;
    font-weight: bold;
    color: #0ff;
    font-family: monospace;
}

/* Микро-сетка для блоков статистики */
.stats-card-micro {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}
.stats-card-micro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(#00ffcc06 1px, transparent 1px),
        linear-gradient(90deg, #00ffcc06 1px, transparent 1px);
    background-size: 15px 15px;
    pointer-events: none;
    opacity: 0.4;
}
.stats-card-micro .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}
.stats-card-micro .stats-block {
    background: #0a0a0f;
    border-radius: 16px;
    padding: 15px;
}
.stats-card-micro .stats-block h4 {
    color: #ff00ff;
    font-size: 0.8rem;
    margin-bottom: 12px;
    border-left: 2px solid #ff00ff;
    padding-left: 10px;
}
.stat-row-compact {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.stat-label-compact {
    color: #888;
}
.stat-value-compact {
    color: #0ff;
    font-weight: bold;
}
.profit-positive { color: #0f0; }
.profit-negative { color: #f0f; }

/* Кнопки действий (3 кнопки) */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.action-card {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.08), transparent);
    transition: 0.5s;
}
.action-card:hover::before {
    left: 100%;
}
.action-card:hover {
    border-color: #ff00ff;
    box-shadow: 0 0 20px rgba(255,0,255,0.3);
    transform: translateY(-3px);
}
.action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.action-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0ff;
}

/* Модальные окна для КНБ */
.modal-full {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-full-content {
    background: #111;
    border: 2px solid #0ff;
    border-radius: 24px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-full-content h3 {
    color: #ff00ff;
    margin-bottom: 20px;
    text-align: center;
}

/* Выбор варианта (камень/ножницы/бумага) */
.choice-buttons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}
.choice-select-btn {
    background: #1a1a22;
    border: 2px solid #0ff;
    border-radius: 60px;
    padding: 15px 25px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.choice-select-btn.selected {
    border-color: #ff00ff;
    background: #ff00ff20;
    box-shadow: 0 0 15px #ff00ff;
    transform: scale(1.05);
}
.choice-select-btn:hover {
    border-color: #ff00ff;
    transform: scale(1.05);
}

/* Поле ввода суммы */
.bet-input {
    width: 100%;
    padding: 14px;
    background: #1a1a22;
    border: 1px solid #ff00ff;
    color: white;
    border-radius: 40px;
    font-size: 1rem;
    text-align: center;
    margin: 15px 0;
}
.bet-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопки в модалках */
.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}
.modal-buttons button {
    flex: 1;
}

/* Топ игроков */
.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.top-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #0a0a0f;
    border-radius: 12px;
    border-left: 3px solid #ff00ff;
}
.top-player-rank {
    font-size: 1.2rem;
    min-width: 40px;
}
.top-player-name {
    flex: 1;
    color: #0ff;
}
.top-player-profit {
    font-weight: bold;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.page-btn {
    background: #0f0f14;
    border: 1px solid #0ff;
    border-radius: 10px;
    padding: 8px 15px;
    color: #0ff;
    cursor: pointer;
    transition: 0.2s;
}
.page-btn.active {
    background: #0ff;
    color: #000;
}
.page-btn:hover {
    border-color: #ff00ff;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .stats-card-micro .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .choice-buttons-row {
        gap: 10px;
    }
    .choice-select-btn {
        padding: 12px 18px;
        font-size: 1.2rem;
    }
    .balance-card-center {
        padding: 12px 25px;
        width: 100%;
    }
    .balance-value-center {
        font-size: 1.5rem;
    }
}

/* ========== СТИЛИ ДЛЯ АКТИВНЫХ ИГР И КАРТОЧЕК ========== */

/* Карточка игры в списке активных игр */
.game-item-card {
    background: #0a0a0f;
    border: 1px solid #ff00ff33;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}
.game-item-card:hover {
    border-color: #0ff;
    background: #0f0f14;
    box-shadow: 0 0 15px rgba(0,255,255,0.1);
}

.game-item-card .game-info {
    flex: 1;
}

.game-creator {
    color: #0ff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 5px;
}

.game-bet {
    color: #ff00ff;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.game-status {
    color: #0f0;
    font-size: 0.7rem;
}

/* Кнопки действий в карточке игры */
.join-game-btn {
    background: transparent;
    border: 1.5px solid #0ff;
    border-radius: 40px;
    padding: 8px 18px;
    color: #0ff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}
.join-game-btn:hover {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 15px #0ff;
}

.cancel-game-btn {
    border-color: #ff00ff;
    color: #ff00ff;
}
.cancel-game-btn:hover {
    background: #ff00ff;
    color: #000;
    box-shadow: 0 0 15px #ff00ff;
}

/* Мобильная адаптация для карточек игр */
@media (max-width: 768px) {
    .game-item-card {
        flex-direction: column;
        text-align: center;
    }
    .join-game-btn {
        width: 100%;
        white-space: normal;
    }
}

/* Стили для истории игр в модалке */
.game-draw {
    color: #ff0;
}

/* Кнопки в модалке истории */
.history-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.history-buttons .neon-btn {
    flex: 1;
}

/* ========== ПЕРЕОПРЕДЕЛЕНИЕ ГРАНИЦ ДЛЯ ПОЛУПРОЗРАЧНОСТИ ========== */

/* Шапка */
.neon-header {
    border-bottom: 2px solid rgba(255, 0, 255, 0.3) !important;
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.1) !important;
}

/* Все карточки */
.card, .profile-card, .cyber-card, .stats-card-micro, .create-game-panel {
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
}

/* Балансы */
.balance-item {
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
}

/* Кнопки */
.neon-btn {
    border: 1.5px solid rgba(0, 255, 255, 0.4) !important;
}
.btn-pink {
    border-color: rgba(255, 0, 255, 0.4) !important;
}

/* Карбоновые кнопки */
.carbon-back-btn, .nav-button, .carbon-btn {
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
}

/* Стейк карточки */
.stake-card, .stake-item {
    border: 1px solid rgba(255, 0, 255, 0.2) !important;
}

/* Модалки */
.modal-content, .modal-full-content {
    border: 2px solid rgba(0, 255, 255, 0.3) !important;
}

/* Игровые карточки */
.game-card, .action-card {
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
}

/* Клубная карточка */
.club-balance-card {
    border: 1px solid rgba(0, 255, 255, 0.25) !important;
}

/* Таблицы */
.data-panel {
    border: 1px solid rgba(255, 0, 255, 0.25) !important;
}

/* Реферальные уровни */
.level-card {
    border: 1px solid rgba(255, 0, 255, 0.15) !important;
}

/* Активные игры */
.game-item-card {
    border: 1px solid rgba(255, 0, 255, 0.2) !important;
}
.game-item-card:hover {
    border-color: rgba(0, 255, 255, 0.5) !important;
}

/* Кнопки в карточках игр */
.join-game-btn {
    border: 1.5px solid rgba(0, 255, 255, 0.4) !important;
}
.cancel-game-btn {
    border-color: rgba(255, 0, 255, 0.4) !important;
}

/* Выбор варианта в КНБ */
.choice-select-btn {
    border: 2px solid rgba(0, 255, 255, 0.4) !important;
}
.choice-select-btn.selected {
    border-color: rgba(255, 0, 255, 0.6) !important;
}

/* Пагинация */
.page-btn {
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
}

.glow-win { color: #fff; text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #0f0; }
.glow-lose { color: #fff; text-shadow: 0 0 5px #f0f, 0 0 10px #f0f, 0 0 15px #f0f; }

/* Скрываем кнопку отмены в модалке барабана, но оставляем в DOM */
#spinCancelBtn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}