:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f172a;
    --bg-surface: #1e293b;
    --bg-elevated: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #334155;
    --gold: #fbbf24;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════
   СОВРЕМЕННЫЙ ПРЕЛОАДЕР И АНИМАЦИЯ ЗАГРУЗКИ
   ═══════════════════════════════════════════════════════════════════════ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
}

.loader-logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.5));
}

.loader-logo {
    width: 180px;
    height: 180px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-pulse-ring {
    animation: logoPulseRing 2s ease-in-out infinite;
}

.logo-outer-ring {
    animation: logoRotate 4s linear infinite;
    transform-origin: 100px 100px;
}

.logo-main-circle {
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-star {
    animation: logoStarRotate 3s linear infinite;
    transform-origin: 100px 100px;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes logoPulseRing {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes logoRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes logoStarRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.loader-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 2px;
}

.loader-title-text {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.loader-title-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: titleShimmer 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
}

@keyframes titleShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.loader-progress {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loader-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: progressShimmer 2s linear infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

@keyframes progressShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.loader-progress-text {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    animation: particleFloat 4s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    width: 8px;
    height: 8px;
}

.particle-2 {
    top: 60%;
    right: 20%;
    animation-delay: 0.8s;
    width: 5px;
    height: 5px;
}

.particle-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 1.6s;
    width: 7px;
    height: 7px;
}

.particle-4 {
    top: 40%;
    left: 70%;
    animation-delay: 2.4s;
    width: 6px;
    height: 6px;
}

.particle-5 {
    bottom: 30%;
    right: 30%;
    animation-delay: 3.2s;
    width: 5px;
    height: 5px;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.transition-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-logo {
    width: 120px;
    height: 120px;
    animation: transitionLogoSpin 0.6s ease-in-out;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
}

@keyframes transitionLogoSpin {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:active {
    transform: scale(0.98);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

/* Индикатор уведомлений на кнопке Поддержка */
.support-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.6), 0 0 0 2px var(--bg-dark);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
    line-height: 1.2;
}

/* Индикатор уведомлений на кнопке Бонусы */
.bonus-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #667eea 0%, #ec4899 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.6), 0 0 0 2px var(--bg-dark);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 10;
    line-height: 1.2;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.6), 0 0 0 2px var(--bg-dark);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.8), 0 0 0 2px var(--bg-dark);
    }
}

.nav-link.has-notification::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: notificationDot 1.5s ease-in-out infinite;
    z-index: 9;
}

@keyframes notificationDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login svg {
    width: 20px;
    height: 20px;
}

/* ===== ROOM SELECTOR ===== */
.room-selector {
    padding: 30px 0;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid var(--border);
}

.selector-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.rooms-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.room-item {
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.room-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.room-item.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.room-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.room-limits {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.room-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.room-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== GAME LAYOUT ===== */
.game-area {
    padding: 30px 0;
}

.game-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
}

/* ===== SIDEBAR ===== */
.boss-card,
.stats-card,
.recent-card,
.chat-card,
.history-card,
.withdrawals-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.boss-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
}

.boss-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.boss-content {
    text-align: center;
}

.boss-empty p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.boss-empty span {
    font-size: 13px;
    color: var(--text-secondary);
}

.boss-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.boss-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
}

.boss-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.boss-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boss-details p {
    font-size: 13px;
    color: var(--text-secondary);
}

.boss-actions {
    margin-top: 15px;
}

.btn-boss-details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-boss-details:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-boss-details svg {
    width: 16px;
    height: 16px;
}

/* Pretender Section */
.pretender-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pretender-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 12px;
    color: var(--warning);
}

.pretender-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pretender-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--warning);
}

.pretender-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pretender-details p {
    font-size: 12px;
    color: var(--text-secondary);
}

.pretender-progress {
    margin-top: 10px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning) 0%, var(--gold) 100%);
    transition: width 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Boss Modal */
.boss-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.boss-modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin: 0 auto 15px;
}

.boss-modal-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 5px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.boss-modal-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.boss-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.boss-stat-card {
    background: var(--bg-elevated);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.boss-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 5px;
}

.boss-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.boss-earnings-info {
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.boss-earnings-info h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.boss-earnings-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 15px;
}

