/* ===== БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ ===== */
:root {
    /* Основные цвета */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #00b894;
    --success-dark: #00a085;
    --danger: #ff6b6b;
    --danger-dark: #ff4757;
    --warning: #fdcb6e;
    --warning-dark: #f9c74f;
    --info: #74b9ff;
    --dark: #2d3436;
    --light: #f8f9fa;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #00b894, #00a085);
    --gradient-danger: linear-gradient(135deg, #ff6b6b, #ff4757);
    --gradient-warning: linear-gradient(135deg, #fdcb6e, #f9c74f);
    --gradient-dark: linear-gradient(135deg, #2d3436, #1a1a2e);
    
    /* Тени */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== ФОНОВЫЕ ЭЛЕМЕНТЫ ===== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
    z-index: -2;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(15, 12, 41, 0.9) 0%,
        rgba(48, 43, 99, 0.7) 50%,
        rgba(36, 36, 62, 0.9) 100%);
    z-index: -1;
}

.bg-cards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="80" text-anchor="middle" fill="white">♠</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="80" text-anchor="middle" fill="white">♥</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="80" text-anchor="middle" fill="white">♦</text></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="60" font-size="80" text-anchor="middle" fill="white">♣</text></svg>');
    background-size: 200px;
    z-index: -1;
    animation: floatBackground 60s linear infinite;
}

@keyframes floatBackground {
    0% { background-position: 0 0, 100px 100px, 200px 200px, 300px 300px; }
    100% { background-position: 200px 200px, 300px 300px, 400px 400px, 500px 500px; }
}

/* ===== КОНТЕЙНЕР ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */
.top-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.6s var(--transition-normal);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Аватар и информация пользователя */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: var(--transition-normal);
}

