/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(20, 20, 30, 0.7);
    --bg-card-hover: rgba(30, 30, 45, 0.7);
    --red: #e53935;
    --red-dark: #b71c1c;
    --red-glow: rgba(229, 57, 53, 0.3);
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --text: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);
    --green: #4caf50;
    --discord: #5865F2;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(229, 57, 53, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 215, 0, 0.03) 0%, transparent 40%);
}

/* ===== ШАПКА ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 12px 24px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.25em;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.3em;
    animation: pulse 2s infinite;
}

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

.logo-text {
    background: linear-gradient(135deg, #e53935, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 220px;
    background: rgba(15, 15, 22, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    padding: 8px 18px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #e53935;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:active {
    transform: translateY(0) scale(0.97);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(229, 57, 53, 0.2);
    border-color: rgba(229, 57, 53, 0.3);
}

.discord-link {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.25);
}

.discord-link:hover {
    background: rgba(88, 101, 242, 0.25);
}

/* ===== КНОПКИ С АНИМАЦИЯМИ ===== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    animation: btnAppear 0.4s ease-out;
}

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

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.btn:hover::after {
    width: 400px;
    height: 400px;
}

.btn:active::after {
    width: 500px;
    height: 500px;
    transition: width 0.2s, height 0.2s;
}

.btn:active {
    transform: translateY(0) scale(0.97);
    transition: all 0.1s;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.03);
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 16px 36px;
    font-size: 1.1em;
    border-radius: 16px;
    font-weight: 600;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 10px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 10px;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-gif {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 0 40px var(--red-glow);
    animation: float 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
}

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

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px var(--red-glow); }
    50% { box-shadow: 0 0 60px rgba(229, 57, 53, 0.5); }
}

.hero-gif img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e53935, #ffd700, #e53935);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    opacity: 0.25;
    z-index: 0;
    filter: blur(2px);
    animation: slowPulse 4s ease-in-out infinite;
}

@keyframes slowPulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.05); }
}

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

.hero-subtitle {
    font-size: 1.2em;
    color: #a0a0b0;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    animation: statFadeIn 0.6s ease-out;
}

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

.stat-value {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.85em;
    color: #6a6a7a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== ФИЧИ С АНИМАЦИЯМИ ===== */
.features {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(229, 57, 53, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(-5deg);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* ===== СТРАНИЦА КАЗИНО ===== */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

.login-card {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

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

.login-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

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

.login-card h2 {
    margin-bottom: 10px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ===== КАЗИНО КОНТЕЙНЕР ===== */
.casino-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.user-bar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.username {
    font-weight: 600;
}

.balance {
    margin-left: auto;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    font-weight: 600;
    font-size: 0.95em;
}

.balance span {
    color: var(--gold);
}

/* Вкладки игр */
.game-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
}

.game-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all var(--transition);
}

.game-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.game-tab.active {
    background: var(--bg-card);
    color: var(--gold);
    border-bottom-color: var(--bg-card);
}

.game-panel {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 20px;
}

.game-panel.active {
    display: block;
}

/* Рулетка */
.roulette-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wheel-section {
    flex: 0 0 260px;
    text-align: center;
}

.wheel-container {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid var(--gold);
    z-index: 5;
    filter: drop-shadow(0 0 3px var(--gold));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #b71c1c 0deg 9.7deg, #1a1a1a 9.7deg 19.5deg,
        #b71c1c 19.5deg 29.2deg, #1a1a1a 29.2deg 39deg,
        #b71c1c 39deg 48.7deg, #1a1a1a 48.7deg 58.5deg,
        #b71c1c 58.5deg 68.2deg, #1a1a1a 68.2deg 78deg,
        #b71c1c 78deg 87.7deg, #1a1a1a 87.7deg 97.5deg,
        #b71c1c 97.5deg 107.2deg, #1a1a1a 107.2deg 117deg,
        #b71c1c 117deg 126.7deg, #1a1a1a 126.7deg 136.5deg,
        #b71c1c 136.5deg 146.2deg, #1a1a1a 146.2deg 156deg,
        #b71c1c 156deg 165.7deg, #1a1a1a 165.7deg 175.5deg,
        #b71c1c 175.5deg 180deg, #2e7d32 180deg 190deg,
        #1a1a1a 190deg 199.7deg, #b71c1c 199.7deg 209.5deg,
        #1a1a1a 209.5deg 219.2deg, #b71c1c 219.2deg 229deg,
        #1a1a1a 229deg 238.7deg, #b71c1c 238.7deg 248.5deg,
        #1a1a1a 248.5deg 258.2deg, #b71c1c 258.2deg 268deg,
        #1a1a1a 268deg 277.7deg, #b71c1c 277.7deg 287.5deg,
        #1a1a1a 287.5deg 297.2deg, #b71c1c 297.2deg 307deg,
        #1a1a1a 307deg 316.7deg, #b71c1c 316.7deg 326.5deg,
        #1a1a1a 326.5deg 336.2deg, #b71c1c 336.2deg 346deg,
        #1a1a1a 346deg 355.7deg, #b71c1c 355.7deg 360deg
    );
    border: 4px solid var(--gold-dark);
    transition: transform 5s cubic-bezier(0.15, 0.7, 0.1, 1);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    border: 2px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
}

.wheel-result {
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--gold);
}