.overthrow-bonus {
    background: var(--bg-dark);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.overthrow-bonus p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.overthrow-bonus-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

/* Stats Card */
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-item div {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Recent Card */
.recent-card h3,
.history-card h3,
.withdrawals-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.recent-card h3 svg,
.history-card h3 svg,
.withdrawals-card h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.recent-list,
.history-list,
.withdrawals-list {
    max-height: 300px;
    overflow-y: auto;
}

.recent-item,
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.recent-item:last-child,
.history-item:last-child {
    border-bottom: none;
}

.recent-player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Статусы для ников в истории побед, боссе, претенденте и участниках */
.recent-player .status-bronze,
.clickable-username.status-bronze,
.boss-details h4.status-bronze,
.pretender-details h4.status-bronze,
.player-name.status-bronze,
.user-name.status-bronze {
    background: linear-gradient(90deg, #cd7f32 0%, #e8a15e 50%, #cd7f32 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: recentBronzeFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
    position: relative;
}

@keyframes recentBronzeFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.recent-player .status-bronze::before,
.recent-player .status-bronze::after,
.clickable-username.status-bronze::before,
.clickable-username.status-bronze::after,
.boss-details h4.status-bronze::before,
.boss-details h4.status-bronze::after,
.pretender-details h4.status-bronze::before,
.pretender-details h4.status-bronze::after,
.player-name.status-bronze::before,
.player-name.status-bronze::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.recent-player .status-silver,
.clickable-username.status-silver,
.boss-details h4.status-silver,
.pretender-details h4.status-silver,
.player-name.status-silver,
.user-name.status-silver {
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: recentSilverFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes recentSilverFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.recent-player .status-gold,
.clickable-username.status-gold,
.boss-details h4.status-gold,
.pretender-details h4.status-gold,
.player-name.status-gold,
.user-name.status-gold {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: recentGoldFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes recentGoldFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.recent-player .status-platinum,
.clickable-username.status-platinum,
.boss-details h4.status-platinum,
.pretender-details h4.status-platinum,
.player-name.status-platinum,
.user-name.status-platinum {
    background: linear-gradient(90deg, #e5e4e2 0%, #f8f8ff 50%, #d1d0ce 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: platinumRecentFlow 4s ease infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes platinumRecentFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.recent-player .status-diamond,
.clickable-username.status-diamond,
.boss-details h4.status-diamond,
.pretender-details h4.status-diamond,
.player-name.status-diamond,
.user-name.status-diamond {
    background: linear-gradient(90deg, #00c9ff 0%, #92fe9d 25%, #00c9ff 50%, #92fe9d 75%, #00c9ff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: diamondRecentFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes diamondRecentFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.recent-player .status-legend,
.clickable-username.status-legend,
.boss-details h4.status-legend,
.pretender-details h4.status-legend,
.player-name.status-legend,
.user-name.status-legend {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 20%, #ffd700 40%, #00ff00 60%, #00bfff 80%, #ff0080 100%) !important;
    background-size: 300% auto !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: legendRecentRainbow 4s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes legendRecentRainbow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.recent-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.recent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.recent-game-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    padding-left: 38px;
}

.game-number {
    color: var(--primary);
    font-weight: 600;
}

.game-bet {
    color: rgba(255, 255, 255, 0.6);
}

.game-ticket {
    color: #ffd700;
}

.recent-prize {
    color: var(--success);
    font-weight: 600;
}

/* Кликабельные элементы */
.clickable-avatar,
.clickable-username {
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 200px;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
    display: inline-block;
    color: var(--text-primary);
}

.clickable-username:not(.status-bronze):not(.status-silver):not(.status-gold):not(.status-platinum):not(.status-diamond):not(.status-legend) {
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

.clickable-username.status-bronze,
.clickable-username.status-silver,
.clickable-username.status-gold,
.clickable-username.status-platinum,
.clickable-username.status-diamond,
.clickable-username.status-legend {
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.clickable-avatar {
    border-radius: 50% !important;
    overflow: hidden !important;
    display: inline-block;
}

.clickable-avatar:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.clickable-username:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Withdrawals Card */
.withdrawal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.withdrawal-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(2px);
}

.withdrawal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.withdrawal-info {
    flex: 1;
    min-width: 0;
}

.withdrawal-user {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.withdrawal-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Статусы для ников в выплатах */
.withdrawal-username.status-bronze {
    background: linear-gradient(90deg, #cd7f32 0%, #e8a15e 50%, #cd7f32 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    filter: none !important;
}

.withdrawal-username.status-silver {
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    filter: none !important;
}

.withdrawal-username.status-gold {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    filter: none !important;
}

.withdrawal-username.status-platinum {
    background: linear-gradient(90deg, #e5e4e2 0%, #f8f8ff 50%, #d1d0ce 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: platinumWithdrawalFlow 4s ease infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes platinumWithdrawalFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.withdrawal-username.status-diamond {
    background: linear-gradient(90deg, #00c9ff 0%, #92fe9d 25%, #00c9ff 50%, #92fe9d 75%, #00c9ff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: diamondWithdrawalFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes diamondWithdrawalFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.withdrawal-username.status-legend {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 20%, #ffd700 40%, #00ff00 60%, #00bfff 80%, #ff0080 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: legendWithdrawalRainbow 4s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes legendWithdrawalRainbow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.withdrawal-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.withdrawal-amount {
    color: var(--success);
    font-weight: 700;
    font-size: 13px;
}

.withdrawal-method {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-dark);
    border-radius: 6px;
    flex-shrink: 0;
}

.withdrawal-method svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.withdrawal-method.method-card {
    color: #4f46e5;
}

.withdrawal-method.method-fkwallet {
    color: #8b5cf6;
}

.withdrawal-method.method-yoomoney {
    color: #8b00ff;
}

.withdrawal-method.method-sbp {
    color: #10b981;
}

.withdrawals-list .empty-message {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== GAME CENTER ===== */
.game-center {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-status {
    display: flex;
    gap: 12px;
}

.status-item {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.5) 0%, 
        rgba(118, 75, 162, 0.5) 50%,
        rgba(102, 126, 234, 0.5) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderFlow 3s linear infinite;
}

.status-item:hover::before {
    opacity: 1;
}

.status-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    pointer-events: none;
}

.status-item:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.status-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.status-item svg {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    color: white;
    stroke: white;
    box-shadow: 
        0 6px 18px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconFloat 3s ease-in-out infinite;
}

.status-item:hover svg {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) rotate(2deg);
    }
    75% {
        transform: translateY(6px) rotate(-2deg);
    }
}

@keyframes borderFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.status-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.status-item:hover .status-label {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
}

.status-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #9f7aea 50%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: valueGradient 4s ease infinite;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
    transition: all 0.3s ease;
}

.status-item:hover .status-value {
    font-size: 24px;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.5));
    transform: translateX(2px);
}

@keyframes valueGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.game-display {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 25px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    position: relative;
    overflow: hidden;
}

.game-waiting {
    text-align: center;
}

.waiting-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.waiting-icon svg {
    width: 100%;
    height: 100%;
}

.game-waiting h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.game-waiting p {
    color: var(--text-secondary);
}

/* Game Preparing */
.game-preparing {
    text-align: center;
    padding: 25px 15px;
}

.preparing-header {
    margin-bottom: 25px;
}

.preparing-header svg {
    color: var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.preparing-header h2 {
    font-size: 22px;
    margin: 12px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preparing-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    font-size: 30px;
    font-weight: 900;
    color: white;
    margin: 15px 0;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6); }
}

.preparing-header p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 15px;
}

.preparing-header p span {
    color: var(--primary);
    font-weight: 700;
}

.preparing-players {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.preparing-player-card {
    background: var(--bg-elevated);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease backwards;
}

.preparing-player-card:nth-child(2) {
    animation-delay: 0.1s;
}

.preparing-player-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preparing-player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.preparing-player-info {
    flex: 1;
    text-align: left;
}

.preparing-player-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.preparing-player-bets {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.preparing-player-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

/* Countdown Progress Bar под таймером */
.countdown-progress-bar {
    width: 100%;
    max-width: 350px;
    margin: 15px auto 0;
}

.countdown-progress-bar .progress-bar-fill {
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.countdown-progress-bar .progress-bar-fill::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s linear;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.progress-bar-fill {
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s linear;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* Slot Machine */
.slot-machine {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    animation: expandSlot 0.5s ease;
}

@keyframes expandSlot {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slot-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.slot-window {
    position: relative;
    width: 100%;
    max-width: 700px; /* Оптимальная ширина */
    height: 140px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 2px solid var(--border);
    overflow: hidden; /* Обрезаем по границам окна */
    margin: 0 auto;
}

.slot-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--warning) 10%, 
        var(--warning) 90%, 
        transparent 100%);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 20px var(--warning), 0 0 40px var(--warning);
}

.slot-reel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Обрезаем по границам окна */
    display: flex;
    align-items: center;
}

.slot-items {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 20px; /* Нормальный padding */
    height: 100%;
    will-change: transform;
    transform: translateX(0);
    opacity: 1; /* Всегда видимы */
    visibility: visible; /* Принудительно видимые */
}

.slot-items-stopping {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    animation: slotSlowdown 4.5s cubic-bezier(0.17, 0.55, 0.55, 1) forwards !important;
    will-change: transform;
}

.slot-items.slowing {
    animation: slotSlowdown 4s cubic-bezier(0.17, 0.55, 0.55, 1) forwards !important;
}

@keyframes slotSpin {
    from { transform: translateX(0); }
    to { transform: translateX(-112px); }
}

@keyframes slotSlowdown {
    0% { 
        transform: translateX(0);
    }
    70% {
        transform: translateX(calc(var(--final-position) * 0.95));
    }
    85% {
        transform: translateX(calc(var(--final-position) * 1.02));
    }
    95% {
        transform: translateX(calc(var(--final-position) * 0.99));
    }
    100% { 
        transform: translateX(var(--final-position));
    }
}

.slot-item {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    background: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.slot-item.winner {
    animation: slotWinnerPulse 0.6s ease-in-out forwards;
}

@keyframes slotWinnerPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1.15);
    }
}

.slot-avatar-wrapper {
    display: none;
}

.slot-name {
    display: none;
}

.slot-ticket {
    display: none;
}

.slot-result {
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-announcement {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.result-winner-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
}

.result-prize {
    font-size: 24px;
    font-weight: 700;
    color: var(--warning);
}

/* Game Active */
.game-active {
    width: 100%;
}

.game-vs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.player-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.player-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--primary);
}

.player-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-bet {
    color: var(--text-secondary);
    font-size: 14px;
}

.vs-divider {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-secondary);
}

.lottery-wheel {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.wheel-ticket {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin: 20px 0;
}

.wheel-winner {
    font-size: 20px;
    color: var(--success);
    font-weight: 700;
}

/* Countdown Timer */
.countdown-container {
    width: 100%;
    text-align: center;
}

.countdown-title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.countdown-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 12;
}

.countdown-circle-progress {
    fill: none;
    stroke: url(#countdown-gradient);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.countdown-progress-bar {
    margin-top: 30px;
    width: 100%;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.progress-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.progress-bar-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar-text span {
    color: var(--primary);
    font-weight: 700;
}

/* Waiting Players Display */
.waiting-players {
    margin-top: 30px;
    width: 100%;
}

.waiting-count {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.waiting-count span {
    color: var(--primary);
    font-size: 20px;
}

.waiting-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.waiting-player-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-elevated);
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.waiting-player-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.waiting-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.waiting-player-info {
    display: flex;
    flex-direction: column;
}

.waiting-player-name {
    font-size: 14px;
    font-weight: 600;
}

.waiting-player-bets {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Slot Machine Animation */
.slot-machine {
    width: 100%;
    padding: 20px;
}

.slot-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* УДАЛЕНЫ ДУБЛИКАТЫ .slot-window, .slot-indicator, .slot-reel - используются стили выше (строки ~857-889) */

.slot-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.slot-ticket {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: monospace;
}

.slot-result {
    margin-top: 40px;
    text-align: center;
    animation: resultSlideIn 0.5s ease;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--bg-elevated);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.3);
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.result-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.result-winner-name {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--warning));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.result-detail-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-detail-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.result-prize {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--success), #059669);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================================================
   WINNER RESULT CARD - MODERN DESIGN
   ================================================ */

.winner-result-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-dark) 100%);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 32px 40px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

/* Трофей SVG */
.winner-trophy-icon {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    animation: trophyBounce 2s ease-in-out infinite;
}

.trophy-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.3));
}

