/* ==================== ОСНОВНЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    color: #f0f0f0;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a1a;
}

/* Canvas для дыма */
#smokeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.header-logo {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #8a2be2, #4169e1, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease forwards;
}

.tagline {
    font-size: 1.2rem;
    color: #b0b0d0;
    font-weight: 500;
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

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

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

/* ==================== ВКЛАДКИ ==================== */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(34, 34, 63, 0.9);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    max-width: 200px;
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #b0b0d0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-button.active {
    background: rgba(138, 43, 226, 0.3);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* ==================== КАРТОЧКИ ==================== */
.card {
    background: rgba(34, 34, 63, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card h2 {
    color: #d4c6ff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 {
    color: #d4c6ff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card h4 {
    color: #b0b0d0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* ==================== ШАПКА ПОЛЬЗОВАТЕЛЯ ==================== */
.user-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.user-info {
    background: rgba(34, 34, 63, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.user-info i {
    font-size: 1.5rem;
    color: #8a2be2;
}

.user-balance {
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    padding: 5px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: rotate(180deg);
}

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

.auth-btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-btn {
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    color: white;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

/* ==================== АВТОРИЗАЦИЯ ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(34, 34, 63, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 50px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #8a2be2, #4169e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    text-align: center;
}

.auth-card h2 {
    color: #d4c6ff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #b0b0d0;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.auth-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.4);
}

.auth-link {
    text-align: center;
    margin-top: 25px;
    color: #b0b0d0;
}

.auth-link a {
    color: #8a2be2;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ==================== КРАШ ИГРА ==================== */
.crash-game {
    text-align: center;
}

.multiplier-container {
    margin: 40px 0;
    text-align: center;
}

#crashMultiplier {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
    line-height: 1.2;
    transition: all 0.1s ease;
}

#crashMultiplier.crashing {
    animation: shake 0.5s ease;
    color: #f44336;
    -webkit-text-fill-color: #f44336;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.multiplier-progress {
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 30px 0;
    overflow: hidden;
}

#crashProgress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #ffeb3b, #f44336);
    width: 0%;
    transition: width 0.1s ease;
}

.crash-controls {
    margin: 30px 0;
}

.bet-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bet-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 15px;
    flex-wrap: wrap;
}

.bet-control label {
    color: #b0b0d0;
    font-size: 0.9rem;
}

.bet-control input[type="number"],
.bet-control select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    min-width: 120px;
}

.bet-control input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #8a2be2;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b0b0d0;
    cursor: pointer;
}

.max-bet-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.max-bet-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: #8a2be2;
}

.crash-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.crash-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.play-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.play-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.cashout-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.cashout-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.4);
}