.avatar:hover {
    transform: rotate(15deg) scale(1.1);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.username {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.user-level {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-level strong {
    color: var(--success);
}

/* Основная статистика */
.main-stats {
    display: flex;
    gap: 20px;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    cursor: pointer;
}

.stat-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-chip i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.balance-chip {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-add-balance {
    background: var(--gradient-success);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    transition: var(--transition-normal);
}

.btn-add-balance:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Кнопки верхней панели */
.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-promo {
    background: var(--gradient-danger);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-settings {
    background: var(--gradient-primary);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.btn-settings:hover {
    transform: rotate(30deg);
    box-shadow: 0 5px 15px rgba(55, 66, 250, 0.4);
}

/* ===== ИГРОВОЙ КОНТЕЙНЕР ===== */
.game-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

/* Общие стили для игровых секций */
.dealer-section, .player-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.player-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-title i {
    font-size: 2rem;
    color: var(--primary);
}

.player-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: var(--gradient-success);
    color: #000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.player-score {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 25px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Карты */
.cards-container {
    min-height: 220px;
    margin-bottom: 20px;
}

.cards-slots {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-slot {
    width: 120px;
    height: 168px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.card {
    width: 120px;
    height: 168px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    animation: dealCard 0.5s var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    user-select: none;
}

@keyframes dealCard {
    from {
        transform: translateY(-50px) rotateY(-90deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateY(0);
        opacity: 1;
    }
}

.card.red {
    color: var(--danger);
}

.card.black {
    color: var(--dark);
}

.card-corner {
    font-size: 1.8rem;
    font-weight: 700;
}

.card-center {
    font-size: 3.5rem;
    align-self: center;
    margin: auto 0;
}

.card-suit {
    align-self: flex-end;
    font-size: 2.5rem;
    transform: rotate(180deg);
}

.card.hidden {
    background: var(--gradient-primary);
    color: white;
    justify-content: center;
}

.card.hidden .card-center {
    font-size: 3rem;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Центральная область игры */
.game-center {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.game-message {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: var(--radius-xl);
    padding: 25px;
    text-align: center;
    width: 100%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    animation: messageAppear 0.5s var(--transition-normal);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.message-content i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.message-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.message-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Контролы ставок */
.game-controls-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.bet-selector {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bet-header h4 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.current-bet-display {
    background: var(--gradient-warning);
    padding: 10px 25px;
    border-radius: var(--radius-lg);
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    box-shadow: 0 5px 15px rgba(255, 165, 2, 0.3);
    min-width: 120px;
    text-align: center;
}

.bet-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.bet-chip {
    padding: 20px 10px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bet-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.bet-chip:hover::before {
    left: 100%;
}

.bet-chip:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.chip-10 {
    background: var(--gradient-success);
}

.chip-50 {
    background: var(--gradient-primary);
}

.chip-100 {
    background: linear-gradient(135deg, #a29bfe, #8178e3);
}

.chip-500 {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.bet-chip.active {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.bet-slider-container {
    margin-bottom: 20px;
}

#betSlider {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--success), var(--primary), var(--danger));
    border-radius: var(--radius-full);
    outline: none;
    margin: 20px 0;
}

#betSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary);
    transition: var(--transition-normal);
}

#betSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.btn-bet-clear {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
    transition: var(--transition-normal);
}

.btn-bet-clear:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--danger);
    transform: translateY(-2px);
}

/* Кнопки действий */
.action-buttons-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-action {
    border: none;
    padding: 25px;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-action::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-action:active::after {
    width: 300px;
    height: 300px;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-action:not(:disabled):hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.btn-deal {
    background: var(--gradient-success);
    color: white;
    font-size: 1.4rem;
}

.btn-deal:not(:disabled):hover {
    box-shadow: 0 15px 30px rgba(0, 184, 148, 0.4);
}

.action-buttons-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.btn-hit {
    background: var(--gradient-primary);
    color: white;
}

.btn-hit:not(:disabled):hover {
    box-shadow: 0 15px 30px rgba(9, 132, 227, 0.4);
}

.btn-stand {
    background: var(--gradient-warning);
    color: #333;
}

.btn-stand:not(:disabled):hover {
    box-shadow: 0 15px 30px rgba(253, 203, 110, 0.4);
}

.btn-double {
    background: linear-gradient(135deg, #a29bfe, #8178e3);
    color: white;
}

.btn-double:not(:disabled):hover {
    box-shadow: 0 15px 30px rgba(162, 155, 254, 0.4);
}

.btn-split {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.btn-split:not(:disabled):hover {
    box-shadow: 0 15px 30px rgba(253, 121, 168, 0.4);
}

/* Статистика игрока */
.player-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.stat-mini:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-mini i {
    color: var(--primary);
    font-size: 1.2rem;
}

.stat-mini span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.stat-mini strong {
    color: var(--success);
    font-size: 1.1rem;
}

/* Live статистика */
.live-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stats-card h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border-top: 4px solid transparent;
    transition: var(--transition-normal);
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-item.win {
    border-color: var(--success);
}

.stat-item.loss {
    border-color: var(--danger);
}

.stat-item.draw {
    border-color: var(--warning);
}

.stat-item.total {
    border-color: var(--primary);
}

.stat-name {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.stats-progress {
    display: flex;
    align-items: center;
    gap: 20px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s var(--transition-normal);
}

.progress-fill.win {
    background: var(--gradient-success);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
}

.btn-quick {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-quick::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-normal);
}

.btn-quick:hover::before {
    left: 100%;
}

.btn-quick:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: var(--primary);
}

/* ===== НИЖНЯЯ ПАНЕЛЬ ===== */
.bottom-bar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 20px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.game-rules {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.rule {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.rule:hover {
    color: white;
    transform: translateX(5px);
}

.rule i {
    color: var(--success);
    font-size: 1.2rem;
}

.footer-info {
    display: flex;
    gap: 25px;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.secret-hint {
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 15px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.secret-hint:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

#connectionStatus {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s var(--transition-normal);
    padding: 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.4s var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: rgba(102, 126, 234, 0.1);
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

.input-group:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.input-group i {
    font-size: 1.5rem;
    color: var(--primary);
}

.input-group input {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    flex: 1;
    outline: none;
    width: 100%;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.promo-examples {
    margin-top: 25px;
}

.promo-examples p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.example-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.example-chip {
    background: rgba(102, 126, 234, 0.2);
    padding: 8px 15px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    border: 1px solid rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: var(--transition-normal);
}

.example-chip:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-modal {
    padding: 18px;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-normal);
    width: 100%;
}

.btn-modal-primary {
    background: var(--gradient-success);
    color: white;
}

.btn-modal-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

.promo-message {
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    animation: messageAppear 0.5s var(--transition-normal);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.add-option {
    background: var(--gradient-primary);
    border: none;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.add-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.add-option:hover::before {
    left: 100%;
}

.add-option:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(55, 66, 250, 0.4);
}

.add-option small {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: normal;
}

.help-content, .settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-section, .setting-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.help-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: white;
}

.help-section ul {
    list-style: none;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 20px;
}

.help-section li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
}

#soundVolume {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: var(--radius-full);
    outline: none;
}

#soundVolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: 2px solid var(--primary);
}

.theme-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    flex: 1;
    min-width: 100px;
}

.theme-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.theme-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.control-hints {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-hints p {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
}

.control-hints p::after {
    content: '🎮';
    opacity: 0.7;
}

/* ===== АДМИН ПАНЕЛЬ ===== */
.admin-overlay {
    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: 2000;
    align-items: center;
    justify-content: center;
    animation: adminFadeIn 0.4s var(--transition-normal);
    padding: 20px;
}

@keyframes adminFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-container {
    background: linear-gradient(145deg, #0f0c29, #302b63);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.5);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    padding: 25px 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-title i {
    font-size: 2.5rem;
    color: var(--success);
}

.admin-title h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-badge {
    background: var(--gradient-danger);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.admin-close {
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid var(--danger);
    color: var(--danger);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.admin-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.admin-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: var(--success);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-success);
    border-radius: 2px 2px 0 0;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .admin-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.tab-content {
    display: none;
    grid-column: 1 / -1;
}

.tab-content.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .tab-content.active {
        grid-template-columns: 1fr;
    }
}

.admin-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-card h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-group small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-admin-primary {
    background: var(--gradient-success);
    border: none;
    color: white;
    padding: 18px 30px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-admin-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.btn-admin-primary:hover::before {
    left: 100%;
}

.btn-admin-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 184, 148, 0.4);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    min-width: 600px;
}

.admin-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
}

.admin-table th {
    padding: 20px;
    text-align: left;
    color: white;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.admin-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    vertical-align: middle;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-admin-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: var(--transition-normal);
}

.btn-admin-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.quick-admin-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-admin-action {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-normal);
    text-align: left;
}

.btn-admin-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--primary);
}

.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-admin {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-admin .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    display: block;
}

.stat-admin .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.admin-footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-stats {
    display: flex;
    gap: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.admin-stats i {
    color: var(--primary);
    margin-right: 8px;
}

.btn-admin-exit {
    background: var(--gradient-danger);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-admin-exit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    width: 100%;
}

.notification {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-lg);
    padding: 20px;
    border-left: 5px solid;
    box-shadow: var(--shadow-xl);
    animation: notificationSlideIn 0.4s var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.info {
    border-left-color: var(--primary);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.notification-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .game-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    
    .live-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 15px;
    }
    
    .main-stats {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-chip {
        min-width: auto;
        width: 100%;
    }
    
    .game-rules {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }
    
    .action-buttons-secondary {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bet-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-slot, .card {
        width: 90px;
        height: 126px;
    }
    
    .card-center {
        font-size: 2.5rem;
    }
    
    .admin-tabs {
        padding: 0 20px;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 15px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .admin-header {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .admin-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-bar,
    .dealer-section,
    .player-section,
    .stats-card,
    .bet-selector {
        padding: 15px;
    }
    
    .btn-action {
        padding: 18px;
        font-size: 1rem;
    }
    
    .player-stats {
        flex-direction: column;
    }
    
    .quick-actions {
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bet-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .card-slot, .card {
        width: 70px;
        height: 98px;
    }
    
    .card-center {
        font-size: 2rem;
    }
    
    .card-corner, .card-suit {
        font-size: 1.2rem;
    }
}

/* ===== АНИМАЦИИ ДЛЯ ИГРЫ ===== */
@keyframes winAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes loseAnimation {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

@keyframes blackjackAnimation {
    0% { transform: rotate(0) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.1); }
    100% { transform: rotate(0) scale(1); }
}

.win-effect {
    animation: winAnimation 0.5s var(--transition-normal);
}

.lose-effect {
    animation: loseAnimation 0.5s var(--transition-normal);
}

.blackjack-effect {
    animation: blackjackAnimation 0.5s var(--transition-normal) 3;
}

/* Эффект свечения */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: inherit;
    z-index: -1;
    animation: glowAnimation 20s linear infinite;
    filter: blur(10px);
    opacity: 0.5;
}

@keyframes glowAnimation {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Эффект появления карты */
@keyframes flipCard {
    0% { transform: rotateY(0); }
    50% { transform: rotateY(90deg); opacity: 0.5; }
    100% { transform: rotateY(0); opacity: 1; }
}

.card.flipping {
    animation: flipCard 0.6s var(--transition-normal);
}

/* Эффект пульсации для кнопок */
@keyframes pulseButton {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.pulse {
    animation: pulseButton 2s infinite;
}

/* Эффект плавания для фона */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Выделение текста */
::selection {
    background: var(--primary);
    color: white;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}