@keyframes trophyBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Левая секция - трофей + заголовок */
.winner-left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Заголовок */
.winner-title-section {
    text-align: center;
}

.winner-title {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold) 0%, var(--warning) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
    animation: titleGlow 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.8));
    }
}

.winner-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Центральная секция - аватар + инфо */
.winner-center-section {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

/* Аватар победителя */
.winner-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.winner-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid;
    padding: 4px;
    background: var(--bg-dark);
    animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.winner-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.winner-avatar-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.winner-username {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
    max-width: 120px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Информация о выигрыше */
.winner-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Главная информация - Выигрыш */
.winner-info-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid;
    transition: all 0.3s ease;
    animation: mainPulse 2s ease-in-out infinite;
}

@keyframes mainPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.winner-info-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.winner-info-content {
    flex: 1;
}

.winner-info-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.winner-info-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

/* Дополнительная информация */
.winner-info-secondary {
    display: flex;
    gap: 10px;
}

.winner-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    flex: 1;
}

.winner-info-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.winner-info-icon-small {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.winner-info-content-small {
    flex: 1;
}

.winner-info-label-small {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.winner-info-value-small {
    font-size: 14px;
    font-weight: 700;
}

/* Конфетти анимация */
.winner-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    top: -10%;
    opacity: 0;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Bet Form */
.bet-form {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.bet-input-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-currency {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 600;
}

.quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-btn {
    flex: 1;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-bet {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-bet:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-bet svg {
    width: 20px;
    height: 20px;
}

/* Bet Type Toggle */
.bet-type-toggle {
    margin-top: 15px;
    margin-bottom: 10px;
}

.bet-type-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.bet-type-switch {
    display: flex;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
}

.bet-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bet-type-btn svg {
    width: 18px;
    height: 18px;
}

.bet-type-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bet-type-btn:not(.active):hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-primary);
}

/* Bet Type Badges */
.bet-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
    vertical-align: middle;
}

.bonus-bet-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.real-bet-badge {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.player-bet {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bet Balance Display */
.bet-balance-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    font-size: 13px;
}

.balance-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.balance-amount.real-balance {
    color: var(--primary);
}

.balance-amount.bonus-balance {
    color: #fbbf24;
}

/* Bet Info Section */
.bet-info-section {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
}

.bet-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bet-info-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    opacity: 0.7;
}

.bet-info-content {
    flex: 1;
}

.bet-info-text {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.bet-info-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Game Players */
.game-players {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.game-players h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.game-players h3 svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.player-item-bet {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 15px;
    font-size: 14px;
}

/* ===== CHAT ===== */
.chat-card {
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-header svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Chat header buttons container */
.chat-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Common styles for chat header buttons */
.chat-header-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-header-btn:hover {
    transform: translateY(-2px);
}

.chat-header-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Rules button (blue) */
.rules-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #5b21b6 100%);
}

.rules-btn:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Giveaway button (green) */
.giveaway-btn {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.giveaway-btn:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 12px;
    font-size: 13px;
}

.chat-message-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

/* Модераторские кнопки */
.mod-buttons {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.chat-message:hover .mod-buttons {
    opacity: 1;
}

.mod-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mod-btn svg {
    width: 14px;
    height: 14px;
}

.mod-btn-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.mod-btn-delete:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.mod-btn-mute {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.mod-btn-mute:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
    border-color: rgba(245, 158, 11, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(150, 150, 150, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-message-body {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.chat-author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 13px;
    text-shadow: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
    position: relative;
    background: none !important;
    display: inline-block;
}

.chat-author::before,
.chat-author::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Стили для username внутри chat-author со статусами */
.chat-author .status-bronze {
    background: linear-gradient(90deg, #cd7f32 0%, #e8a15e 50%, #cd7f32 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chatBronzeFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .status-silver {
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chatSilverFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .status-gold {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chatGoldFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .status-platinum {
    background: linear-gradient(90deg, #b8b6b4 0%, #e5e4e2 25%, #ffffff 50%, #e5e4e2 75%, #b8b6b4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: platinumChatFlow 3s ease-in-out infinite;
    display: inline-block;
}

.chat-author .status-diamond {
    background: linear-gradient(90deg, #00bcd4 0%, #4dd0e1 25%, #b9f2ff 50%, #4dd0e1 75%, #00bcd4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: diamondChatFlow 2.5s ease-in-out infinite;
    display: inline-block;
}

/* Выделение в чате по уровням */
.chat-author .chat-level-2 {
    color: #667eea;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}

.chat-author .chat-level-6 {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: chatGoldFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .chat-level-11 {
    background: linear-gradient(90deg, #b8b6b4 0%, #e5e4e2 25%, #ffffff 50%, #e5e4e2 75%, #b8b6b4 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: platinumChatFlow 3s ease-in-out infinite;
    display: inline-block;
}

.chat-author .chat-level-16 {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 25%, #ffd700 50%, #40e0d0 75%, #ff0080 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: legendChatFlow 3s linear infinite;
    display: inline-block;
}

.chat-author .chat-level-21 {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 25%, #ffd700 50%, #40e0d0 75%, #ff0080 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: legendChatFlow 2s linear infinite;
    text-shadow: 0 0 20px rgba(255, 0, 128, 0.8);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

@keyframes legendChatFlow {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

.chat-author .status-legend {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 20%, #ffd700 40%, #00ff00 60%, #00bfff 80%, #ff0080 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: legendRainbowChat 4s linear infinite;
    font-weight: 700;
    display: inline-block;
}

/* Специальные анимации колеса для уровня 21+ */
.legendary-wheel-spin {
    position: relative;
    animation: legendaryWheelGlow 0.5s ease-out;
}

.legendary-wheel-spin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.3) 0%, rgba(255, 140, 0, 0.2) 25%, rgba(255, 215, 0, 0.2) 50%, rgba(64, 224, 208, 0.2) 75%, transparent 100%);
    animation: legendaryWheelPulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.legendary-wheel-spin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 4px solid transparent;
    background: linear-gradient(90deg, #ff0080, #ff8c00, #ffd700, #40e0d0, #ff0080) border-box;
    background-clip: border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    animation: legendaryWheelRotate 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes legendaryWheelGlow {
    0% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 0, 128, 0)); }
    50% { filter: brightness(1.3) drop-shadow(0 0 30px rgba(255, 0, 128, 0.8)); }
    100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 0, 128, 0)); }
}

@keyframes legendaryWheelPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes legendaryWheelRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Специальные анимации слот-машины для уровня 21+ */
.legendary-slot-animation {
    position: relative;
    animation: legendarySlotGlow 0.5s ease-out;
}

.legendary-slot-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(255, 0, 128, 0.2) 0%, rgba(255, 140, 0, 0.15) 25%, rgba(255, 215, 0, 0.15) 50%, rgba(64, 224, 208, 0.15) 75%, transparent 100%);
    animation: legendarySlotPulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.legendary-slot-animation::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 24px;
    border: 4px solid transparent;
    background: linear-gradient(90deg, #ff0080, #ff8c00, #ffd700, #40e0d0, #ff0080) border-box;
    background-clip: border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    animation: legendarySlotRotate 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.legendary-slot-animation .slot-window {
    position: relative;
    z-index: 1;
    animation: legendarySlotShine 2s ease-in-out infinite;
}

@keyframes legendarySlotGlow {
    0% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 0, 128, 0)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px rgba(255, 0, 128, 0.6)); }
    100% { filter: brightness(1) drop-shadow(0 0 0 rgba(255, 0, 128, 0)); }
}

@keyframes legendarySlotPulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

@keyframes legendarySlotRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes legendarySlotShine {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 128, 0.3), 0 0 40px rgba(255, 140, 0, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(64, 224, 208, 0.3); }
}

/* Современные переливающиеся эффекты для чата */
.chat-author.status-bronze {
    background: linear-gradient(90deg, #cd7f32 0%, #e8a15e 50%, #cd7f32 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chatBronzeFlow 3s linear infinite;
}

@keyframes chatBronzeFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.chat-author.status-silver {
    background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 50%, #c0c0c0 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chatSilverFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes chatSilverFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.chat-author.status-gold {
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chatGoldFlow 3s linear infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes chatGoldFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.chat-author.status-platinum {
    background: linear-gradient(90deg, #b8b6b4 0%, #e5e4e2 25%, #ffffff 50%, #e5e4e2 75%, #b8b6b4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
    filter: none !important;
    animation: platinumChatFlow 3s ease-in-out infinite;
}

.chat-author.status-diamond {
    background: linear-gradient(90deg, #00bcd4 0%, #4dd0e1 25%, #b9f2ff 50%, #4dd0e1 75%, #00bcd4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
    filter: none !important;
    animation: diamondChatFlow 2.5s ease-in-out infinite;
}

.chat-author.status-legend {
    background: linear-gradient(90deg, #ff0080 0%, #ff8c00 20%, #ffd700 40%, #00ff00 60%, #00bfff 80%, #ff0080 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: legendRainbowChat 4s linear infinite;
    font-weight: 700;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes platinumChatFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes diamondChatFlow {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

@keyframes legendRainbowChat {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes chatShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes chatLegendShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Legend сообщения выделяются */
.chat-message.legend-message {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.1), rgba(255, 140, 0, 0.1));
    border-left: 4px solid #ff0080;
    padding: 12px;
    border-radius: 8px;
}

.chat-message.legend-message .chat-author {
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
}

.chat-text {
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

/* Упоминания в тексте */
.chat-text .mention {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.chat-text .mention:hover {
    background: rgba(102, 126, 234, 0.2);
}

/* Сообщения с упоминанием текущего пользователя */
.chat-message.mentioned-message {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
    padding: 10px;
    margin-left: -10px;
    padding-left: 15px;
    border-radius: 8px;
    animation: mentionPulse 2s ease-in-out;
}

@keyframes mentionPulse {
    0%, 100% {
        background: rgba(102, 126, 234, 0.08);
    }
    50% {
        background: rgba(102, 126, 234, 0.15);
    }
}

/* Упоминание от Legend пользователя */
.chat-message.mentioned-by-legend {
    background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(255, 140, 0, 0.15));
    border-left: 3px solid #ff0080;
    animation: legendMentionPulse 2s ease-in-out;
}

@keyframes legendMentionPulse {
    0%, 100% {
        background: linear-gradient(135deg, rgba(255, 0, 128, 0.15), rgba(255, 140, 0, 0.15));
        box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.4);
    }
    50% {
        background: linear-gradient(135deg, rgba(255, 0, 128, 0.25), rgba(255, 140, 0, 0.25));
        box-shadow: 0 0 20px 5px rgba(255, 0, 128, 0.2);
    }
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chat-input button:hover {
    background: var(--primary-dark);
}

.chat-input button svg {
    width: 20px;
    height: 20px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-body {
    text-align: center;
}

.modal-body h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-auth svg {
    width: 24px;
    height: 24px;
}

.btn-telegram {
    background: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
}

.btn-vk {
    background: #0077ff;
    color: white;
}

.btn-vk:hover {
    background: #0066dd;
    transform: translateY(-2px);
}

/* Modern Auth Modal */
.auth-modal-modern {
    max-width: 720px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(15, 15, 25, 0.98));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(102, 126, 234, 0.1);
}

.auth-modal-header {
    padding: 48px 40px 36px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    position: relative;
    overflow: hidden;
}

.auth-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.8) 20%, 
        rgba(118, 75, 162, 0.8) 50%, 
        rgba(102, 126, 234, 0.8) 80%, 
        transparent 100%);
    animation: headerGlow 3s ease-in-out infinite;
}

.auth-modal-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: headerRadial 8s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes headerRadial {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.auth-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    animation: authIconPulse 2.5s ease-in-out infinite;
}

.auth-modal-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    border-radius: 50%;
    animation: iconGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes authIconPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.08) rotate(5deg); 
    }
}

@keyframes iconGlow {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.auth-modal-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 16px rgba(102, 126, 234, 0.4));
    position: relative;
    z-index: 1;
}

.auth-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
}

.auth-bonus-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    animation: bonusBadgeGlow 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.auth-bonus-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: bonusShine 3s ease-in-out infinite;
}

@keyframes bonusBadgeGlow {
    0%, 100% { 
        box-shadow: 0 0 0 rgba(16, 185, 129, 0), 0 0 0 rgba(16, 185, 129, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 40px rgba(16, 185, 129, 0.2);
        transform: scale(1.02);
    }
}

@keyframes bonusShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.auth-bonus-badge svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.auth-bonus-badge strong {
    color: #fff;
    font-weight: 700;
}

.auth-methods {
    padding: 36px 40px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
}

.auth-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 36px 28px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.07));
    border: 2px solid rgba(102, 126, 234, 0.25);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 1;
    text-align: center;
    backdrop-filter: blur(10px);
}

.auth-method-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.15), transparent);
    transform: rotate(45deg);
    transition: all 0.8s;
    opacity: 0;
}