.table-section {
    flex: 1;
}

/* Числа */
.zero-row {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
    justify-content: center;
}

.zero-cell {
    width: 42px;
    height: 50px;
    background: #1b5e20;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.zero-cell:hover {
    filter: brightness(1.4);
    transform: scale(1.1);
}

.zero-cell.selected {
    border-color: var(--gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(12, 42px);
    gap: 3px;
    justify-content: center;
}

.number-cell {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #1a1a1a;
}

.number-cell.red {
    background: #b71c1c;
}

.number-cell:hover {
    filter: brightness(1.3);
    transform: scale(1.1);
    z-index: 2;
}

.number-cell.selected {
    border-color: var(--gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Наружные ставки */
.two-to-one-row, .dozen-row, .outside-row {
    display: flex;
    gap: 3px;
    margin-top: 3px;
    justify-content: center;
}

.two-to-one-btn, .dozen-btn, .outside-btn {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: white;
}

.two-to-one-btn:hover, .dozen-btn:hover, .outside-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.two-to-one-btn {
    width: 42px;
    height: 25px;
    background: #2a5c2a;
}

.dozen-btn {
    width: 168px;
    height: 28px;
    background: #2a5c2a;
    font-size: 0.75em;
}

.outside-btn {
    width: 83px;
    height: 28px;
    background: #2a5c2a;
    font-size: 0.7em;
}

.outside-btn.red-btn { background: #b71c1c; }
.outside-btn.black-btn { background: #1a1a1a; }

.two-to-one-btn.selected, .dozen-btn.selected, .outside-btn.selected {
    border-color: var(--gold) !important;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Ставки и результат */
.selected-bets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    min-height: 25px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.bet-chip {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bet-chip.num { background: #333; }
.bet-chip.other { background: #2a5c2a; }
.bet-chip .remove { cursor: pointer; color: #f44336; }

.controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.controls input {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 0.9em;
}

.btn-spin {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-spin:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-spin:active:not(:disabled) {
    transform: scale(0.95);
}

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

.result {
    margin-top: 10px;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    animation: fadeIn 0.3s ease-out;
}

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

.result.win {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid var(--green);
    color: var(--green);
}

.result.lose {
    display: block;
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #f44336;
}

/* 50/50 и Удача */
.game-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.game-card h3 {
    font-size: 1.3em;
    margin-bottom: 8px;
}

.game-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.multiplier-box {
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.multiplier-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.multiplier-value {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--gold);
}

.streak-row {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 5px;
}

.bet-input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 1em;
    margin-bottom: 12px;
}

.btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-play, .btn-collect, .btn-wide {
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all var(--transition);
    color: white;
}

.btn-play {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.btn-collect {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}

.btn-wide {
    width: 100%;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.btn-play:hover, .btn-wide:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn-play:active, .btn-wide:active {
    transform: translateY(0) scale(0.97);
}

.btn-collect:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
}

.btn-collect:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

.btn-play:disabled, .btn-collect:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== СТАТЬИ ===== */
.articles-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.articles-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    transition: all var(--transition);
}

.article-card:hover {
    border-color: rgba(229, 57, 53, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-date {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-card h3 {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.article-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
}

.article-link:hover {
    text-decoration: underline;
}

/* ===== ПОДВАЛ ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85em;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ===== ТАБЛИЦА ЛИДЕРОВ ===== */
.leaderboards {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.lb-container {
    width: 100%;
}

.lb-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--gold);
    font-weight: 800;
}

.lb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.lb-card {
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 25px;
    transition: all var(--transition);
}

.lb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lb-card h3 {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.lb-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(5px);
}

.lb-row:nth-child(1) {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.lb-row:nth-child(2) {
    background: rgba(192, 192, 192, 0.08);
    border: 1px solid rgba(192, 192, 192, 0.15);
}

.lb-row:nth-child(3) {
    background: rgba(205, 127, 50, 0.08);
    border: 1px solid rgba(205, 127, 50, 0.15);
}

.lb-rank {
    font-size: 1.4em;
    width: 40px;
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
}

.lb-name {
    flex: 1;
    margin-left: 12px;
    font-weight: 500;
    font-size: 0.95em;
    color: #a0a0b0;
}

.lb-value {
    font-weight: 700;
    color: var(--gold);
    font-size: 0.95em;
    flex-shrink: 0;
}

.lb-loading {
    text-align: center;
    color: #6a6a7a;
    padding: 30px;
    font-size: 1em;
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #a0a0b0;
    animation: fadeIn 0.5s ease-out;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2em; }
    .hero-gif { width: 150px; height: 150px; }
    .hero-stats { gap: 20px; }
    .roulette-layout { flex-direction: column; align-items: center; }
    .wheel-section { flex: none; }
    .numbers-grid { grid-template-columns: repeat(6, 38px); }
    .number-cell { width: 38px; height: 38px; }
    .nav { display: none; }
    .lb-grid { grid-template-columns: 1fr; }
}

.nav-profile-btn {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 50% !important;
    color: #bbb !important;
    text-decoration: none !important;
    font-size: 1em !important;
    transition: all 0.3s !important;
    flex-shrink: 0 !important;
    margin-left: 4px !important;
    padding: 0 !important;
}
.nav-profile-btn::after { display: none !important; }
.nav-profile-btn:hover {
    background: rgba(229, 57, 53, 0.2) !important;
    border-color: rgba(229, 57, 53, 0.4) !important;
    color: #fff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 14px rgba(229, 57, 53, 0.2) !important;
}

/* ===== ФОН С ТОЧКАМИ, РЕАГИРУЮЩИМИ НА МЫШЬ ===== */
body {
    position: relative;
    overflow-x: hidden;
}

.canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: -2;
    opacity: 0.6;
}

.canvas-bg * {
    pointer-events: none !important;
}

/* Точка */
.dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 0 12px rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1.2), 
                opacity 0.4s ease,
                background 0.4s ease,
                box-shadow 0.4s ease;
    animation: dotFloat 8s ease-in-out infinite;
}

/* Позиции точек */
.dot:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; }
.dot:nth-child(2) { top: 15%; left: 35%; animation-delay: -1s; width: 2px; height: 2px; }
.dot:nth-child(3) { top: 22%; left: 58%; animation-delay: -2s; }
.dot:nth-child(4) { top: 30%; left: 78%; animation-delay: -3s; width: 4px; height: 4px; }
.dot:nth-child(5) { top: 38%; left: 8%; animation-delay: -4s; width: 2px; height: 2px; }
.dot:nth-child(6) { top: 45%; left: 42%; animation-delay: -5s; }
.dot:nth-child(7) { top: 52%; left: 68%; animation-delay: -6s; width: 3px; height: 3px; }
.dot:nth-child(8) { top: 60%; left: 20%; animation-delay: -7s; }
.dot:nth-child(9) { top: 68%; left: 55%; animation-delay: -8s; width: 2px; height: 2px; }
.dot:nth-child(10) { top: 75%; left: 85%; animation-delay: -9s; }
.dot:nth-child(11) { top: 82%; left: 32%; animation-delay: -2.5s; }
.dot:nth-child(12) { top: 88%; left: 62%; animation-delay: -5.5s; width: 3px; height: 3px; }
.dot:nth-child(13) { top: 12%; left: 72%; animation-delay: -3.5s; }
.dot:nth-child(14) { top: 28%; left: 22%; animation-delay: -6.5s; width: 2px; height: 2px; }
.dot:nth-child(15) { top: 48%; left: 90%; animation-delay: -1.5s; }
.dot:nth-child(16) { top: 58%; left: 5%; animation-delay: -7.5s; }
.dot:nth-child(17) { top: 72%; left: 42%; animation-delay: -4.5s; width: 3px; height: 3px; }
.dot:nth-child(18) { top: 85%; left: 15%; animation-delay: -8.5s; }
.dot:nth-child(19) { top: 20%; left: 48%; animation-delay: -0.5s; }
.dot:nth-child(20) { top: 35%; left: 82%; animation-delay: -3.5s; width: 2px; height: 2px; }

@keyframes dotFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(8px, -12px); opacity: 0.6; }
    50% { transform: translate(-5px, 6px); opacity: 0.4; }
    75% { transform: translate(-10px, -4px); opacity: 0.6; }
}

/* ===== 1. АВАТАРКА-ЗАГЛУШКА ===== */
.profile-avatar[src="/img/default-avatar.png"],
img[src="/img/default-avatar.png"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #1a1a22 !important;
    color: #555;
    font-size: 28px;
    position: relative;
}

.profile-avatar[src="/img/default-avatar.png"]::after,
img[src="/img/default-avatar.png"]::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* ===== ПЛАВНЫЕ ПЕРЕХОДЫ СТРАНИЦ ===== */
.page {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.page.active {
    opacity: 1;
    transform: translateY(0);
    animation: pageFadeIn 0.35s ease-out;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== СВЕЧЕНИЕ ТОЛЬКО ДЛЯ НУЖНЫХ КАРТОЧЕК ===== */
.feature-card, .lb-card, .article-card, .login-card {
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}
.feature-card:hover, .lb-card:hover, .article-card:hover, .login-card:hover {
    box-shadow: 0 0 30px rgba(229, 57, 53, 0.15), 0 0 60px rgba(229, 57, 53, 0.05);
    border-color: rgba(229, 57, 53, 0.3) !important;
}


/* ===== ЛОГОТИП ===== */
.logo-icon {
    animation: logoBounce 0.6s ease-in-out infinite alternate, logoGlow 2s ease-in-out infinite;
}
@keyframes logoBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(229,57,53,0.3)); }
    50% { filter: drop-shadow(0 0 6px rgba(229,57,53,0.5)); }
}

/* ===== СКЕЛЕТОНЫ ===== */
.lb-loading {
    display: flex; flex-direction: column; gap: 8px; padding: 10px 0;
}
.lb-loading::before, .lb-loading::after {
    content: ''; display: block; height: 36px; border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.lb-loading::before { width: 80%; }
.lb-loading::after { width: 60%; margin-top: 4px; }
@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.toast-container {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
    padding: 14px 22px; border-radius: 10px; color: #fff; font-weight: 500;
    font-size: 0.9em; backdrop-filter: blur(20px);
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
    pointer-events: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.success { background: rgba(46,125,50,0.9); border: 1px solid #4caf50; }
.toast.error { background: rgba(198,40,40,0.9); border: 1px solid #f44336; }
.toast.win { background: rgba(255,215,0,0.15); border: 1px solid #ffd700; color: #ffd700; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #cc3333, #661a1a); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e53935; }

/* ===== ВОЛНА НА КНОПКАХ ===== */
.btn { position: relative; overflow: hidden; }
.btn:active::after {
    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%);
    animation: btnRipple 0.5s ease-out;
}
@keyframes btnRipple {
    to { width: 250px; height: 250px; opacity: 0; }
}

/* ===== СЧЁТЧИК БАЛАНСА ===== */
.balance span {
    transition: transform 0.15s ease, color 0.15s ease;
}

/* ===== КАРТОЧКИ ВЫБОРА ИГР ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1 fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-card .feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    color: #aaa;
    font-size: 0.9em;
    line-height: 1.5;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(229, 57, 53, 0.15);
    border-color: rgba(229, 57, 53, 0.3) !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Кнопка Назад */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    margin-right: auto;
}

.btn-back:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Адаптив */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1 fr;
    }
    .feature-card {
        min-height: 160px;
        padding: 25px 20px;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============ РУЛЕТКА: ИНФОРМАЦИОННЫЕ БЛОКИ ============ */

/* Контейнер для блоков под рулеткой */
.roulette-info-blocks {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    align-items: start;
}

/* ============ ИСТОРИЯ ВЫПАДЕНИЙ (левая панель) ============ */
.history-bar {
    padding: 20px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(15, 15, 30, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(200, 30, 30, 0.25);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-height: 120px;
}

.history-title {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.history-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 50px;
    align-items: center;
    padding: 5px;
}

.history-item {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 1);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    flex-shrink: 0;
}

.history-item:hover {
    transform: scale(1.15);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.history-number {
    font-weight: bold;
    font-size: 1.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============ СТАВКИ ИГРОКОВ (правая панель) ============ */
.bets-history-panel {
    width: 300px;
    min-width: 250px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(15, 15, 30, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(200, 30, 30, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-height: 500px;
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

/* Стилизация скроллбара */
.bets-history-panel::-webkit-scrollbar {
    width: 5px;
}

.bets-history-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.bets-history-panel::-webkit-scrollbar-thumb {
    background: rgba(200, 30, 30, 0.4);
    border-radius: 3px;
}

.bets-history-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 30, 30, 0.6);
}

.bets-history-title {
    color: #ff6b6b;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200, 30, 30, 0.3);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.bets-empty {
    color: #666;
    text-align: center;
    font-size: 0.85em;
    padding: 30px 15px;
    font-style: italic;
}

.bet-history-item {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.bet-history-item:hover {
    border-color: rgba(200, 30, 30, 0.4);
    background: rgba(30, 30, 45, 0.8);
    transform: translateX(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bet-player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bet-player-name {
    color: #ddd;
    font-size: 0.85em;
    font-weight: 500;
}

.bet-player-amount {
    color: #ffd700;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bet-player-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 0.75em;
}

.bet-type-badge {
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffd700;
}

.bet-multiplier {
    color: #4caf50;
    font-weight: bold;
}

/* ============ АНИМАЦИИ ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ============ ФИШКИ СТАВОК ============ */
.bet-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    margin: 3px;
    border-radius: 20px;
    font-size: 0.8em;
    animation: fadeIn 0.3s ease;
    cursor: default;
}

.bet-chip.num {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: bold;
    border: 2px solid #daa520;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.bet-chip.other {
    background: linear-gradient(135deg, #4a4a6a, #3a3a5a);
    color: #fff;
    border: 2px solid #6a6a8a;
    box-shadow: 0 2px 8px rgba(100, 100, 150, 0.3);
}

.bet-chip .bet-chip-label {
    font-size: 0.9em;
}

.bet-chip .bet-chip-amount {
    font-weight: bold;
    margin-left: 3px;
}

.bet-chip .remove {
    cursor: pointer;
    color: #ff4444;
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 5px;
    transition: all 0.2s;
    line-height: 1;
}

.bet-chip .remove:hover {
    transform: scale(1.3);
    color: #ff0000;
}

/* ============ ЯЧЕЙКИ СТОЛА РУЛЕТКИ ============ */
.number-cell, .zero-cell {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.number-cell:hover, .zero-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    z-index: 5;
}

.number-cell.selected, .zero-cell.selected {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), inset 0 0 10px rgba(255, 215, 0, 0.3) !important;
    border-color: #ffd700 !important;
    transform: scale(1.05);
    z-index: 5;
}

/* ============ КНОПКИ СТАВОК ============ */
.two-to-one-btn, .dozen-btn, .outside-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.two-to-one-btn:hover, .dozen-btn:hover, .outside-btn:hover {
    background: rgba(255, 215, 0, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.two-to-one-btn.selected, .dozen-btn.selected, .outside-btn.selected {
    background: rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    border-color: #ffd700 !important;
}

/* ============ КНОПКА СПИНА ============ */
.btn-spin {
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-spin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-spin:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(200, 40, 40, 0.4);
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 900px) {
    .roulette-info-blocks {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bets-history-panel {
        width: 100%;
        min-width: auto;
        max-height: 300px;
        position: static;
    }
    
    .history-item {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .history-bar,
    .bets-history-panel {
        padding: 15px;
    }
    
    .history-item {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .history-number {
        font-size: 0.9em;
    }
    
    .bet-chip {
        font-size: 0.75em;
        padding: 4px 8px;
    }
}

/* ============ УВЕДОМЛЕНИЯ ============ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.3s ease;
    pointer-events: auto;
    max-width: 350px;
}

.toast.win {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(46, 125, 50, 0.9));
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.toast.lose {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9), rgba(198, 40, 40, 0.9));
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.toast.error {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9), rgba(245, 124, 0, 0.9));
    border: 1px solid rgba(255, 152, 0, 0.5);
}

.toast.info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.9));
    border: 1px solid rgba(33, 150, 243, 0.5);
}

/* ============ РЕЗУЛЬТАТ РУЛЕТКИ ============ */
.result {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: bold;
    display: none;
}

.result.win {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.result.lose {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ============ ИНФОРМАЦИОННЫЕ ПАНЕЛИ ПОД РУЛЕТКОЙ ============ */
.roulette-info-blocks {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
}

/* История выпадений */
.history-bar {
    padding: 20px;
    margin-left:0px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(15, 15, 30, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(200, 30, 30, 0.25);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.history-title {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.history-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 50px;
    align-items: center;
    padding: 5px;
}

.history-empty {
    color: #666;
    font-size: 0.8em;
    text-align: center;
    width: 100%;
}

.history-item {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    animation: fadeIn 0.3s ease;
    flex-shrink: 0;
}

.history-item:hover {
    transform: scale(1.15);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.history-number {
    font-weight: bold;
    font-size: 1.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0);
}

/* Ставки игроков */
.bets-history-panel {
    padding: 20px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(15, 15, 30, 0.9));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(200, 30, 30, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-height: 500px;
    overflow-y: auto;
    position: sticky;
    top: 0px;
    margin-left:310px;
    margin-top: 0px;
    
}

.bets-history-panel::-webkit-scrollbar {
    width: 5px;
}

.bets-history-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.bets-history-panel::-webkit-scrollbar-thumb {
    background: rgba(200, 30, 30, 0.4);
    border-radius: 3px;
}

.bets-history-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 30, 30, 0.6);
}

.bets-history-title {
    color: #ff6b6b;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200, 30, 30, 0.3);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.bets-empty {
    color: #666;
    text-align: center;
    font-size: 0.85em;
    padding: 30px 15px;
    font-style: italic;
}

.bet-history-item {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.bet-history-item:hover {
    border-color: rgba(200, 30, 30, 0.4);
    background: rgba(30, 30, 45, 0.8);
    transform: translateX(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bet-player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bet-player-name {
    color: #ddd;
    font-size: 0.85em;
    font-weight: 500;
}

.bet-player-amount {
    color: #ffd700;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bet-player-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 0.75em;
}

.bet-type-badge {
    background: rgba(255, 215, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #ffd700;
}

.bet-multiplier {
    color: #4caf50;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 900px) {
    .roulette-info-blocks {
        grid-template-columns: 1 fr;
        gap: 15px;
    }
    
    .bets-history-panel {
        position: static;
        max-height: 300px;
    }
    
    .history-item {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .history-bar,
    .bets-history-panel {
        padding: 15px;
    }
    
    .history-item {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .history-number {
        font-size: 0.9em;
    }
}

/* Стили для выбора суммы ставки */
.bet-amount-selector {
    margin-top: 15px;
    padding: 12px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(200, 30, 30, 0.3);
    border-radius: 12px;
}

.bet-amount-title {
    color: #aaa;
    font-size: 0.75em;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.bet-amount-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.bet-amount-btn {
    padding: 8px 14px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(20, 20, 35, 0.8);
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.bet-amount-btn:hover {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(40, 40, 60, 0.8);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bet-amount-btn.active {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(200, 40, 40, 0.4), rgba(120, 20, 20, 0.4));
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 600px) {
    .bet-amount-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }
}