.crash-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== ИГРОКИ И ИСТОРИЯ ==================== */
.active-players,
.global-history,
.big-wins {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

#crashPlayersList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.player-badge {
    background: rgba(138, 43, 226, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    font-size: 0.9rem;
}

.player-badge i {
    color: gold;
}

.player-badge[style*="background: rgba(76, 175, 80, 0.2)"] {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4CAF50;
}

.history-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.history-item {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.history-item.high {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.history-item.medium {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.history-item.low {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

/* ==================== РУЛЕТКА ==================== */
.roulette-game {
    text-align: center;
}

.roulette-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 40px auto;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #f44336 0deg 9.73deg,
        #333 9.73deg 19.46deg,
        #f44336 19.46deg 29.19deg,
        #333 29.19deg 38.92deg,
        #f44336 38.92deg 48.65deg,
        #333 48.65deg 58.38deg,
        #f44336 58.38deg 68.11deg,
        #333 68.11deg 77.84deg,
        #f44336 77.84deg 87.57deg,
        #333 87.57deg 97.3deg,
        #f44336 97.3deg 107.03deg,
        #333 107.03deg 116.76deg,
        #f44336 116.76deg 126.49deg,
        #333 126.49deg 136.22deg,
        #f44336 136.22deg 145.95deg,
        #333 145.95deg 155.68deg,
        #f44336 155.68deg 165.41deg,
        #333 165.41deg 175.14deg,
        #f44336 175.14deg 184.87deg,
        #333 184.87deg 194.6deg,
        #f44336 194.6deg 204.33deg,
        #333 204.33deg 214.06deg,
        #f44336 214.06deg 223.79deg,
        #333 223.79deg 233.52deg,
        #f44336 233.52deg 243.25deg,
        #333 243.25deg 252.98deg,
        #f44336 252.98deg 262.71deg,
        #333 262.71deg 272.44deg,
        #f44336 272.44deg 282.17deg,
        #333 282.17deg 291.9deg,
        #f44336 291.9deg 301.63deg,
        #333 301.63deg 311.36deg,
        #f44336 311.36deg 321.09deg,
        #333 321.09deg 330.82deg,
        #f44336 330.82deg 340.55deg,
        #333 340.55deg 350.28deg,
        #4CAF50 350.28deg 360deg
    );
    border: 5px solid gold;
    position: relative;
    transition: transform 3s cubic-bezier(0.25, 0.1, 0.15, 1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.roulette-wheel.spinning {
    animation: spinWheel 3s ease-out;
}

@keyframes spinWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1440deg); }
}

.wheel-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    z-index: 2;
    border: 3px solid gold;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.roulette-ball {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    z-index: 3;
    filter: drop-shadow(0 0 15px gold);
    animation: bounce 0.5s ease infinite;
}

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

.roulette-ball.spinning {
    animation: orbit 3s linear infinite;
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

.roulette-betting {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.bet-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.bet-type select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.number-select {
    display: none;
}

.number-select.visible {
    display: block;
}

#rouletteNumber {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    width: 100px;
}

.spin-button {
    background: linear-gradient(135deg, #8a2be2, #4169e1);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.4);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recent-results {
    margin: 30px 0;
}

.result-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.result-ball {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.result-ball.red {
    background: #f44336;
}

.result-ball.black {
    background: #333;
    border: 2px solid white;
}

.result-ball.green {
    background: #4CAF50;
}

.roulette-colors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #b0b0d0;
}

.color-dot {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.color-dot.red {
    background: #f44336;
    box-shadow: 0 0 15px #f44336;
}

.color-dot.black {
    background: #333;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.color-dot.green {
    background: #4CAF50;
    box-shadow: 0 0 15px #4CAF50;
}

/* ==================== СЛОТЫ ==================== */
.slots-game {
    text-align: center;
}

.slot-reels {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    perspective: 1000px;
}

.slot-reel {
    width: 150px;
    height: 150px;
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 2px 10px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.1s ease;
}

.slot-reel.spinning {
    animation: spinReel 0.2s linear infinite;
}

@keyframes spinReel {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}

.slots-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.auto-spin-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.auto-spin-btn.stop {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.auto-spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.auto-spin-btn.stop:hover:not(:disabled) {
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

.auto-spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auto-spin-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 15px;
}

.auto-spin-progress .progress-bar {
    flex: 1;
    height: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.auto-spin-progress .progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8a2be2);
    width: 0%;
    transition: width 0.3s ease;
}

#autoSpinCount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4c6ff;
    min-width: 60px;
}

/* ==================== ТАБЛИЦА ЛИДЕРОВ ==================== */
.leaderboard-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: rgba(138, 43, 226, 0.3);
    border-color: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.leaderboard-table {
    overflow-x: auto;
    margin: 20px 0;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.leaderboard-table th {
    text-align: left;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: #d4c6ff;
    font-weight: 600;
}

.leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.wins-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.win-item {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(138, 43, 226, 0.1));
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid gold;
    flex-wrap: wrap;
    gap: 10px;
}

/* ==================== ПРОФИЛЬ ==================== */
.profile-stats {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.profile-avatar i {
    font-size: 6rem;
    color: #8a2be2;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.profile-info p {
    color: #b0b0d0;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid #8a2be2;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.stat-item i {
    font-size: 2.5rem;
    color: gold;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0b0d0;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.game-history {
    max-height: 300px;
    overflow-y: auto;
    margin: 25px 0;
    border-radius: 15px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.history-item.win {
    border-left: 4px solid #4CAF50;
}

.history-item.lose {
    border-left: 4px solid #f44336;
}

/* ==================== КНОПКИ И УВЕДОМЛЕНИЯ ==================== */
.reset-button {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

.reset-button:hover {
    background: rgba(244, 67, 54, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.2);
}

.game-message {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    text-align: center;
    font-size: 1.2rem;
    border-left: 4px solid #8a2be2;
}

.roulette-result,
.slots-result {
    composes: game-message;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background: rgba(34, 34, 63, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification i {
    font-size: 1.3rem;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #f44336;
}

footer {
    text-align: center;
    padding: 25px;
    color: #b0b0d0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header-logo {
        font-size: 2.2rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        max-width: 100%;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    #crashMultiplier {
        font-size: 3.5rem;
    }
    
    .roulette-wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .slot-reel {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .crash-buttons {
        flex-direction: column;
    }
    
    .crash-btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-stats {
        flex-direction: column;
        text-align: center;
    }
    
    .bet-controls-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
}