.auth-method-card:hover::before {
    opacity: 1;
    transform: translate(50%, 50%) rotate(45deg);
}

.auth-method-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-method-card:hover::after {
    opacity: 1;
}

.auth-method-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3), 0 0 24px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
}

.auth-method-card:active {
    transform: translateY(0);
}

.auth-method-icon {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.auth-method-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    background: inherit;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.auth-method-card:hover .auth-method-icon::before {
    opacity: 0.6;
}

.auth-method-telegram .auth-method-icon {
    background: linear-gradient(135deg, #0088cc, #006699);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4), 0 0 20px rgba(0, 136, 204, 0.2);
}

.auth-method-vk .auth-method-icon {
    background: linear-gradient(135deg, #0077ff, #0055cc);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.4), 0 0 20px rgba(0, 119, 255, 0.2);
}

.auth-method-icon svg {
    width: 44px;
    height: 44px;
    color: #fff;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.auth-method-card:hover .auth-method-icon {
    transform: scale(1.05);
}

.auth-method-card:hover .auth-method-icon svg {
    transform: scale(1.15) rotate(8deg);
}

.auth-method-content {
    flex: 1;
    text-align: center;
    width: 100%;
}

.auth-method-content h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-method-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.auth-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.auth-method-badge svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.auth-method-badge-available {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    color: #10b981;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.auth-method-badge-unavailable {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    color: #ef4444;
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.auth-method-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.auth-method-card:hover .auth-method-arrow {
    opacity: 1;
    transform: scale(1.15) translateX(2px);
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
}

.auth-method-arrow svg {
    width: 100%;
    height: 100%;
}

.auth-method-lock {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.3);
}

.auth-method-lock svg {
    width: 100%;
    height: 100%;
}

/* Disabled state */
.auth-method-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-method-disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.auth-method-disabled::before {
    display: none;
}

.auth-method-disabled .auth-method-icon {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.auth-method-disabled .auth-method-content h3,
.auth-method-disabled .auth-method-content p {
    color: rgba(255, 255, 255, 0.4);
}

.auth-modal-footer {
    padding: 24px 40px 36px;
    text-align: center;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.auth-modal-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.6;
}

.auth-modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.auth-modal-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.auth-modal-footer a:hover {
    color: #9f7aea;
}

.auth-modal-footer a:hover::after {
    width: 100%;
}

/* User Panel */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.user-avatar::before {
    display: none;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
    image-rendering: auto;
}

.user-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-details {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-name {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #fff !important;
    display: block !important;
    align-items: center;
    gap: 4px;
    position: relative;
    margin-bottom: 4px !important;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.2 !important;
}

.user-name::before,
.user-name::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Переливающиеся стили для статусов в шапке уже применены через общие правила выше */

.user-name .status-bronze,
.user-name .status-silver,
.user-name .status-gold,
.user-name .status-platinum,
.user-name .status-diamond,
.user-name .status-legend {
    font-size: 11px;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: transparent !important;
}

/* Баланс пользователя - современный дизайн для ПК */
/* Бонус-баланс отображение */
.user-balance-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-bonus-balance-mini {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: help;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.user-bonus-balance-mini.has-bonus {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.user-bonus-balance-mini.no-bonus {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
}

.user-bonus-balance-mini.has-bonus:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
    transform: scale(1.05);
}

.bonus-balance-display {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: help;
    transition: all 0.3s ease;
    display: inline-block;
}

.bonus-balance-display.has-bonus {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.bonus-balance-display.no-bonus {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
}

.bonus-balance-display.has-bonus:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.bonus-balance-display-header {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: help;
    transition: all 0.3s ease;
    display: inline-block;
}

.bonus-balance-display-header.has-bonus {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
}

.bonus-balance-display-header.no-bonus {
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.bonus-balance-display-header.has-bonus:hover {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.6);
}

.user-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(5, 150, 105, 0.06) 50%,
        rgba(4, 120, 87, 0.1) 100%
    );
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #10b981;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 3px 10px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.user-balance::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.user-balance:hover::before {
    left: 100%;
}

.user-balance:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.user-balance:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 10px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-balance svg {
    color: #10b981;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.4));
    transition: all 0.3s ease;
    animation: iconBreathPC 2.5s ease-in-out infinite;
}

@keyframes iconBreathPC {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.user-balance:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(16, 185, 129, 0.6));
}

.user-balance span {
    background: linear-gradient(
        135deg,
        #10b981 0%,
        #34d399 50%,
        #10b981 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.4));
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* ===== PLAYERS LIST ===== */
.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.player-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.player-details {
    flex: 1;
}

.player-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    max-width: 180px;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
    color: var(--text-primary);
    display: block;
}

.player-name:not(.status-bronze):not(.status-silver):not(.status-gold):not(.status-platinum):not(.status-diamond):not(.status-legend) {
    color: var(--text-primary) !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* Для элементов со статусами - используем градиент, но не перекрываем inline стили */
.player-name.status-bronze,
.player-name.status-silver,
.player-name.status-gold,
.player-name.status-platinum,
.player-name.status-diamond,
.player-name.status-legend {
    color: transparent !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.player-bet {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 2px;
}

.player-tickets {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(102, 126, 234, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Пустое состояние участников */
.empty-participants {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Состояние "Ожидание игроков" */
.waiting-for-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.waiting-icon-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.waiting-icon {
    width: 80px;
    height: 80px;
    color: var(--primary);
    animation: waitingPulse 2s ease-in-out infinite;
}

@keyframes waitingPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.waiting-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.waiting-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

.waiting-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.waiting-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.waiting-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.waiting-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.waiting-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulseExpand 3s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    font-size: 14px;
}

/* ================================================
   GIVEAWAY MODAL
   ================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: 16px;
    border: 2px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

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

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 28px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="number"]::placeholder {
    color: var(--text-secondary);
}

/* Giveaway Type Cards */
.giveaway-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.giveaway-type-card {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.giveaway-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.giveaway-type-card.active {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.giveaway-type-card.active::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giveaway-type-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.giveaway-type-card.active .giveaway-type-icon {
    color: var(--success);
}

.giveaway-type-icon svg {
    width: 100%;
    height: 100%;
}

.giveaway-type-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.giveaway-type-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.btn-create-giveaway {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-top: 20px;
}

.btn-create-giveaway:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-create-giveaway:active {
    transform: translateY(0);
}

/* Giveaway System Messages */
.chat-message.system-giveaway {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-left: 4px solid var(--success);
    padding: 16px;
    border-radius: 12px;
    margin: 12px 0;
}

.chat-message.system-giveaway .giveaway-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--success);
    margin-bottom: 8px;
}

.chat-message.system-giveaway .giveaway-icon {
    width: 20px;
    height: 20px;
}

.chat-message.system-giveaway .giveaway-info {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

.chat-message.system-giveaway .giveaway-question {
    background: var(--bg-dark);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    font-family: 'Orbitron', monospace;
}

/* Завершённая раздача из истории */
.chat-message.system-giveaway.giveaway-completed {
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.08) 0%, rgba(80, 80, 80, 0.08) 100%);
    border-left: 4px solid rgba(150, 150, 150, 0.5);
    opacity: 0.75;
}

.chat-message.system-giveaway.giveaway-completed .giveaway-header {
    color: rgba(150, 150, 150, 0.8);
}

.chat-message.system-giveaway.giveaway-completed .giveaway-header span {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-message.system-giveaway.giveaway-completed .giveaway-question-completed {
    background: rgba(50, 50, 50, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    text-decoration: line-through;
}

.chat-message.system-winner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-left: 4px solid var(--gold);
    padding: 16px;
    border-radius: 12px;
    margin: 12px 0;
}

.chat-message.system-winner .winner-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 8px;
}

.chat-message.system-winner .winner-info {
    color: var(--text-primary);
    font-size: 13px;
}

/* =============================================== */
/* RULES MODAL */
/* =============================================== */

.rules-modal-content {
    max-width: 700px;
    width: 95%;
}

.rules-body {
    padding: 24px 32px 32px;
}

.rules-intro {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
}

.rules-section {
    margin-bottom: 32px;
}

.rules-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.rules-section-header svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.rules-section-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateX(4px);
}

.rules-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

.rules-list li strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Forbidden rules (red style) */
.rules-list-forbidden li {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
}

.rules-list-forbidden li svg {
    color: var(--danger);
}

.rules-list-forbidden li:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border-color: rgba(239, 68, 68, 0.4);
}

.rules-footer {
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    padding: 20px 24px;
    border-radius: 12px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rules-footer svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
    flex-shrink: 0;
}

.rules-footer span {
    display: inline-block;
}

.rules-footer strong {
    color: var(--gold);
    font-size: 16px;
}

/* =============================================== */
/* PROFILE PAGE */
/* =============================================== */

.profile-page {
    min-height: 100vh;
    padding: 40px 0 80px;
    display: none;
}

.profile-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Profile Header */
.profile-header {
    position: relative;
    margin: -40px -20px 40px;
    padding: 60px 20px 80px;
    overflow: hidden;
}

.profile-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar-frame {
    position: relative;
    width: 180px;
    height: 180px;
}

.avatar-frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-avatar-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-elevated);
}

.profile-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-info {
    flex: 1;
}

.profile-username {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.status-icon {
    width: 20px;
    height: 20px;
    color: #ffd700;
}

/* Overview Tab */
.profile-overview {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-status-display {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.profile-stat-item {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.profile-stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Orbitron', monospace;
}

/* Edit Tab */
.profile-edit-section {
    background: var(--bg-dark);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--border);
}

.profile-edit-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-edit-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-edit-desc strong {
    color: var(--success);
    font-weight: 700;
}

/* Balance Tab */
.balance-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.balance-action-card {
    background: var(--bg-dark);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.balance-action-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.balance-action-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Status Tab */
.status-selection h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.status-card {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.status-card.selected {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.status-preview {
    font-size: 18px;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

.status-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.status-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}

/* Status Colors - Unique "WOW" Effects */
.status-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8732e 100%);
    color: #fff;
    text-shadow: 0 2px 8px rgba(205, 127, 50, 0.8);
}

.status-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    color: #2d2d2d;
    text-shadow: 0 2px 8px rgba(192, 192, 192, 0.8);
}

.status-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.9);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.status-platinum {
    background: linear-gradient(135deg, #e5e4e2 0%, #b8b6b4 100%);
    color: #1a1a1a;
    text-shadow: 0 2px 8px rgba(229, 228, 226, 0.9);
    box-shadow: 0 0 20px rgba(229, 228, 226, 0.4);
}

.status-diamond {
    background: linear-gradient(135deg, #b9f2ff 0%, #4dd0e1 100%);
    color: #003d47;
    text-shadow: 0 2px 8px rgba(185, 242, 255, 0.9);
    box-shadow: 0 0 20px rgba(77, 208, 225, 0.6);
    animation: diamondShine 2s ease-in-out infinite;
}

@keyframes diamondShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.status-legend {
    background: linear-gradient(135deg, #ff0080 0%, #ff8c00 50%, #40e0d0 100%);
    color: #fff;
    text-shadow: 0 2px 12px rgba(255, 0, 128, 1);
    box-shadow: 0 0 30px rgba(255, 0, 128, 0.8);
    animation: legendPulse 1.5s ease-in-out infinite;
}

@keyframes legendPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 0, 128, 0.8);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 0, 128, 1);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 250px 1fr 250px;
    }
}

@media (max-width: 992px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
    
    .game-sidebar,
    .game-sidebar-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .game-sidebar,
    .game-sidebar-right {
        grid-template-columns: 1fr;
    }
    
    .game-status {
        flex-direction: column;
    }
}

/* Анимации для прогресса претендента */
@keyframes progress-pulse {
    0% {
        transform: scale(1);
        color: var(--text-secondary);
    }
    50% {
        transform: scale(1.1);
        color: var(--warning);
        text-shadow: 0 0 10px var(--warning);
    }
    100% {
        transform: scale(1);
        color: var(--text-secondary);
    }
}

.progress-numbers {
    display: inline-block;
    font-weight: 600;
    color: var(--warning);
}

/* ════════════════════════════════════════════════════════════
   UNIVERSAL: Remove ALL shadows from ALL status nicknames EVERYWHERE
   ════════════════════════════════════════════════════════════ */
.boss-details h4.status-bronze,
.boss-details h4.status-silver,
.boss-details h4.status-gold,
.boss-details h4.status-platinum,
.boss-details h4.status-diamond,
.boss-details h4.status-legend,
.pretender-details h4.status-bronze,
.pretender-details h4.status-silver,
.pretender-details h4.status-gold,
.pretender-details h4.status-platinum,
.pretender-details h4.status-diamond,
.pretender-details h4.status-legend,
.player-name.status-bronze,
.player-name.status-silver,
.player-name.status-gold,
.player-name.status-platinum,
.player-name.status-diamond,
.player-name.status-legend,
.player-name,
.clickable-username.status-bronze,
.clickable-username.status-silver,
.clickable-username.status-gold,
.clickable-username.status-platinum,
.clickable-username.status-diamond,
.clickable-username.status-legend,
.clickable-username,
.player-details .player-name,
.player-details .player-name.status-bronze,
.player-details .player-name.status-silver,
.player-details .player-name.status-gold,
.player-details .player-name.status-platinum,
.player-details .player-name.status-diamond,
.player-details .player-name.status-legend,
.boss-details h4,
.pretender-details h4,
.participant-name,
.participant-name.status-bronze,
.participant-name.status-silver,
.participant-name.status-gold,
.participant-name.status-platinum,
.participant-name.status-diamond,
.participant-name.status-legend {
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    -webkit-text-shadow: none !important;
}

/* ════════════════════════════════════════════════════════════
   FOOTER - Современный дизайн
   ════════════════════════════════════════════════════════════ */
.site-footer {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(15, 15, 25, 1) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: 80px;
    padding: 60px 0 30px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.5) 50%, 
        transparent 100%
    );
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    max-width: 400px;
}

.footer-partner {
    margin-top: 32px;
}

.footer-partner-section {
    margin: 48px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.footer-partner-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.footer-partner-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.footer-partner-title::before,
.footer-partner-title::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5));
}

.footer-partner-title::after {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.5), transparent);
}

.footer-partner-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.footer-partner-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.08) 50%, 
        rgba(102, 126, 234, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    max-width: 700px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.footer-partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.footer-partner-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(102, 126, 234, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.footer-partner-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.footer-partner-card:hover {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.12) 50%, 
        rgba(102, 126, 234, 0.15) 100%);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(102, 126, 234, 0.25),
        0 0 60px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-partner-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    transition: all 0.4s ease;
}

.footer-partner-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-partner-card:hover .footer-partner-logo-wrap::before {
    opacity: 1;
}

.footer-partner-card:hover .footer-partner-logo-wrap {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
}

.footer-partner-logo {
    height: 56px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(1.1);
}

.footer-partner-card:hover .footer-partner-logo {
    transform: scale(1.08) translateY(-2px);
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.footer-partner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.footer-partner-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-partner-text strong {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #9f7aea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-partner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-partner-feature {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-partner-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
    transition: left 0.5s;
}

.footer-partner-card:hover .footer-partner-feature::before {
    left: 100%;
}

.footer-partner-feature:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.footer-partner-feature svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

.footer-partner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.footer-partner-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.footer-partner-cta:hover::before {
    width: 300px;
    height: 300px;
}

.footer-partner-cta:hover {
    background: linear-gradient(135deg, #5568d3, #6b4998);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.footer-partner-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.footer-partner-cta span {
    position: relative;
    z-index: 1;
}

.footer-partner-card:hover .footer-partner-cta svg {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════
   SLOT MACHINE - ПК версия
   ═══════════════════════════════════════════════════════════════════════ */

.slot-machine {
    position: relative;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
    border-radius: 24px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slot-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #667eea, #9f7aea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.slot-window {
    position: relative;
    overflow: hidden;
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(102, 126, 234, 0.2);
}

.slot-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 130%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        #667eea 10%, 
        #9f7aea 50%,
        #667eea 90%, 
        transparent 100%);
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 1),
        0 0 40px rgba(159, 122, 234, 0.8),
        0 0 60px rgba(102, 126, 234, 0.6);
    z-index: 100;
    pointer-events: none;
    border-radius: 3px;
}

.slot-indicator::before,
.slot-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #9f7aea, #667eea);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(159, 122, 234, 1),
        0 0 40px rgba(102, 126, 234, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.slot-indicator::before {
    top: 10%;
}

.slot-indicator::after {
    bottom: 10%;
}

.slot-reel {
    position: relative;
    overflow: visible;
}

.slot-items {
    display: flex;
    gap: 16px;
    will-change: transform;
    align-items: center;
}

.slot-item {
    width: 110px;
    min-width: 110px;
    height: 110px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    padding: 0;
}

.slot-item.winner {
    animation: slotWinnerPulse 0.6s ease-in-out forwards;
}

@keyframes slotWinnerPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1.15);
    }
}

.slot-avatar-frame {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.slot-avatar-frame:hover {
    transform: scale(1.05);
}

.slot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 17px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-link-list li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-link-list li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-link-list li a:hover::after {
    width: 100%;
}

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

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
}

.footer-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.footer-badge span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.footer-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 20px 25px;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
    line-height: 1.7;
}

.footer-disclaimer strong {
    color: #ffc107;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER CONTACTS SECTION - Современный блок контактов
   ═══════════════════════════════════════════════════════════════════════ */

.footer-contacts-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contacts-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.08) 0%,
        rgba(118, 75, 162, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.footer-contact-card::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: left 0.5s ease;
}

.footer-contact-card:hover::before {
    left: 100%;
}

.footer-contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.2),
        0 0 15px rgba(102, 126, 234, 0.1);
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-contact-card:hover .footer-contact-icon {
    transform: scale(1.08) rotate(-5deg);
}

.footer-contact-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

/* VK карточка */
.vk-card .footer-contact-icon {
    background: linear-gradient(135deg, #4a76a8, #2e5682);
}

.vk-card:hover {
    border-color: rgba(74, 118, 168, 0.4);
    box-shadow: 
        0 10px 30px rgba(74, 118, 168, 0.3),
        0 0 20px rgba(74, 118, 168, 0.15);
}

/* Telegram карточка */
.tg-card .footer-contact-icon {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.tg-card:hover {
    border-color: rgba(0, 136, 204, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 136, 204, 0.3),
        0 0 20px rgba(0, 136, 204, 0.15);
}

/* Bot карточка */
.bot-card .footer-contact-icon {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
}

.bot-card:hover {
    border-color: rgba(84, 160, 255, 0.4);
    box-shadow: 
        0 10px 30px rgba(84, 160, 255, 0.3),
        0 0 20px rgba(84, 160, 255, 0.15);
}

/* Support карточка */
.support-card .footer-contact-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.support-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.3),
        0 0 20px rgba(16, 185, 129, 0.15);
}

.footer-contact-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.footer-contact-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-family: 'Courier New', monospace;
    line-height: 1.3;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-contacts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-logo-text {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 14px;
    }
    
    .footer-disclaimer {
        padding: 15px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   FINAL TIMER - МАКСИМАЛЬНО СОВРЕМЕННЫЙ
   ═══════════════════════════════════════════════════════════════════════ */

.timer-final-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 50px 30px;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
}

.timer-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 70%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.timer-circle-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    z-index: 10;
}

.timer-circle {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.3));
}

.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.timer-count {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #00f0ff 0%, #9333ea 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
    transition: all 0.2s ease;
}

.timer-pulse {
    animation: timerCountPulse 0.2s ease-out;
}

@keyframes timerCountPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.timer-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase;
    letter-spacing: 1px;
}

.timer-status {
    z-index: 10;
    position: relative;
}

.timer-status-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    animation: statusFade 2s ease-in-out infinite;
}

@keyframes statusFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════
   СОВРЕМЕННАЯ ЗАГРУЗКА АВАТАРА - Drag & Drop + Preview
   ═══════════════════════════════════════════════════════════════════════ */

.upload-avatar-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.upload-avatar-label > span:first-child {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 149, 0, 0.2));
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.2);
}

.price-tag.free {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(48, 209, 88, 0.2));
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.3);
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.2);
}

.upload-avatar-zone {
    position: relative;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-avatar-zone:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    transform: translateY(-2px);
}

.upload-avatar-zone.drag-over {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.upload-avatar-content {
    text-align: center;
    width: 100%;
}

.upload-avatar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: floatAvatar 3s ease-in-out infinite;
}

.upload-avatar-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
}

@keyframes floatAvatar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.upload-avatar-text {
    color: rgba(255, 255, 255, 0.9);
}

.upload-avatar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.upload-avatar-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.upload-avatar-formats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

/* Превью загруженного изображения */
.upload-avatar-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-preview-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.upload-preview-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 59, 48, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upload-preview-remove:hover {
    background: rgba(255, 59, 48, 1);
    transform: scale(1.1) rotate(90deg);
}

.upload-preview-remove svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.upload-preview-info {
    text-align: center;
}

.upload-preview-filename {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    word-break: break-all;
}

.upload-preview-filesize,
.upload-preview-filetype {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 2px 0;
}

.upload-preview-filetype.is-gif {
    color: var(--primary);
    font-weight: 600;
}

/* Кнопка загрузки */
.btn-upload-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: all 0.3s ease;
}

.btn-upload-avatar:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.btn-upload-avatar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-upload-avatar svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

/* Анимация загрузки */
.btn-upload-avatar.uploading {
    pointer-events: none;
    position: relative;
}

.btn-upload-avatar.uploading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   FKWALLET PAYMENT MODALS
   ═══════════════════════════════════════════════════════════════ */

.deposit-modal,
.withdrawal-modal {
    max-width: 540px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.deposit-modal .modal-body,
.withdrawal-modal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.deposit-modal .modal-body::-webkit-scrollbar,
.withdrawal-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.deposit-modal .modal-body::-webkit-scrollbar-track,
.withdrawal-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.deposit-modal .modal-body::-webkit-scrollbar-thumb,
.withdrawal-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.deposit-modal .modal-body::-webkit-scrollbar-thumb:hover,
.withdrawal-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.deposit-modal .modal-header,
.withdrawal-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.deposit-modal .modal-header h2,
.withdrawal-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    margin: 0;
}

.deposit-modal .modal-body,
.withdrawal-modal .modal-body {
    padding: 24px;
}

.deposit-modal .modal-header svg,
.withdrawal-modal .modal-header svg {
    color: var(--primary);
}

.payment-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.payment-info p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.payment-info strong {
    color: var(--text-primary);
    font-weight: 700;
}

.payment-info .text-success {
    color: var(--success);
}

.payment-info .text-warning {
    color: #f59e0b;
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    font-size: 16px;
    font-weight: 600;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.amount-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-currency {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    pointer-events: none;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.input-hint span {
    color: var(--primary);
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.payment-method-selection {
    margin: 24px 0;
}

.payment-method-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method-label .required {
    color: #ef4444;
    margin-left: 4px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.payment-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.payment-method-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-card.selected::before {
    opacity: 1;
}

.payment-method-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.payment-method-card.selected .payment-method-check {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-color: rgba(16, 185, 129, 0.5);
}

.payment-method-check svg {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.payment-method-card.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.payment-info-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.payment-info-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.payment-info-btn svg {
    width: 14px;
    height: 14px;
}

.payment-info-modal {
    max-width: 600px;
}

.payment-info-section {
    padding: 20px 0;
}

.payment-info-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.payment-method-item {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    line-height: 1.6;
}

.payment-method-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 4px;
}

.payment-method-item small {
    color: var(--text-secondary);
    font-size: 13px;
}

.payment-info-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

.payment-info-text ul,
.payment-info-text ol {
    margin: 12px 0;
    padding-left: 24px;
}

.payment-info-text li {
    margin: 8px 0;
}

.payment-info-note {
    margin-top: 20px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.payment-info-note p {
    margin: 8px 0;
}

/* System Mute Message Styles */
.chat-message.system-mute {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-left: 3px solid rgba(239, 68, 68, 0.8);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
}

.mute-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mute-header svg {
    width: 20px;
    height: 20px;
    color: #ef4444;
}

.mute-header span {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mute-info {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mute-info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #ef4444;
}

.mute-info span {
    flex: 1;
}

.payment-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.payment-method-card:hover .payment-logo {
    transform: scale(1.1);
}

.payment-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.payment-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-badge-free {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-badge-fee {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.amount-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    text-align: center;
}

.payment-fee-info {
    font-weight: 700;
}

.text-warning {
    color: #f59e0b;
}

.text-success {
    color: #10b981;
}

#deposit-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#deposit-submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-deposit,
.btn-withdrawal {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-deposit:hover:not(:disabled),
.btn-withdrawal:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.btn-deposit:active:not(:disabled),
.btn-withdrawal:active:not(:disabled) {
    transform: translateY(0);
}

.btn-deposit:active,
.btn-withdrawal:active {
    transform: translateY(0);
}

.btn-deposit:disabled,
.btn-withdrawal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-deposit svg,
.btn-withdrawal svg {
    flex-shrink: 0;
}

/* Spinner для загрузки */
.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Balance Actions Card */
.balance-actions-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.balance-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.balance-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.balance-action-btn:hover::before {
    transform: translateX(100%);
}

.balance-action-btn svg {
    flex-shrink: 0;
}

.deposit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.deposit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.withdrawal-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.withdrawal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.balance-action-btn:active {
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   FKWallet P2P Loading Modal
   ═══════════════════════════════════════════════════════════════ */
.fkwallet-loading-modal {
    max-width: 400px;
    width: 90%;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.loading-animation {
    margin-bottom: 30px;
}

.loader {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-primary);
}

.loading-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.loading-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════
   FKWallet P2P Instruction Modal
   ═══════════════════════════════════════════════════════════════ */
.fkwallet-instruction-modal {
    max-width: 580px;
    width: 90%;
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.fkwallet-instruction-modal .modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.fkwallet-instruction-modal .modal-body::-webkit-scrollbar {
    width: 6px;
}

.fkwallet-instruction-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 3px;
}

.fkwallet-instruction-modal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.fkwallet-instruction-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.fkwallet-instruction-modal .modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.fkwallet-instruction-modal .modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.fkwallet-instruction-modal .modal-body {
    padding: 28px;
}

.payment-notification {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-notification svg {
    flex-shrink: 0;
    color: var(--warning);
    margin-top: 2px;
}

.payment-notification p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.payment-notification strong {
    color: var(--warning);
}

.instruction-steps {
    margin-bottom: 24px;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.instruction-step:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(4px);
}

.step-number {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.step-content strong {
    color: var(--primary);
    font-weight: 700;
}

.payment-link-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.btn-p2p-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-p2p-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-p2p-link:active {
    transform: translateY(0);
}

.btn-p2p-link svg {
    flex-shrink: 0;
}

.payment-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    margin: 20px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.payment-timer svg {
    flex-shrink: 0;
    color: var(--primary);
}

.payment-timer strong {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.btn-cancel-payment {
    width: 100%;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-payment:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-cancel-payment:active {
    transform: translateY(0);
}

.btn-cancel-payment svg {
    flex-shrink: 0;
}

/* FKWallet Success Modal */
.fkwallet-success-modal {
    max-width: 480px;
    width: 90%;
    border-radius: 20px;
    text-align: center;
}

.fkwallet-success-modal .modal-body {
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-radius: 50%;
    color: #22c55e;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

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

.btn-close-success {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
}

/* FKWallet Cancelled Modal - Modern Style */
#fkwallet-cancelled-modal.active {
    display: flex !important;
    opacity: 1;
}

.fkwallet-cancelled-modal {
    max-width: 520px;
    width: 90%;
    border-radius: 24px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 
        0 0 60px rgba(239, 68, 68, 0.3),
        inset 0 0 40px rgba(239, 68, 68, 0.05);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#fkwallet-cancelled-modal.active .fkwallet-cancelled-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fkwallet-cancelled-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    animation: cancelledModalSweep 3s ease-in-out infinite;
}

@keyframes cancelledModalSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-close-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-modern:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.modal-close-modern svg {
    width: 20px;
    height: 20px;
}

.cancelled-modal-container {
    padding: 50px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.cancelled-icon-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancelled-icon-circle {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cancelled-icon-main {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.cancelled-pulse-ring {
    animation: cancelledPulseRing 2s ease-in-out infinite;
}

.cancelled-outer-ring {
    animation: cancelledRotate 3s linear infinite;
    transform-origin: 60px 60px;
}

.cancelled-x-mark {
    animation: cancelledXMark 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cancelledPulseRing {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes cancelledRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes cancelledXMark {
    0% {
        opacity: 0;
        stroke-dasharray: 56.57;
        stroke-dashoffset: 56.57;
    }
    100% {
        opacity: 1;
        stroke-dasharray: 56.57;
        stroke-dashoffset: 0;
    }
}

.cancelled-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ef4444, #fca5a5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
    width: 4px;
    height: 4px;
}

.sparkle-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 1.5s;
    width: 5px;
    height: 5px;
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
}

.cancelled-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.cancelled-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.title-text {
    background: linear-gradient(135deg, #fff, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-icon {
    width: 28px;
    height: 28px;
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
    animation: cancelledIconPulse 2s ease-in-out infinite;
}

@keyframes cancelledIconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.cancelled-message {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-line {
    display: block;
    animation: cancelledMessageFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.message-line:nth-child(1) {
    animation-delay: 0.2s;
}

.message-line:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes cancelledMessageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-close-cancelled-modern {
    position: relative;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.4),
        0 0 20px rgba(239, 68, 68, 0.2);
    min-width: 180px;
}

.btn-close-cancelled-modern:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.5),
        0 0 30px rgba(239, 68, 68, 0.3);
}

.btn-close-cancelled-modern:active {
    transform: translateY(0);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-close-cancelled-modern:hover .btn-icon {
    transform: scale(1.2);
}

.btn-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-close-cancelled-modern:hover .btn-shine {
    left: 100%;
}

/* Старые стили для обратной совместимости */
.cancelled-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 50%;
    color: var(--error);
}

.btn-close-cancelled {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
}

/* Support Tickets Styles */
.support-modal,
.tickets-modal,
.ticket-details-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.ticket-details-modal {
    max-width: 800px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tickets-list-container {
    max-height: 500px;
    overflow-y: auto;
}

.ticket-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ticket-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-item-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.ticket-item-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ticket-item-preview {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.ticket-messages-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

.ticket-message {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.ticket-message.staff-message {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

.ticket-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-message-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.ticket-message-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.ticket-message-content {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ticket-reply-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-reply-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.ticket-reply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.empty-state,
.error-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Ban Modal Styles */
.ban-modal {
    max-width: 500px;
    text-align: center;
    padding: 40px 32px;
}

.ban-modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 50%;
    color: var(--danger);
}

.ban-modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--danger);
}

.ban-reason {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.ban-actions {
    margin-bottom: 20px;
}

.ban-actions .btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

.ban-note {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cancelled-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-radius: 50%;
    color: var(--error);
}

.cancelled-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.btn-close-cancelled {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
}
