*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ: Надёжное скрытие file inputs */
input[type="file"] {
    position: absolute !important;
    width: 0.1px !important;
    height: 0.1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}


:root {

    --pixel-cyan: #00FFFF;
    --pixel-cyan-dark: #00CCCC;
    --pixel-cyan-light: #40E0D0;
    --pixel-magenta: #FF00FF;
    --pixel-magenta-dark: #CC00CC;
    --pixel-yellow: #FFFF00;
    --pixel-yellow-dark: #CCCC00;
    --pixel-green: #00FF00;
    --pixel-green-dark: #00CC00;
    --pixel-red: #FF0000;
    --pixel-red-dark: #CC0000;
    --pixel-blue: #0080FF;
    --pixel-white: #FFFFFF;
    --pixel-black: #000000;
    --pixel-gray: #666666;
    --pixel-gray-light: #999999;
    --pixel-dark-gray: #333333;


    --primary-gradient: linear-gradient(135deg, var(--pixel-cyan), var(--pixel-blue));
    --secondary-gradient: linear-gradient(135deg, var(--pixel-magenta), var(--pixel-cyan));
    --accent-gradient: linear-gradient(135deg, var(--pixel-yellow), var(--pixel-green));


    --subtle-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --strong-glow: 0 0 40px rgba(0, 255, 255, 0.6);
    --neon-glow: 0 0 60px rgba(0, 255, 255, 0.8);


    --pixel-font: 'JetBrains Mono', 'Press Start 2P', 'Courier New', monospace;


    --pixel-unit: 8px;
    --pixel-2: 16px;
    --pixel-3: 24px;
    --pixel-4: 32px;
    --pixel-6: 48px;
    --pixel-8: 64px;
    --pixel-12: 96px;


    --pixel-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --pixel-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}




html {
    font-size: 125%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}


.click-effect {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: clickExplosion 1s ease-out forwards;
}

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

.pixel-burst {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #00FFFF;
    pointer-events: none;
    z-index: 9998;
    animation: pixelBurstAnimation 0.8s ease-out forwards;
}

@keyframes pixelBurstAnimation {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--delta-x), var(--delta-y)) scale(0);
        opacity: 0;
    }
}

body {
    font-family: var(--pixel-font);
    background: var(--pixel-black);
    color: var(--pixel-white);
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundPulse 8s ease-in-out infinite;
}

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

@keyframes blink {
    0%, 50% {
        border-color: var(--pixel-cyan);
        opacity: 1;
    }
    51%, 100% {
        border-color: transparent;
        opacity: 0.5;
    }
}

.pixel-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A1929;
    z-index: 100003;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Video Loader Container - Desktop */
.video-loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A1929;
}

.loading-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1.01);
    will-change: opacity;
    filter: contrast(1.05) brightness(1.05);
}

.loading-video.loaded {
    opacity: 1;
}

/* Адаптация под разные разрешения экрана */
@media (min-width: 1920px) {
    .loading-video {
        transform: translateZ(0) scale(1.02);
    }
}

@media (min-width: 2560px) {
    .loading-video {
        transform: translateZ(0) scale(1.03);
    }
}

@media (min-width: 3840px) {
    .loading-video {
        transform: translateZ(0) scale(1.05);
    }
}

.loading-video::-webkit-media-controls {
    display: none !important;
}

.loading-video::-webkit-media-controls-panel {
    display: none !important;
}

.loading-video::-webkit-media-controls-play-button {
    display: none !important;
}

.loading-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Mobile Simple Loader */
.mobile-simple-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A1929;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mobile-brand-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #00ffff;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.9),
        0 0 20px rgba(0, 255, 255, 0.7),
        0 0 30px rgba(0, 255, 255, 0.5),
        2px 2px 0px rgba(0, 150, 150, 0.5);
    z-index: 10;
    text-align: center;
    letter-spacing: 3px;
    animation: brandPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 255, 255, 0.3));
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 0;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 255, 0.1),
        0 0 20px rgba(0, 255, 255, 0.2);
    white-space: nowrap;
}

@keyframes brandPulse {
    0%, 100% {
        opacity: 0.85;
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 0.9),
            0 0 20px rgba(0, 255, 255, 0.7),
            0 0 30px rgba(0, 255, 255, 0.5),
            2px 2px 0px rgba(0, 150, 150, 0.5);
        transform: translateX(-50%) scale(1);
        border-color: rgba(0, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 1),
            0 0 25px rgba(0, 255, 255, 0.9),
            0 0 35px rgba(0, 255, 255, 0.7),
            0 0 45px rgba(0, 255, 255, 0.5),
            3px 3px 0px rgba(0, 200, 200, 0.6);
        transform: translateX(-50%) scale(1.03);
        border-color: rgba(0, 255, 255, 0.6);
    }
}

/* Hide video on mobile, show simple animation */
@media (max-width: 768px) {
    .video-loader-container {
        display: none !important;
    }
    
    .mobile-simple-loader {
        display: flex !important;
    }
    
    .mobile-brand-text {
        font-size: 13px;
        letter-spacing: 2px;
        padding: 8px 12px;
    }
    
    .brand-container {
        padding: 5px 8px;
    }
    
    .logo-container {
        width: 38px;
        height: 38px;
    }
    
    .brand-border-animation,
    .brand-scan-line {
        display: none;
    }
    
    /* ПОЛНОЕ СКРЫТИЕ ONLINE статус на мобильных для неавторизованных */
    #brandInfo .brand-status,
    #brandInfo .status-dot,
    #brandInfo .status-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .mobile-brand-text {
        font-size: 11px;
        letter-spacing: 1.5px;
        padding: 6px 10px;
    }
    
    .brand-container {
        padding: 4px 6px;
    }
    
    .logo-container {
        width: 32px;
        height: 32px;
        border-width: 1px;
    }
    
    /* ПОЛНОЕ СКРЫТИЕ ONLINE на телефонах */
    #brandInfo .brand-status,
    #brandInfo .status-dot,
    #brandInfo .status-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 360px) {
    .mobile-brand-text {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 5px 8px;
    }
    
    .brand-container {
        padding: 3px 5px;
    }
    
    .logo-container {
        width: 28px;
        height: 28px;
    }
    
    /* ПОЛНОЕ СКРЫТИЕ ONLINE на маленьких телефонах */
    #brandInfo .brand-status,
    #brandInfo .status-dot,
    #brandInfo .status-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

.mobile-wave-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 5px #00FFFF,
            0 0 15px rgba(0, 255, 255, 0.4),
            0 0 25px rgba(0, 255, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 0 15px #00FFFF,
            0 0 25px rgba(0, 255, 255, 0.8),
            0 0 35px rgba(0, 255, 255, 0.6);
    }
}

.desktop-auth {
    display: flex;
    gap: 10px;
}

.mobile-auth {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mobile-login-btn {
    width: 140px;
    height: 45px;
    font-size: 16px;
}

.mobile-register-link {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #00FFFF;
    cursor: pointer;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    image-rendering: pixelated;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    font-smooth: never;
}

.mobile-register-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px #00FFFF;
}

.mobile-login-btn .btn-label {
    display: inline-block !important;
    font-size: 14px;
    font-weight: normal;
}

.pixel-footer {
    background: linear-gradient(135deg, #001122 0%, #002244 100%);
    border-top: 2px solid #00FFFF;
    padding: 20px 0;
    margin-top: 50px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-link {
    background: transparent;
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #00FFFF;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    font-smooth: never;
}

.footer-link:hover {
    border-color: #00FFFF;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.footer-link.active {
    border-color: #00FFFF;
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    color: #ffffff;
}

.footer-icon {
    font-size: 12px;
}

.footer-copyright {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: rgba(0, 255, 255, 0.6);
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: unset;
    font-smooth: never;
}


.pixel-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: oceanBreeze 8s ease-in-out infinite;
}

.pixel-wave canvas {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    animation: waveGlow 3s ease-in-out infinite;
}

@keyframes waveGlow {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(0, 188, 212, 0.4)) brightness(1.1);
    }
    33% {
        filter: drop-shadow(0 0 35px rgba(0, 150, 199, 0.6)) brightness(1.2);
    }
    66% {
        filter: drop-shadow(0 0 45px rgba(0, 131, 143, 0.5)) brightness(1.15);
    }
}

.wave-strip {
    position: absolute;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-radius: 0;
    filter: brightness(1.2) contrast(1.1);
}



.text-pixel {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00FFFF;
    box-shadow: 0 0 6px #00FFFF;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    z-index: 20;
    will-change: transform, opacity;
}

.text-pixel.dispersing {
    animation: none;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    will-change: transform, opacity;
}

.pixel-fragment {
    position: absolute;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    will-change: transform, opacity;
}

.text-pixel.pixel-initial {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    box-shadow: 0 0 8px #FFFFFF;
}

.text-pixel.pixel-appear {
    opacity: 1;
    transform: scale(1.25) rotate(0deg);
    background: linear-gradient(45deg, #00FFFF, #40E0D0, #00E5FF);
    box-shadow: 
        0 0 15px #00FFFF, 
        0 0 30px rgba(0, 255, 255, 0.6),
        0 0 45px rgba(0, 229, 255, 0.4),
        inset 0 0 8px rgba(255,255,255,0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.text-pixel.pixel-final {
    transform: scale(1);
    background: linear-gradient(90deg, #00FFFF, #40E0D0);
    box-shadow: 
        0 0 10px #00FFFF,
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 4px rgba(255,255,255,0.3);
    transition: all 0.3s ease-out;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px #00FFFF,
            0 0 20px rgba(0, 255, 255, 0.4),
            inset 0 0 4px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 
            0 0 15px #00FFFF,
            0 0 30px rgba(0, 255, 255, 0.6),
            inset 0 0 6px rgba(255,255,255,0.4);
    }
}

.text-pixel.pixel-disappear {
    opacity: 0;
    transform: scale(0);
    transition: all 0.1s ease-out;
}

.pixel-fragment.fragment-fly-up {
    opacity: 1;
    transform: scale(1);
}

.pixel-fragment.fragment-flying {
    opacity: 0;
    transform: translateY(-150px) scale(0.3);
    transition: all 0.8s ease-out;
}

.pixel-fragment.fragment-instant {
    opacity: 1;
    transform: scale(1);
}

.pixel-fragment.fragment-fly-instant {
    opacity: 0;
    transform: translateY(-60px) scale(0.1);
    transition: all 0.2s linear;
}

.pixel-decorations {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    pointer-events: none;
}

.decoration-pixel {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--pixel-cyan);
    opacity: 0;
    animation: decorationFloat 3s ease-in-out infinite;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@keyframes decorationFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0.5);
    }
    25% {
        opacity: 0.6;
        transform: translateY(-20px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    75% {
        opacity: 0.8;
        transform: translateY(-30px) scale(0.8);
    }
}

@keyframes pixelPulse {
    0%, 100% {
        text-shadow: 
            3px 3px 0 var(--pixel-black),
            6px 6px 0 var(--pixel-black),
            0 0 30px var(--pixel-cyan),
            0 0 60px rgba(0, 255, 255, 0.6);
        transform: scale(1);
        filter: contrast(1.5) brightness(1.2);
    }
    50% {
        text-shadow: 
            3px 3px 0 var(--pixel-black),
            6px 6px 0 var(--pixel-black),
            0 0 40px var(--pixel-cyan),
            0 0 80px rgba(0, 255, 255, 0.8),
            0 0 120px rgba(0, 188, 212, 0.4);
        transform: scale(1.05);
        filter: contrast(1.8) brightness(1.4);
    }
}

@media (max-width: 768px) {
    .pixel-loader {
        background: linear-gradient(135deg, 
            #0A0E27 0%, 
            #1B2951 25%, 
            #0F3460 50%, 
            #1B2951 75%, 
            #0A0E27 100%);
        background-size: 400% 400%;
        animation: simpleGradientShift 4s ease-in-out infinite;
    }
    
    @keyframes simpleGradientShift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
    
    .wave-container video {
        transform: translateZ(0) scale(1.5) !important;
        width: 60% !important;
        height: 60% !important;
        left: 20% !important;
        top: 20% !important;
        filter: brightness(1.2) contrast(1.1);
        opacity: 0.9;
    }
    
    .pixel-wave {
        animation: simplePulse 2s ease-in-out infinite !important;
    }
    
    @keyframes simplePulse {
        0%, 100% { opacity: 0.8; filter: brightness(1); }
        50% { opacity: 1; filter: brightness(1.3); }
    }
    
    .mobile-brand-text {
        font-size: 24px;
    }
    
    .desktop-auth {
        display: none;
    }
    
    .mobile-auth {
        display: flex;
    }
    
    /* Профиль на мобильных - фиксим z-index */
    .profile-dropdown {
        z-index: 100015 !important;
        position: fixed !important;
        right: 10px !important;
        left: auto !important;
        top: 60px !important;
    }
    
    .profile-dropdown.active {
        pointer-events: auto !important;
    }
    
    /* Убеждаемся, что неактивный профиль полностью неинтерактивен */
    .profile-dropdown:not(.active) {
        pointer-events: none !important;
        display: none !important;
    }
    
    .mobile-login-btn {
        width: 120px;
        height: 40px;
        font-size: 14px;
    }
    
    .mobile-login-btn .btn-label {
        font-size: 12px !important;
    }
    
    .mobile-register-link {
        font-size: 9px;
    }
    
    .loader-brand {
        top: 50%;
        padding: 15px 30px;
    }
    
    .simple-pixel-text {
        font-size: 36px;
    }
    
    .text-pixel {
        width: 6px;
        height: 6px;
    }
    
    .decoration-pixel {
        width: 4px;
        height: 4px;
    }
    
    .user-panel .pixel-btn:not(.logout) {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px;
    }
    .user-panel .pixel-btn:not(.logout) .btn-label { display: none !important; }
    .user-panel .pixel-btn:not(.logout) .btn-icon { margin: 0 !important; font-size: 22px !important; }
}

@media (max-width: 480px) {
    .pixel-loader {
        background: linear-gradient(135deg, 
            #0A0E27 0%, 
            #1B2951 50%, 
            #0A0E27 100%);
        background-size: 200% 200%;
        animation: ultraSimpleShift 3s ease-in-out infinite;
    }
    
    @keyframes ultraSimpleShift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
    
    .wave-container video {
        transform: translateZ(0) scale(1.2) !important;
        width: 70% !important;
        height: 70% !important;
        left: 15% !important;
        top: 15% !important;
        filter: brightness(1.3) contrast(1.05);
        opacity: 0.85;
    }
    
    .pixel-wave {
        animation: mobilePulse 1.5s ease-in-out infinite !important;
    }
    
    @keyframes mobilePulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }
    

    .pixel-wave canvas {
        animation: none !important;
        filter: brightness(1.2) !important;
    }
    
    .mobile-brand-text {
        font-size: 18px;
    }
    
    .mobile-login-btn {
        width: 180px !important;
        height: 60px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 16px 24px !important;
        border-width: 2px !important;
        border-radius: 0 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        background: rgba(0, 255, 255, 0.95) !important;
        color: #001122 !important;
        border-color: #00ffff !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(0, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        text-shadow: none !important;
    }
    
    .mobile-login-btn .btn-label {
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
    }
    
    .mobile-register-link {
        font-size: 8px;
    }
    
    .pixel-tab .btn-label {
        font-size: 14px !important;
        font-weight: bold;
    }
    
    .user-panel .btn-label {
        display: inline-block !important;
        font-size: 10px !important;
        margin-left: 4px;
        font-weight: bold;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-link {
        font-size: 9px;
        padding: 6px 12px;
    }
    
    .footer-copyright {
        font-size: 7px;
    }
    
    .pixel-main {
        margin-top: 0px;
        padding-top: 80px;
    }
    
    .loader-brand {
        top: 50%;
        padding: 10px 20px;
    }
    
    .simple-pixel-text {
        font-size: 24px;
    }
    
    .text-pixel {
        width: 5px;
        height: 5px;
    }
    
    .decoration-pixel {
        width: 3px;
        height: 3px;
    }
    
    .user-panel .pixel-btn:not(.logout) {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
    .user-panel .pixel-btn:not(.logout) .btn-icon { font-size: 16px !important; }
}

.text-line {
    font-size: 14px;
    color: var(--pixel-white);
    margin-bottom: var(--pixel-2);
    text-shadow: 2px 2px 0 var(--pixel-black);
    animation: textFlicker 2s ease-in-out infinite;
}

.text-line.accent {
    font-size: 24px;
    color: var(--pixel-cyan);
    text-shadow: 
        2px 2px 0 var(--pixel-black),
        0 0 20px var(--pixel-cyan);
    animation: titleGlow 2s ease-in-out infinite;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background: var(--pixel-dark-gray);
    border: 2px solid var(--pixel-cyan);
    margin: var(--pixel-3) auto;
    position: relative;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--retro-gradient);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--pixel-cyan);
    animation: progressGlow 1s ease-in-out infinite;
}



@keyframes textGlitch {
    0%, 90%, 100% { 
        transform: translate(0);
    }
    10% { 
        transform: translate(-1px, 1px);
    }
    20% { 
        transform: translate(1px, -1px);
    }
    30% { 
        transform: translate(-1px, -1px);
    }
    40% { 
        transform: translate(1px, 1px);
    }
}

@keyframes textFlicker {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.8;
    }
}

@keyframes progressGlow {
    0%, 100% { 
        box-shadow: 0 0 10px var(--pixel-cyan);
    }
    50% { 
        box-shadow: 
            0 0 20px var(--pixel-cyan),
            0 0 30px var(--pixel-magenta);
    }
}

@keyframes waveRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes oceanBreeze {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        filter: hue-rotate(10deg) brightness(1.1);
    }
    50% {
        filter: hue-rotate(-5deg) brightness(0.9);
    }
    75% {
        filter: hue-rotate(15deg) brightness(1.2);
    }
}


.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    animation: scanlinePixelFlow 0.15s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.pixel-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: var(--pixel-6) var(--pixel-6);
    opacity: 0.4;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(var(--pixel-2), var(--pixel-2)); }
}




.retro-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://i.postimg.cc/9063zDwL/assets-task-01k3rjt8avfawrqqarwk1s0aax-1756393027-img-1.webp') center/cover no-repeat;
    filter: brightness(0.05);
    image-rendering: pixelated;
    animation: parallaxFloat 20s ease-in-out infinite;
}

.bg-layer.bg-1 {
    animation: parallaxFloat1 25s ease-in-out infinite;
    transform: scale(1.1);
}

.bg-layer.bg-2 {
    animation: parallaxFloat2 30s ease-in-out infinite reverse;
    transform: scale(1.05);
}

.bg-layer.bg-3 {
    animation: parallaxFloat3 35s ease-in-out infinite;
    transform: scale(1.02);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
    overflow: hidden;
    display: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pixel-cyan);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.6;
}

.particle:nth-child(2n) {
    background: var(--pixel-magenta);
    animation-duration: 10s;
}

.particle:nth-child(3n) {
    background: var(--pixel-yellow);
    animation-duration: 12s;
}

.particle:nth-child(4n) {
    background: var(--pixel-green);
    animation-duration: 6s;
}

.bg-1 {
    background-blend-mode: multiply;
    background-color: rgba(0, 255, 255, 0.1);
    animation: bgFloat1 20s linear infinite;
}

.bg-2 {
    background-blend-mode: screen;
    background-color: rgba(255, 0, 255, 0.05);
    animation: bgFloat2 25s linear infinite reverse;
}

.bg-3 {
    background-blend-mode: overlay;
    background-color: rgba(0, 255, 0, 0.03);
    animation: bgFloat3 30s linear infinite;
}

@keyframes parallaxFloat1 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1.1);
    }
    25% {
        transform: translateX(-10px) translateY(-5px) scale(1.12);
    }
    50% {
        transform: translateX(0) translateY(-10px) scale(1.08);
    }
    75% {
        transform: translateX(10px) translateY(-5px) scale(1.11);
    }
}

@keyframes parallaxFloat2 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1.05);
    }
    33% {
        transform: translateX(15px) translateY(5px) scale(1.03);
    }
    66% {
        transform: translateX(-5px) translateY(-8px) scale(1.07);
    }
}

@keyframes parallaxFloat3 {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1.02);
    }
    50% {
        transform: translateX(-8px) translateY(10px) scale(1.04);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-40px) translateX(-5px) scale(0.8);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) translateX(-10px) scale(1.1);
        opacity: 0.6;
    }
}

@keyframes bgFloat1 {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(-20px) scale(1.02); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes bgFloat2 {
    0% { transform: translateY(0) scale(1.01); }
    50% { transform: translateY(-15px) scale(1); }
    100% { transform: translateY(0) scale(1.01); }
}

@keyframes bgFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.01); }
    66% { transform: translate(-10px, 10px) scale(0.99); }
    100% { transform: translate(0, 0) scale(1); }
}


.pixel-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: var(--pixel-2) var(--pixel-4);
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--pixel-gray);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: navSlideDown 0.8s ease-out;
}

@keyframes navSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pixel-4);
}

@media (min-width: 769px) {
    .nav-wrapper {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 var(--pixel-2) !important;
    }
}

@media (min-width: 1101px) {
    .nav-wrapper {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: var(--pixel-4);
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 var(--pixel-2) !important;
    }
    
    .nav-brand {
        order: 1 !important;
        flex: 0 0 auto !important;
    }
    
    .nav-tabs {
        order: 2 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
    
    .nav-actions {
        order: 3 !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
        position: absolute !important;
        right: 0px !important;
        top: 0 !important;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--pixel-2);
}

.brand-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
}

.brand-border-animation,
.brand-scan-line {
    display: none;
}

.logo-container {
    position: relative;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border: 2px solid #00ffff;
    background: rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.brand-container:hover .logo-glow {
    opacity: 1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        border-color: var(--pixel-gray);
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    50% {
        border-color: var(--pixel-cyan);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
    }
}

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

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.brand-container:hover .logo-image {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.05);
}

.logo-container:hover .logo-image {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.1);
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.brand-text {
    font-size: 14px;
    font-weight: 600;
    color: #00ffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.brand-container:hover .brand-text {
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    letter-spacing: 3px;
}

.brand-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: rgba(0, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
    }
}

.status-text {
    font-weight: 500;
}

/* ПРОФИЛЬ ПОЛЬЗОВАТЕЛЯ В ЛОГОТИПЕ */
.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 17, 34, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    min-width: 250px;
}

.profile-trigger:hover {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 17, 34, 0.95);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.profile-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--pixel-cyan);
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.profile-avatar i {
    font-size: 20px;
}

.profile-trigger:hover .profile-avatar {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--pixel-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(0, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
}

.profile-balance i {
    font-size: 11px;
}

.profile-arrow {
    font-size: 12px;
    color: rgba(0, 255, 255, 0.6);
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.profile-trigger.active .profile-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN ПРОФИЛЯ */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(0, 17, 34, 0.98);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100010 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(0, 255, 255, 0.15);
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(0, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.profile-dropdown-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--pixel-cyan);
    padding-left: 20px;
}

.profile-dropdown-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.profile-dropdown-item.logout-item {
    color: rgba(255, 100, 100, 0.8);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: 4px;
}

.profile-dropdown-item.logout-item:hover {
    background: rgba(255, 50, 50, 0.1);
    color: #ff6666;
}

/* СЕКЦИЯ АВАТАРА В МОДАЛКЕ */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

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

.avatar-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--pixel-cyan);
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.avatar-frame:hover {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
    transform: scale(1.05);
}

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

.avatar-frame i {
    font-size: 70px;
}

.avatar-upload-btn,
.avatar-delete-btn {
    padding: 10px 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.4);
    color: var(--pixel-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-upload-btn:hover,
.avatar-delete-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.avatar-delete-btn {
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 100, 100, 0.4);
    color: #ff6666;
}

.avatar-delete-btn:hover {
    background: rgba(255, 50, 50, 0.2);
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.3);
}

.avatar-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
}

.avatar-info p {
    margin: 0;
    font-size: 12px;
    color: rgba(0, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-info i {
    font-size: 14px;
    color: var(--pixel-cyan);
}

.nav-tabs {
    display: flex;
    gap: 0;
    background: transparent;
    padding: 0;
    border: none;
}

.pixel-tab {
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    padding: var(--pixel-unit) var(--pixel-3);
    background: transparent;
    border: none;
    color: var(--pixel-gray-light);
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--pixel-transition);
    position: relative;
    border-radius: 4px;
}

.pixel-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--pixel-white);
}

.pixel-tab.active {
    background: var(--pixel-cyan);
    color: var(--pixel-black);
    box-shadow: var(--subtle-glow);
}

.pixel-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--pixel-black);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--pixel-2);
}

@media (min-width: 1024px) {
    .pixel-nav .nav-wrapper .nav-actions {
        position: fixed !important;
        right: var(--pixel-2) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1000 !important;
    }
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin-right: 8px;
}

.btn-icon i {
    font-size: 16px;
    line-height: 1;
}

.btn-label {
    white-space: nowrap;
}

.pixel-tab, .pixel-btn {
    padding: 8px 14px;
}

@media (max-width: 1100px) {
    .brand-container {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .brand-info {
        padding: 8px 12px;
        min-width: auto;
    }
    
    .brand-info .brand-status {
        display: none;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }
    
    .brand-scan-line {
        display: none;
    }
    .nav-tabs { gap: 6px; }
    .pixel-tab .btn-label { 
        display: inline-block !important;
        font-size: 16px;
        margin-left: 8px;
        font-weight: bold;
    }
    .pixel-tab {
        padding: 12px 16px;
        min-width: auto;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .nav-actions { gap: 6px; }
    .user-panel .btn-label { display: none; }
    .desktop-auth .btn-label { display: none; }
    .pixel-btn, .pixel-tab { padding: 8px 10px; }
}

@media (max-width: 640px) {
    .pixel-tab .tab-icon { display: inline-block; }
    .pixel-tab { min-width: auto; }
    .pixel-tab .btn-label { 
        display: inline-block !important;
        font-size: 13px !important;
        margin-left: 5px;
        font-weight: bold;
    }
    
    .pixel-tab {
        padding: 10px 14px;
    }
}

@media (min-width: 769px) {
    .nav-brand {
        display: flex !important;
        align-items: center !important;
        gap: var(--pixel-2) !important;
        justify-content: flex-start !important;
        order: 1 !important;
    }
    
    .nav-wrapper {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 var(--pixel-2) !important;
    }
    
    .nav-tabs {
        order: 2 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
    }
    
    .nav-actions {
        order: 3 !important;
        margin-left: auto !important;
        position: absolute !important;
        right: 0px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .user-panel .pixel-btn:not(.logout) {
        width: auto !important;
        height: auto !important;
        min-width: 140px !important;
        min-height: 44px !important;
        padding: 12px 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-width: 2px !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }
    
    .user-panel .pixel-btn:not(.logout) .btn-label { 
        display: inline-block !important; 
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-left: 0 !important;
    }
    
    .user-panel .pixel-btn:not(.logout) .btn-icon { 
        margin: 0 !important; 
        font-size: 18px !important; 
        margin-right: 6px !important;
    }
    
    .user-panel .pixel-btn:not(.logout):hover {
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            0 0 15px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }
}

.pixel-balance,
.pixel-user {
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    padding: var(--pixel-unit) var(--pixel-2);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--pixel-gray);
    color: var(--pixel-white);
    font-size: 14px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: var(--pixel-transition);
    border-radius: 4px;
}

.pixel-balance:hover,
.pixel-user:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
}

.pixel-btn {
    padding: var(--pixel-unit) var(--pixel-3);
    background: transparent;
    border: 2px solid var(--pixel-gray);
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    text-transform: uppercase;
    border-radius: 0;
    letter-spacing: 0.5px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.pixel-btn.primary {
    background: rgba(0, 255, 255, 0.95);
    border-color: var(--pixel-cyan);
    color: var(--pixel-black);
    font-weight: 600;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.pixel-btn.outline {
    background: rgba(0, 17, 34, 0.6);
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 255, 255, 0.2);
}

.pixel-btn.logout {
    border-color: var(--pixel-red);
    color: var(--pixel-red);
    padding: var(--pixel-unit) var(--pixel-2);
}

@media (max-width: 768px) {
    .pixel-btn.logout {
        padding: 8px 10px !important;
        min-width: auto !important;
        width: auto !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        min-height: 50px !important;
    }
    
    .pixel-user .pixel-btn.logout {
        background: var(--pixel-red) !important;
        border-color: var(--pixel-red) !important;
        color: white !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }
    
    .pixel-user {
        position: relative !important;
        overflow: hidden !important;
    }
}

.pixel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.pixel-btn.primary:hover {
    background: #00ffff;
    box-shadow: 
        0 6px 20px rgba(0, 255, 255, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 25px rgba(0, 255, 255, 0.3);
}

/* Auth forms - minimalist style */
.pixel-form .pixel-btn.primary {
    background: rgba(0, 255, 255, 0.12);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.95);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pixel-form .pixel-btn.primary:hover {
    background: rgba(0, 255, 255, 0.18);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
    transform: translateY(-1px);
}

.pixel-btn.outline:hover {
    background: rgba(0, 17, 34, 0.9);
    border-color: #00ffff;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(0, 255, 255, 0.4),
        0 0 20px rgba(0, 255, 255, 0.2);
}

.pixel-btn.roll-btn {
    background: linear-gradient(135deg, #BFFF00, #00FF88);
    border: 2px solid #00FF88;
    color: #000000;
    font-weight: 700;
    margin: 0 8px;
    text-shadow: none;
    box-shadow: 
        0 4px 12px rgba(0, 255, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pixel-btn.roll-btn:hover {
    background: linear-gradient(135deg, #D4FF1A, #00FFAA);
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.7),
        0 0 40px rgba(191, 255, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: #00FFAA;
}

.pixel-btn.roll-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: var(--accent-gradient);
    color: var(--pixel-black);
}

.btn-success:hover {
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.6);
}

.btn-danger {
    background: var(--pixel-red);
    color: var(--pixel-white);
}

.btn-danger:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--pixel-gray);
    color: var(--pixel-white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--pixel-cyan);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--pixel-cyan);
    animation: spin 1s ease-in-out infinite;
}

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

.pixel-btn.full {
    width: 100%;
}

.pixel-cart {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--pixel-cyan);
    color: var(--pixel-cyan);
    padding: var(--pixel-unit);
    cursor: pointer;
    transition: all var(--pixel-transition);
}

.pixel-cart:hover {
    background: var(--pixel-cyan);
    color: var(--pixel-black);
    box-shadow: 0 0 10px var(--pixel-cyan);
}

.cart-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pixel-magenta);
    color: var(--pixel-white);
    font-size: 12px;
    padding: 2px 4px;
    min-width: 12px;
    text-align: center;
    box-shadow: 0 0 5px var(--pixel-magenta);
}


.pixel-main {
    padding-top: 120px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.pixel-section {
    padding: var(--pixel-4) 0;
}

.section-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--pixel-6);
}

.pixel-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: var(--pixel-4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}


.no-products .pixel-title {
    display: none;
}

.title-line {
    display: block;
    color: var(--pixel-white);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.title-line.accent {
    color: var(--pixel-cyan);
    text-shadow: 0 0 15px var(--pixel-cyan);
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 
            2px 2px 0 var(--pixel-black),
            0 0 20px var(--pixel-cyan);
    }
    50% { 
        text-shadow: 
            2px 2px 0 var(--pixel-black),
            0 0 30px var(--pixel-cyan),
            0 0 40px var(--pixel-magenta);
    }
}
/* Секция фильтров и поиска */
.filters-section {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 17, 34, 0.75);
    border: 2px solid rgba(0, 255, 255, 0.35);
    border-radius: 8px;
    color: var(--pixel-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 0 12px rgba(0, 255, 255, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 255, 255, 0.15);
    height: 48px;
    display: flex;
    align-items: center;
}

.search-input:focus {
    outline: none;
    border-color: var(--pixel-cyan);
    background: rgba(0, 17, 34, 0.85);
    box-shadow: 
        0 0 24px rgba(0, 255, 255, 0.3),
        0 2px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 255, 255, 0.25);
}

.search-input::placeholder {
    color: rgba(0, 255, 255, 0.5);
    font-weight: 500;
}

.price-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 17, 34, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 255, 255, 0.1);
    height: 48px;
}

.filter-label {
    color: var(--pixel-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.9;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 80px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.25);
    border-radius: 6px;
    color: var(--pixel-white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--pixel-cyan);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.2),
        inset 0 1px 2px rgba(0, 255, 255, 0.15);
}

.price-input::placeholder {
    color: rgba(0, 255, 255, 0.35);
}

.price-separator {
    color: var(--pixel-cyan);
    font-size: 14px;
    opacity: 0.6;
}

.clear-filters-btn {
    background: rgba(255, 50, 100, 0.15);
    border: 2px solid rgba(255, 50, 100, 0.4);
    border-radius: 6px;
    color: rgba(255, 100, 150, 1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 50, 100, 0.1);
}

.clear-filters-btn:hover {
    background: rgba(255, 50, 100, 0.25);
    border-color: rgba(255, 50, 100, 0.7);
    color: rgb(255, 120, 170);
    box-shadow: 
        0 0 15px rgba(255, 50, 100, 0.3),
        0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Новый дизайн категорий */
.categories-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--pixel-4);
    gap: var(--pixel-3);
    flex-wrap: wrap;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.categories-dropdown {
    position: relative;
    min-width: 240px;
}

.category-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 17, 34, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--pixel-white);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 255, 255, 0.1);
}

.category-selector:hover {
    border-color: var(--pixel-cyan);
    background: rgba(0, 17, 34, 0.85);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.25),
        0 2px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 255, 255, 0.2);
}

.category-icon {
    font-size: 18px;
}

.category-label {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--pixel-cyan);
}

.category-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

.category-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(0, 17, 34, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 255, 255, 0.15),
        inset 0 1px 2px rgba(0, 255, 255, 0.1);
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.category-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--pixel-gray-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.category-option:last-child {
    border-bottom: none;
}

.category-option:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--pixel-cyan);
}

.category-option.active {
    background: rgba(0, 255, 255, 0.15);
    color: var(--pixel-cyan);
}

.option-icon {
    font-size: 16px;
}

.category-count {
    margin-left: auto;
    background: rgba(0, 255, 255, 0.15);
    color: var(--pixel-cyan);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.products-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 17, 34, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--pixel-gray-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 255, 255, 0.1);
}

.count-number {
    color: var(--pixel-cyan);
    font-weight: 600;
    font-size: 18px;
}

/* Кнопка обновления */
.refresh-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(0, 17, 34, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.25);
    border-radius: 8px;
    color: var(--pixel-cyan);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(0, 255, 255, 0.1);
}

.refresh-btn:hover:not(:disabled) {
    border-color: var(--pixel-cyan);
    background: rgba(0, 17, 34, 0.85);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 2px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.refresh-btn:active:not(:disabled) .refresh-icon {
    animation: spin 0.6s linear;
}

.refresh-btn.refreshing .refresh-icon {
    animation: spin 1s linear infinite;
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(0, 255, 255, 0.2);
}

.refresh-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.refresh-cooldown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--pixel-cyan);
    background: rgba(0, 0, 0, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.refresh-btn:disabled .refresh-cooldown {
    opacity: 1;
}

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

/* Адаптивность фильтров и категорий */

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
    .filters-section {
        gap: 14px;
    }
    
    .search-input,
    .category-selector,
    .products-count {
        font-size: 13px;
    }
}

/* Планшеты портретная ориентация */
@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .search-box {
        min-width: unset;
        width: 100%;
        order: 1;
    }
    
    .price-filter {
        width: 100%;
        justify-content: space-between;
        order: 2;
        padding: 10px 16px;
    }
    
    .categories-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        order: 3;
    }
    
    .categories-dropdown {
        width: 100%;
        min-width: unset;
    }
    
    .right-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .products-count {
        flex: 1;
    }
    
    .search-input {
        height: 46px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .category-selector {
        padding: 11px 18px;
        font-size: 14px;
    }
    
    .refresh-btn {
        width: 46px;
        height: 46px;
        flex-shrink: 0;
    }
}

/* Большие телефоны (landscape) */
@media (max-width: 640px) {
    .filters-section {
        gap: 10px;
    }
    
    .search-input {
        height: 44px;
        padding: 11px 16px;
        font-size: 13px;
    }
    
    .price-filter {
        padding: 9px 14px;
        gap: 10px;
    }
    
    .price-input {
        width: 75px;
        padding: 8px 12px;
        font-size: 13px;
        height: 38px;
    }
    
    .filter-label {
        font-size: 12px;
    }
    
    .clear-filters-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .category-selector,
    .products-count {
        padding: 10px 16px;
        font-size: 13px;
        height: 44px;
    }
    
    .refresh-btn {
        width: 44px;
        height: 44px;
    }
    
    .refresh-icon {
        width: 19px;
        height: 19px;
    }
}

/* Стандартные телефоны */
@media (max-width: 480px) {
    .filters-section {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    /* Скрываем кнопку обновления и счетчик на мобильных */
    .refresh-btn {
        display: none !important;
    }
    
    .products-count {
        display: none !important;
    }
    
    .right-controls {
        display: none !important;
    }
    
    .search-input {
        height: 48px;
        padding: 12px 16px;
        font-size: 14px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    .price-filter {
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .price-input {
        width: 65px;
        padding: 8px 10px;
        font-size: 13px;
        height: 36px;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 6px;
    }
    
    .filter-label {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .price-separator {
        font-size: 13px;
    }
    
    .clear-filters-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .categories-dropdown {
        width: 100%;
    }
    
    .category-selector {
        padding: 12px 16px;
        font-size: 14px;
        height: 48px;
        width: 100%;
    }
    
    .category-icon {
        font-size: 16px;
    }
    
    .dropdown-arrow {
        font-size: 9px;
    }
    
    .category-option {
        padding: 14px 16px;
        font-size: 13px;
        min-height: 48px;
    }
    
    .option-icon {
        font-size: 15px;
    }
    
    .category-count {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .products-count {
        padding: 12px 16px;
        font-size: 13px;
        height: 48px;
    }
    
    .count-number {
        font-size: 16px;
    }
    
    .refresh-btn {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .refresh-icon {
        width: 20px;
        height: 20px;
    }
    
    .refresh-cooldown {
        font-size: 10px;
    }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
    .filters-section {
        gap: 8px;
    }
    
    .search-input {
        padding: 10px 14px;
        font-size: 13px;
        height: 44px;
    }
    
    .price-filter {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .price-input {
        width: 58px;
        padding: 7px 8px;
        font-size: 12px;
        height: 34px;
    }
    
    .filter-label {
        font-size: 11px;
    }
    
    .clear-filters-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    .category-selector,
    .products-count {
        padding: 10px 14px;
        font-size: 13px;
        height: 44px;
    }
    
    .refresh-btn {
        width: 44px;
        height: 44px;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 320px) {
    .filters-section {
        gap: 6px;
    }
    
    .search-input {
        padding: 9px 12px;
        font-size: 12px;
        height: 42px;
    }
    
    .price-filter {
        padding: 6px 8px;
        gap: 5px;
    }
    
    .price-input {
        width: 52px;
        padding: 6px 7px;
        font-size: 11px;
        height: 32px;
    }
    
    .filter-label {
        font-size: 10px;
    }
    
    .clear-filters-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .category-selector,
    .products-count {
        padding: 9px 12px;
        font-size: 12px;
        height: 42px;
    }
    
    .category-option {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    .refresh-btn {
        width: 42px;
        height: 42px;
    }
    
    .refresh-icon {
        width: 18px;
        height: 18px;
    }
}

.search-container {
    position: relative;
    margin-bottom: var(--pixel-4);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pixel-cyan);
    font-size: 12px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--pixel-gray);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.search-result-item {
    padding: var(--pixel-2);
    border-bottom: 1px solid var(--pixel-dark-gray);
    cursor: pointer;
    transition: var(--pixel-transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.search-no-results {
    padding: var(--pixel-3);
    text-align: center;
    color: var(--pixel-gray);
    font-size: 14px;
}


.accounts-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: var(--pixel-4);
    padding: 0;
    position: relative;
    justify-content: stretch;
    width: 100%;
}

@media (max-width: 479px) {
    .accounts-matrix {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (min-width: 480px) {
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
}

@media (min-width: 768px) {
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1440px) {
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1920px) {
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 12px;
        max-width: 100%;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .shop-layout {
        padding-right: 360px; 
    }
}

.accounts-matrix::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: 
        linear-gradient(90deg, transparent 98%, var(--pixel-cyan) 100%),
        linear-gradient(0deg, transparent 98%, var(--pixel-cyan) 100%);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: gridScan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridScan {
    0%, 100% { 
        opacity: 0.1;
        transform: translateX(0) translateY(0);
    }
    50% { 
        opacity: 0.3;
        transform: translateX(-2px) translateY(-2px);
    }
}

.no-products-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    grid-column: 1 / -1;
    min-height: calc(100vh - 200px);
    padding: clamp(40px, 8vh, 80px) clamp(20px, 5vw, 40px);
    animation: slideInUp 0.6s ease-out;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
}

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



@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
        box-shadow:
            0 8px 32px rgba(0, 255, 255, 0.3),
            0 0 0 2px rgba(0, 255, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    25% {
        transform: translateY(-3px) rotateY(2deg);
        box-shadow:
            0 12px 40px rgba(0, 255, 255, 0.4),
            0 0 0 3px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        transform: translateY(-6px) rotateY(-1deg);
        box-shadow:
            0 16px 48px rgba(0, 255, 255, 0.5),
            0 0 0 4px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    75% {
        transform: translateY(-3px) rotateY(1deg);
        box-shadow:
            0 12px 40px rgba(0, 255, 255, 0.4),
            0 0 0 3px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}



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

.no-products-icon {
    font-size: clamp(48px, 10vw, 90px);
    margin-bottom: clamp(15px, 3vh, 30px);
    opacity: 1;
    color: var(--pixel-cyan);
    text-shadow: 
        0 0 20px var(--pixel-cyan),
        0 0 40px var(--pixel-cyan),
        0 0 60px var(--pixel-cyan),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 30px var(--pixel-cyan));
    animation: gentleFloat 3s ease-in-out infinite, iconGlow 2s ease-in-out infinite alternate;
    line-height: 1;
    display: block;
    width: 100%;
}


.no-products-text {
    font-family: var(--pixel-font);
    font-size: clamp(16px, 4vw, 28px);
    font-weight: bold;
    color: var(--pixel-white);
    text-shadow: 
        0 0 10px var(--pixel-cyan),
        0 0 20px var(--pixel-cyan),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    margin-bottom: clamp(10px, 2vh, 20px);
    letter-spacing: clamp(0.5px, 0.3vw, 2px);
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90vw;
    line-height: 1.4;
    hyphens: auto;
}

.no-products-subtext {
    font-family: var(--pixel-font);
    font-size: clamp(12px, 3vw, 18px);
    color: var(--pixel-white);
    text-shadow: 
        0 0 10px var(--pixel-cyan),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    opacity: 1;
    max-width: min(500px, 85vw);
    line-height: 1.6;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin: 0 auto;
}

@keyframes iconGlow {
    0% {
        text-shadow: 
            0 0 20px var(--pixel-cyan),
            0 0 40px var(--pixel-cyan),
            0 0 60px var(--pixel-cyan),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 0 30px var(--pixel-cyan));
    }
    100% {
        text-shadow: 
            0 0 30px var(--pixel-cyan),
            0 0 60px var(--pixel-cyan),
            0 0 80px var(--pixel-cyan),
            2px 2px 4px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 0 50px var(--pixel-cyan));
    }
}

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

.no-products-text {
    color: var(--pixel-white);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: var(--pixel-2);
    text-shadow: 0 0 10px var(--pixel-cyan);
}

.no-products-subtext {
    color: var(--pixel-gray);
    font-size: 14px;
    opacity: 0.8;
}

.account-card {
    position: relative;
    z-index: 2;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    width: 100%;
    background: rgba(10, 15, 25, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: cardAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 255, 255, 0.15);
}

@keyframes cardHover {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.6),
            0 15px 50px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 
            0 0 25px rgba(0, 255, 255, 0.5),
            0 12px 40px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

.account-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.account-card.selected {
    border-color: var(--pixel-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.account-card.out-of-stock .btn-add-cart {
    background: var(--pixel-gray);
    color: var(--pixel-dark-gray);
    cursor: not-allowed;
}

.account-card.out-of-stock-card {
    opacity: 0.7;
    filter: grayscale(50%);
    border-color: #ff4757;
}

.account-card.out-of-stock-card:hover {
    opacity: 0.9;
    filter: grayscale(30%);
    transform: translateY(-2px) scale(1.01);
}

.out-of-stock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 10;
    border: 1.5px solid #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    animation: outOfStockPulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

.account-card.new::after {
    content: 'NEW';
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-gradient);
    color: var(--pixel-black);
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

.account-card.featured {
    border: 2px solid var(--pixel-yellow);
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.4);
}

.account-card.featured::before {
    content: '⭐';
    position: absolute;
    top: 8px;
    right: 40px;
    font-size: 12px;
    z-index: 10;
    text-shadow: 0 0 8px var(--pixel-yellow);
}

.card-image-container {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.account-card:hover .card-image {
    transform: scale(1.05);
    filter: brightness(1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
    padding: 10px 12px;
    transition: all var(--pixel-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 55px;
}

.card-title {
    color: var(--pixel-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.3;
}

.card-stock {
    color: var(--pixel-cyan);
    font-size: 11px;
    font-weight: 400;
    transition: var(--pixel-transition);
    letter-spacing: 0.2px;
    font-family: 'JetBrains Mono', monospace;
}

.card-stock.out-of-stock {
    color: #ff4757;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    animation: outOfStockBlink 2s ease-in-out infinite;
}

@keyframes outOfStockBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 15px rgba(255, 71, 87, 0.9);
    }
}

.card-price {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--pixel-cyan);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1.5px solid var(--pixel-cyan);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.7);
    z-index: 3;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.2px;
}

@keyframes priceGlow {
    0% { box-shadow: 0 4px 15px rgba(255, 255, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 6px 25px rgba(255, 255, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

.card-info {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--pixel-transition);
}

.card-hover-details {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--pixel-transition);
    max-height: 0;
    overflow: hidden;
}

.account-card:hover .card-info {
    opacity: 0.8;
    transform: translateY(-10px);
}

.account-card:hover .card-hover-details {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

/* На мобильных устройствах кнопка всегда видна */
@media (max-width: 768px) {
    .card-hover-details {
        opacity: 1 !important;
        transform: translateY(0) !important;
        max-height: 150px !important;
        overflow: visible !important;
    }
    
    .account-card .card-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .account-card .card-overlay {
        min-height: 120px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7)) !important;
    }
    
    .account-card {
        height: auto !important;
        min-height: 300px !important;
        max-height: none !important;
    }
    
    .btn-add-cart.compact {
        font-size: 13px;
        padding: 14px 18px;
        margin-top: 12px;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.15));
        border: 2px solid rgba(0, 255, 255, 0.6);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
        font-weight: 700;
        letter-spacing: 1px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
    }
    
    .btn-add-cart.compact:active {
        transform: scale(0.96);
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 255, 255, 0.2));
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

@media (max-width: 480px) {
    .account-card {
        min-height: 340px !important;
    }
    
    .btn-add-cart.compact {
        font-size: 12px;
        padding: 12px 16px;
    }
}

/* Touch-friendly для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
    /* Убираем hover эффекты на touch-устройствах */
    .account-card:hover {
        transform: translateY(0) !important;
    }
    
    .account-card:hover .card-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Кнопка всегда видна и готова к нажатию */
    .card-hover-details {
        opacity: 1 !important;
        transform: translateY(0) !important;
        max-height: 150px !important;
    }
    
    .btn-add-cart.compact {
        min-height: 48px;
        cursor: pointer;
    }
}

.account-card:hover .card-overlay {
    min-height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.8));
}

.card-description {
    color: var(--pixel-gray-light);
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 6px;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 400;
}

.btn-add-cart.compact {
    font-size: 13px;
    padding: 10px 20px;
    width: 100%;
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.1);
    color: var(--pixel-cyan);
    border: 1px solid rgba(0, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-add-cart.compact:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--pixel-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

@keyframes buttonPulse {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.8),
            0 8px 25px rgba(0, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 1),
            0 12px 35px rgba(0, 255, 255, 0.5);
    }
}

.btn-add-cart.compact:active {
    transform: translateY(0);
}

.btn-add-cart.compact:disabled {
    background: var(--pixel-gray);
    color: var(--pixel-dark-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



.account-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--pixel-2);
}

.account-title {
    font-size: 12px;
    color: var(--pixel-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    text-shadow: 0 0 8px var(--pixel-cyan);
    line-height: 1.2;
    margin-bottom: var(--pixel-1);
}

.account-badge {
    background: var(--pixel-magenta);
    color: var(--pixel-white);
    padding: 2px var(--pixel-unit);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 5px var(--pixel-magenta);
}

.account-preview {
    width: 100%;
    height: 120px;
    background: var(--pixel-dark-gray);
    border-radius: 8px;
    margin-bottom: var(--pixel-2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.account-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.account-card:hover .account-image {
    transform: scale(1.05);
}

.account-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.3);
    transition: all var(--pixel-transition);
}

.account-preview:hover img {
    filter: brightness(0.9) contrast(1.5);
    transform: scale(1.05);
}

.account-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: var(--pixel-unit);
    transform: translateY(100%);
    transition: transform var(--pixel-transition);
}

.account-preview:hover .account-overlay {
    transform: translateY(0);
}

.account-stats-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--pixel-1);
    margin-bottom: var(--pixel-2);
    padding: var(--pixel-1);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--pixel-unit);
}

.stat-label {
    font-size: 14px;
    color: var(--pixel-gray);
    text-transform: uppercase;
}

.stat-value {
    color: var(--pixel-green);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 8px var(--pixel-green);
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 2px;
}

.account-price {
    font-size: 20px;
    color: var(--pixel-yellow);
    text-align: center;
    margin-bottom: var(--pixel-3);
    text-shadow: 0 0 10px var(--pixel-yellow);
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: var(--pixel-2);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 0, 0.3);
}

.account-actions {
    text-align: center;
}

.btn-add-cart {
    background: linear-gradient(45deg, var(--pixel-green), #00CC88);
    color: var(--pixel-black);
    border: none;
    padding: 8px 12px;
    font-family: var(--pixel-font);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    width: 100%;
    border-radius: 6px;
    box-shadow: 
        0 4px 15px rgba(0, 255, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: bold;
    position: relative;
    overflow: hidden;
}
.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-add-cart:hover::before {
    left: 100%;
}

.btn-add-cart:hover {
    background: linear-gradient(45deg, var(--pixel-cyan), #00AAFF);
    box-shadow: 
        0 12px 35px rgba(0, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.btn-add-cart:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.3);
}


.support-matrix {
    max-width: 800px;
    margin: 0 auto;
}

.terms-matrix {
    max-width: 700px;
    margin: 0 auto;
}

.support-terminal, .terms-terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--pixel-gray);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pixel-unit) var(--pixel-2);
    background: var(--pixel-cyan);
    color: var(--pixel-black);
}

.terminal-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.terminal-controls {
    display: flex;
    gap: var(--pixel-unit);
}

.control-btn {
    font-size: 14px;
    cursor: pointer;
    transition: all var(--pixel-transition);
}

.control-btn:hover {
    color: var(--pixel-red);
}

.terminal-body {
    padding: var(--pixel-2);
    font-size: 14px;
    line-height: 1.5;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    margin-bottom: var(--pixel-unit);
    color: var(--pixel-white);
}

.contact-icon {
    color: var(--pixel-cyan);
    width: 12px;
}

.contact-label {
    color: var(--pixel-gray);
    width: 80px;
}

.contact-value {
    color: var(--pixel-white);
}

.contact-value.link {
    color: var(--pixel-cyan);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-value.link:hover {
    color: white;
    text-shadow: 0 0 8px var(--pixel-cyan);
    transform: translateX(2px);
}

.status-online {
    color: var(--pixel-green);
    text-shadow: 0 0 5px var(--pixel-green);
    animation: statusBlink 2s ease-in-out infinite;
}


.terms-section {
    margin-bottom: var(--pixel-3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding-bottom: var(--pixel-2);
}

.terms-title {
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    margin-bottom: var(--pixel-2);
}

.terms-title.collapsible {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.terms-title.collapsible:hover {
    color: var(--pixel-cyan);
    text-shadow: 0 0 5px var(--pixel-cyan);
}

.terms-title.collapsible.expanded {
    color: var(--pixel-green);
    text-shadow: 0 0 5px var(--pixel-green);
}

.terms-icon {
    color: var(--pixel-cyan);
    font-size: 14px;
}

.section-title {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.terms-content {
    margin-left: 16px;
    padding-left: var(--pixel-2);
    border-left: 2px solid var(--pixel-cyan);
}

.terms-content p {
    color: var(--pixel-gray);
    font-size: 9px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}


.privacy-policy-section {
    border-top: 2px solid var(--pixel-cyan);
    padding-top: var(--pixel-3);
}

.privacy-header {
    text-align: center;
    margin-bottom: var(--pixel-3);
}

.privacy-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--pixel-2);
    color: var(--pixel-cyan);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--pixel-cyan);
    margin: 0;
}

.title-icon {
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

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

.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.collapsible-header:hover {
    text-shadow: 0 0 15px var(--pixel-cyan);
}

.collapse-arrow {
    font-size: 14px;
    color: var(--pixel-cyan);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px var(--pixel-cyan);
}

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

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

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


.shop-layout {
    display: flex;
    gap: var(--pixel-4);
    margin-top: var(--pixel-2);
    padding: 0 var(--pixel-4) 0 var(--pixel-2);
    width: 100%;
    min-height: calc(100vh - 120px);
    align-items: stretch;
    padding-right: 440px; 
}

.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.cart-section {
    width: 28%;
    min-width: 320px;
    max-width: 420px;
    flex-shrink: 0;
    padding-left: var(--pixel-2);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: stretch;
}


.cart-panel {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    margin-top: 80px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--pixel-gray);
    border-left: 2px solid var(--pixel-cyan);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
}



.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pixel-2) var(--pixel-3);
    background: rgba(0, 0, 0, 0.98);
    color: var(--pixel-white);
    border-bottom: 1px solid var(--pixel-gray);
    flex-shrink: 0;
}

.panel-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
}

.panel-title i {
    font-size: 16px;
    line-height: 1;
}

.cart-counter {
    background: var(--primary-gradient);
    color: var(--pixel-black);
    font-size: 14px;
    font-weight: 500;
    padding: var(--pixel-unit) var(--pixel-2);
    min-width: 24px;
    text-align: center;
    border-radius: 12px;
}

.panel-close {
    background: none;
    border: none;
    color: var(--pixel-black);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--pixel-transition);
}

.panel-close:hover {
    color: var(--pixel-red);
    transform: scale(1.2);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--pixel-2);
    scrollbar-width: thin;
    scrollbar-color: var(--pixel-gray) rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 200px);
}

.panel-body::-webkit-scrollbar {
    width: 4px;
}

.panel-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--pixel-gray);
    border-radius: 2px;
}

.empty-cart {
    text-align: center;
    padding: var(--pixel-8);
    color: var(--pixel-gray-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-cart-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--pixel-3);
}

/* Старый стиль переопределён в конце файла пиксельной иконкой */

.empty-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--pixel-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-subtext {
    font-size: 14px;
    color: var(--pixel-gray-light);
    font-weight: 400;
}

/* ============================================
   УЛУЧШЕННЫЙ ДИЗАЙН ТОВАРОВ В КОРЗИНЕ (PC)
   ============================================ */

.cart-item {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 60, 0.95));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    font-size: 9px;
    transition: all 0.3s ease;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Светящаяся анимированная рамка */
.cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: cartItemScan 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cartItemScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cart-item:hover {
    background: linear-gradient(135deg, rgba(0, 30, 50, 0.98), rgba(0, 50, 70, 0.98));
    border-color: var(--pixel-cyan);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cart-item.selected {
    border-color: #00ffff;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.08));
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 255, 255, 0.5),
        inset 0 0 15px rgba(0, 255, 255, 0.1);
}



.cart-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.cart-item-name {
    flex: 1;
    font-weight: 700;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: var(--pixel-font);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    line-height: 1.4;
}

.cart-item-remove {
    background: linear-gradient(135deg, #ff6666, #ff3333);
    color: #fff;
    border: 2px solid #ff6666;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 102, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.cart-item-remove::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.cart-item-remove:hover::before {
    width: 100px;
    height: 100px;
}

.cart-item-remove:hover {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    border-color: #ff3333;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 25px rgba(255, 102, 102, 0.6);
}

.cart-item-remove:active {
    transform: scale(0.95) rotate(90deg);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.cart-item-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.cart-item-price {
    color: #ffa500;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.5px;
    font-family: var(--pixel-font);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 140, 0, 0.1));
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid rgba(255, 165, 0, 0.4);
    flex-shrink: 0;
    min-width: fit-content;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 200, 200, 0.1));
    border-radius: 8px;
    padding: 6px 10px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.cart-item-quantity:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 200, 200, 0.15));
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.quantity-btn {
    background: linear-gradient(135deg, #00ffff, #00cccc);
    color: #000;
    border: 2px solid #00ffff;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.quantity-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.quantity-btn:hover::before {
    width: 80px;
    height: 80px;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #00cccc, #009999);
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.quantity-btn:active {
    transform: scale(0.9);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.quantity-value {
    color: #fff;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-family: var(--pixel-font);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.quantity-input {
    color: #fff;
    background: rgba(0, 255, 255, 0.15);
    border: 2px solid var(--pixel-cyan);
    font-weight: 700;
    min-width: 45px;
    max-width: 55px;
    text-align: center;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    font-family: var(--pixel-font);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.quantity-input:focus {
    outline: none;
    background: rgba(0, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    border-color: #fff;
    transform: scale(1.05);
}

.quantity-input:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.cart-item-total {
    color: #00ff00;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--pixel-font);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(0, 200, 0, 0.1));
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.cart-item-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--pixel-cyan);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cart-item-checkbox:checked {
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
}

.panel-footer {
    padding: var(--pixel-2);
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid var(--pixel-gray);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--pixel-2);
    font-size: 9px;
    color: var(--pixel-cyan);
    font-weight: 500;
    background: rgba(0, 255, 255, 0.1);
    padding: var(--pixel-unit) var(--pixel-2);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.cart-total-label {
    color: var(--pixel-white);
}

.cart-total-value {
    color: var(--pixel-yellow);
    font-size: 12px;
    font-weight: 500;
}

.cart-controls {
    display: flex;
    flex-direction: row;
    gap: var(--pixel-2);
    justify-content: space-between;
}

.aqua-pulse {
    animation: aquaPulse 2s ease-in-out infinite;
}

.bounce-in {
    animation: bounceInAnimation 0.6s ease-out;
}

.heartbeat {
    animation: heartbeatAnimation 1.5s ease-in-out infinite;
}

.shake {
    animation: shakeAnimation 0.5s ease-in-out;
}

.glow-pulse {
    animation: glowPulseAnimation 2s ease-in-out infinite;
}

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

@keyframes bounceInAnimation {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes heartbeatAnimation {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.05);
    }
    75% {
        transform: scale(1.1);
    }
}

@keyframes shakeAnimation {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes glowPulseAnimation {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pixel-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease-out, visibility 0.15s;
}

/* Special alignment for ticket modal - center in area below header */
.modal-overlay#ticketModal {
    align-items: center;
    padding-top: 80px;
    padding-bottom: 20px;
}

/* Ensure ticket modal stays below header on all screen sizes */
@media (max-width: 768px) {
    .modal-overlay#ticketModal {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .pixel-btn-small {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
    }
    
    .message-form,
    .modern-message-form {
        padding: 15px;
    }
    
    .message-form .pixel-textarea,
    .modern-message-form .pixel-textarea {
        min-height: 60px;
        font-size: 13px;
    }
    
    .message-form .pixel-btn,
    .modern-message-form .pixel-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.modal-overlay#cartModal {
    background: rgba(0, 0, 0, 0.95);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pixel-modal {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--pixel-gray);
    width: 100%;
    max-width: 500px;
    min-width: 320px; 
    max-height: 90vh;
    transform: translateZ(0);
    will-change: auto;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop Cart Modal - нормальный размер по центру */
.pixel-modal.cart-modal {
    max-width: 480px;
    width: 90%;
    max-height: 85vh;
    min-width: 320px;
}

/* Центрируем десктопную корзину */
.modal-overlay.desktop-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

/* Убираем конфликтующие стили для десктопной корзины */
@media (min-width: 769px) {
    .modal-overlay.desktop-cart {
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
    }
    
    .modal-overlay.desktop-cart .pixel-modal.cart-modal {
        position: relative;
        margin: 0;
    }
}

/* На больших экранах можно сделать корзину побольше */
@media (min-width: 1024px) {
    .pixel-modal.cart-modal {
        max-width: 550px;
    }
}

@media (min-width: 1440px) {
    .pixel-modal.cart-modal {
        max-width: 600px;
    }
}

@media (min-width: 1920px) {
    .pixel-modal.cart-modal {
        max-width: 650px;
    }
}

.pixel-modal.large {
    max-width: 800px;
    max-height: 85vh;
}

@keyframes modalGlitch {
    0% {
        opacity: 0;
        transform: scale(0.8) translate(-10px, 10px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translate(5px, -5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
}



.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--pixel-2);
    background: rgba(0, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 255, 255, 0.15);
    color: var(--pixel-white);
}

.modal-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(0, 255, 255, 0.9);
    letter-spacing: 1.5px;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(0, 17, 34, 0.9);
    border: 2px solid #ff0050;
    color: #ff0050;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 0 10px rgba(255, 0, 80, 0.3),
        inset 0 0 0 1px rgba(255, 0, 80, 0.2);
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #ff0050;
    transition: all 0.3s ease;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-close:hover {
    background: rgba(255, 0, 80, 0.3);
    border-color: #ff0050;
    box-shadow: 
        0 0 25px rgba(255, 0, 80, 0.8),
        inset 0 0 0 1px rgba(255, 0, 80, 0.5),
        2px 2px 0 rgba(255, 0, 80, 0.4),
        -2px -2px 0 rgba(0, 255, 255, 0.3);
    transform: scale(1.15);
    animation: pixelGlitch 0.3s ease-in-out;
}

@keyframes pixelGlitch {
    0%, 100% { 
        transform: scale(1.15) translate(0, 0);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: scale(1.15) translate(-1px, 1px);
        filter: hue-rotate(90deg);
    }
    75% { 
        transform: scale(1.15) translate(1px, -1px);
        filter: hue-rotate(-90deg);
    }
}

.modal-close:hover::before,
.modal-close:hover::after {
    width: 16px;
    background: #ff0050;
    box-shadow: 
        0 0 10px rgba(255, 0, 80, 1),
        1px 1px 0 rgba(0, 255, 255, 0.6);
}

.modal-close:active {
    transform: scale(1.05);
    animation: none;
}

.pixel-form {
    padding: var(--pixel-2);
}
.form-group {
    margin-bottom: var(--pixel-2);
}

.form-label {
    display: block;
    margin-bottom: var(--pixel-unit);
    color: var(--pixel-cyan);
    font-size: 14px;
    text-transform: uppercase;
}

.pixel-input {
    width: 100%;
    padding: var(--pixel-unit);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--pixel-gray);
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    transition: all var(--pixel-transition);
    text-transform: uppercase;
}

.pixel-input:focus {
    outline: none;
    border-color: var(--pixel-cyan);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--pixel-cyan);
}

.pixel-input::placeholder {
    color: var(--pixel-gray);
    text-transform: uppercase;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    margin-bottom: var(--pixel-unit);
}

.captcha-box canvas {
    border: 1px solid var(--pixel-gray);
    background: var(--pixel-white);
    flex: 1;
}

.captcha-refresh {
    background: var(--pixel-gray);
    color: var(--pixel-black);
    border: none;
    padding: var(--pixel-unit);
    cursor: pointer;
    transition: all var(--pixel-transition);
    font-size: 14px;
}

.captcha-refresh:hover {
    background: var(--pixel-cyan);
    transform: rotate(180deg);
}

.modal-footer {
    padding: var(--pixel-2);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-footer a {
    color: rgba(0, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--pixel-transition);
    font-weight: 500;
}

.modal-footer a:hover {
    color: rgba(0, 255, 255, 1);
}


.profile-content {
    padding: var(--pixel-4);
    display: grid;
    gap: var(--pixel-4);
}

.profile-section {
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--pixel-3);
}

.profile-section-title {
    color: var(--pixel-cyan);
    font-size: 14px;
    margin-bottom: var(--pixel-3);
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 10px var(--pixel-cyan);
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--pixel-3);
}

.current-balance {
    display: flex;
    flex-direction: column;
    gap: var(--pixel-unit);
}

.balance-label {
    color: var(--pixel-gray);
    font-size: 12px;
    text-transform: uppercase;
}

.balance-amount {
    color: var(--pixel-yellow);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--pixel-yellow);
}

.referral-info {
    display: grid;
    gap: var(--pixel-3);
}

.referral-link-container {
    display: flex;
    gap: var(--pixel-2);
}

.referral-link-container input {
    flex: 1;
    font-size: 12px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.7);
    color: var(--pixel-white);
}

.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pixel-2);
}

.referral-stats .stat-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: var(--pixel-2);
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.purchase-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pixel-2);
    margin-bottom: var(--pixel-3);
}

.purchase-stats .stat-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: var(--pixel-2);
    text-align: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.purchase-history {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: var(--pixel-2);
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.purchase-history::-webkit-scrollbar {
    display: none; 
}

.empty-history {
    text-align: center;
    color: var(--pixel-gray);
    padding: var(--pixel-4);
    font-style: italic;
}

.purchase-item {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: var(--pixel-2);
    margin-bottom: var(--pixel-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-name {
    color: var(--pixel-white);
    font-weight: bold;
}

.purchase-date {
    color: var(--pixel-gray);
    font-size: 14px;
}

.purchase-amount {
    color: var(--pixel-green);
    font-weight: bold;
}


.payment-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--pixel-2);
    padding: var(--pixel-2);
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--pixel-unit);
    padding: var(--pixel-3);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--pixel-gray);
    cursor: pointer;
    transition: var(--pixel-transition);
    text-align: center;
    border-radius: 8px;
}

.payment-option:hover,
.payment-option.selected {
    background: var(--pixel-cyan);
    color: var(--pixel-black);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 10px var(--pixel-cyan);
}

.payment-icon {
    font-size: 14px;
    color: var(--pixel-cyan);
    transition: all var(--pixel-transition);
}

.payment-option:hover .payment-icon,
.payment-option.selected .payment-icon {
    color: var(--pixel-black);
}

.payment-name {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}

.payment-form {
    padding: var(--pixel-2);
    border-top: 1px solid var(--pixel-gray);
}

.payment-option .payment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.payment-desc {
    font-size: 12px;
    color: var(--pixel-gray);
    text-align: center;
    opacity: 0.8;
}

.payment-info {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--pixel-cyan);
    border-radius: 4px;
}

.payment-info .info-message {
    text-align: center;
    color: var(--pixel-cyan);
    font-size: 12px;
}

.payment-success {
    text-align: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.payment-success .success-title {
    margin: 0 0 10px 0;
    color: var(--pixel-cyan);
    font-size: 12px;
    font-weight: bold;
}

.payment-error {
    text-align: center;
    padding: 15px;
}

.payment-error .error-title {
    margin: 0 0 10px 0;
    color: #FF6666;
    font-size: 12px;
    font-weight: bold;
}

.payment-error p {
    margin: 5px 0;
    color: var(--pixel-gray);
    font-size: 12px;
}

.payment-details {
    margin: 10px 0;
    padding: 8px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 2px;
}

.payment-details p {
    margin: 5px 0;
    color: var(--pixel-cyan);
    font-size: 12px;
}

.payment-details .amount {
    color: var(--pixel-cyan);
    font-weight: bold;
}

.payment-details .system {
    color: var(--pixel-gray);
    font-weight: normal;
    text-transform: uppercase;
}

.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.payment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pixel-btn.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    margin: 3px 0;
    letter-spacing: 0.5px;
    min-width: 140px;
    flex: 1;
}

.pixel-btn.payment-btn:hover {
    transform: translateY(-1px);
}

.pixel-btn.payment-btn.primary {
    background: var(--pixel-cyan);
    border: 2px solid var(--pixel-cyan);
    color: var(--pixel-black);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.pixel-btn.payment-btn.primary:hover {
    background: #40E0D0;
    border-color: #40E0D0;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.pixel-btn.payment-btn.secondary {
    background: rgba(100, 100, 100, 0.3);
    border: 2px solid var(--pixel-gray);
    color: var(--pixel-cyan);
}

.pixel-btn.payment-btn.secondary:hover {
    background: rgba(150, 150, 150, 0.3);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.pixel-btn.payment-btn.cancel {
    background: rgba(180, 50, 50, 0.3);
    border: 2px solid #CC4444;
    color: #FF6666;
}

.pixel-btn.payment-btn.cancel:hover {
    background: rgba(200, 60, 60, 0.4);
    border-color: #FF4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.pixel-btn.small.cancel {
    background: rgba(180, 50, 50, 0.3);
    border: 1px solid #CC4444;
    color: #FF6666;
}

.pixel-btn.small.cancel:hover {
    background: rgba(200, 60, 60, 0.4);
    border-color: #FF4444;
}

.history-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-icon {
    font-size: 12px;
}

/* ============================================
   НОВЫЙ ДИЗАЙН МОДАЛЬНОГО ОКНА ПОПОЛНЕНИЯ
   ============================================ */

.large-payment-modal {
    max-width: 1200px !important;
    width: 95% !important;
    max-height: 90vh;
}

.payment-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    padding: 25px;
    max-height: calc(90vh - 100px);
    overflow: hidden;
}

.payment-left-section,
.payment-right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-left-section {
    max-height: calc(90vh - 150px);
    overflow-y: auto;
    padding-right: 10px;
}

/* Стилизованный скроллбар для левой секции */
.payment-left-section::-webkit-scrollbar {
    width: 8px;
}

.payment-left-section::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.payment-left-section::-webkit-scrollbar-thumb {
    background: var(--pixel-cyan);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.payment-left-section::-webkit-scrollbar-thumb:hover {
    background: #40E0D0;
}

/* Для Firefox */
.payment-left-section {
    scrollbar-width: thin;
    scrollbar-color: var(--pixel-cyan) rgba(0, 0, 0, 0.3);
}

.payment-right-section {
    border-left: 2px solid rgba(0, 255, 255, 0.2);
    padding-left: 30px;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pixel-cyan);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.section-title i {
    font-size: 18px;
}

/* Мини-статистика */
.payment-stats-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-mini-item:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.stat-mini-icon {
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}

.stat-mini-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-mini-label {
    font-size: 11px;
    color: var(--pixel-gray-light);
    text-transform: uppercase;
}

.stat-mini-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Карточки методов оплаты */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--pixel-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.payment-method-card:hover::before {
    left: 100%;
}

.payment-method-card:hover {
    border-color: var(--pixel-cyan);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateX(5px);
}

.payment-method-card.selected {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.payment-method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

.payment-method-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--pixel-gray);
    background: rgba(0, 0, 0, 0.6);
}

.payment-method-card.disabled::before {
    display: none;
}

.method-icon {
    font-size: 28px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-method-card:hover .method-icon,
.payment-method-card.selected .method-icon {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.crypto-icon { color: #f7931a; }
.sbp-icon { color: #00ff00; }
.card-icon { color: #4169e1; }

.method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--pixel-cyan);
}

.method-desc {
    font-size: 12px;
    color: var(--pixel-gray-light);
}

.method-check {
    font-size: 24px;
    color: var(--pixel-cyan);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-method-card.selected .method-check {
    opacity: 1;
}

.method-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 4px;
    font-size: 10px;
    color: #ffd700;
    text-transform: uppercase;
    font-weight: bold;
}

/* Подсказка выбора метода */
.payment-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    background: rgba(0, 255, 255, 0.03);
    border: 2px dashed rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.payment-hint:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
}

.hint-icon {
    font-size: 48px;
    animation: bounce 2s ease-in-out infinite;
}

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

.hint-text {
    font-size: 14px;
    color: var(--pixel-cyan);
    text-align: center;
    opacity: 0.7;
}

/* Форма создания платежа */
.payment-create-form {
    display: none;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-create-form[style*="display: flex"] {
    opacity: 1;
}

.form-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    margin: 10px 0;
}

.selected-method-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 13px;
}

.selected-label {
    color: var(--pixel-gray-light);
}

.selected-value {
    color: var(--pixel-cyan);
    font-weight: bold;
}

.amount-input-wrapper {
    position: relative;
}

.amount-input {
    padding-right: 40px !important;
    font-size: 18px !important;
    font-weight: bold;
}

.amount-input.highlight-input {
    animation: highlightPulse 0.3s ease;
}

.amount-input.input-error {
    border-color: #ff6666 !important;
    box-shadow: 0 0 10px rgba(255, 102, 102, 0.3) !important;
}

.amount-input.input-success {
    border-color: #00ff00 !important;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3) !important;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 255, 255, 0); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); }
}

.amount-validation {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

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

.amount-validation.error {
    background: rgba(255, 102, 102, 0.1);
    border: 1px solid rgba(255, 102, 102, 0.4);
    color: #ff6666;
}

.amount-validation.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.4);
    color: #00ff00;
}

.amount-validation i {
    font-size: 14px;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--pixel-cyan);
    font-weight: bold;
    pointer-events: none;
}

.amount-hints {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.amount-quick-btn {
    padding: 8px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--pixel-cyan);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--pixel-font);
}

.amount-quick-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.payment-info-box {
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.creating-payment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.creating-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.2);
    border-top-color: var(--pixel-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.payment-success-box,
.payment-error-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.success-icon,
.error-icon {
    font-size: 48px;
}

.success-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--pixel-cyan);
}

.error-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff6666;
}

.success-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 4px;
}

.detail-label {
    color: var(--pixel-gray-light);
    font-size: 12px;
}

.detail-value {
    color: var(--pixel-cyan);
    font-weight: bold;
    font-size: 13px;
}

.error-text {
    color: var(--pixel-gray-light);
    font-size: 13px;
    line-height: 1.6;
}

.create-payment-btn {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px !important;
    padding: 15px !important;
}

.pay-now-btn {
    margin-top: 10px;
}

.redirect-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-top: 15px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.redirect-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.2);
    border-top-color: var(--pixel-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.redirect-info span {
    color: var(--pixel-cyan);
    font-size: 13px;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* История платежей */
.payments-history-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 5px;
}

.loading-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    color: var(--pixel-cyan);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.2);
    border-top-color: var(--pixel-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.empty-payment-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: var(--pixel-cyan);
    font-weight: bold;
}

.empty-subtext {
    font-size: 13px;
    color: var(--pixel-gray-light);
}

.empty-payment-history.error .empty-icon {
    filter: hue-rotate(120deg);
}

.empty-payment-history.error .empty-text {
    color: #ff6666;
}

/* Карточки истории платежей */
.payment-history-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--pixel-gray);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}

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

.payment-history-card:hover {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.payment-history-card.status-pending {
    border-left: 4px solid #ffa500;
}

.payment-history-card.status-paid {
    border-left: 4px solid #00ff00;
}

.payment-history-card.status-cancelled {
    border-left: 4px solid #ff6666;
    opacity: 0.7;
}

.payment-history-card.status-expired {
    border-left: 4px solid #999;
    opacity: 0.6;
}

.payment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.payment-card-amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.payment-card-status {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
}

.payment-card-status.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.4);
}

.payment-card-status.status-paid {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.4);
}

.payment-card-status.status-cancelled {
    background: rgba(255, 102, 102, 0.2);
    color: #ff6666;
    border: 1px solid rgba(255, 102, 102, 0.4);
}

.payment-card-status.status-expired {
    background: rgba(153, 153, 153, 0.2);
    color: #999;
    border: 1px solid rgba(153, 153, 153, 0.4);
}

.payment-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.info-label {
    color: var(--pixel-gray-light);
}

.info-value {
    color: var(--pixel-cyan);
    font-weight: bold;
}

.payment-id {
    font-family: monospace;
    font-size: 11px;
}

.payment-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.payment-action-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--pixel-gray);
    border-radius: 6px;
    color: var(--pixel-cyan);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--pixel-font);
}

.payment-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.payment-action-btn.pay-btn {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
    color: #00ff00;
}

.payment-action-btn.pay-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.payment-action-btn.check-btn {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    color: var(--pixel-cyan);
}

.payment-action-btn.check-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.payment-action-btn.cancel-btn {
    background: rgba(255, 102, 102, 0.1);
    border-color: rgba(255, 102, 102, 0.4);
    color: #ff6666;
}

.payment-action-btn.cancel-btn:hover {
    background: rgba(255, 102, 102, 0.2);
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 102, 102, 0.3);
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .payment-right-section {
        border-left: none;
        border-top: 2px solid rgba(0, 255, 255, 0.2);
        padding-left: 0;
        padding-top: 20px;
    }
    
    .large-payment-modal {
        max-width: 95% !important;
        width: 95% !important;
    }
}

@media (max-width: 768px) {
    .payment-container {
        padding: 15px;
        gap: 25px;
    }
    
    .payment-stats-mini {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .amount-hints {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-card-actions {
        flex-direction: column;
    }
    
    .payment-action-btn {
        min-width: unset;
        width: 100%;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    .large-payment-modal {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .payment-right-section {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .payment-method-card {
        padding: 15px;
    }
    
    .method-icon {
        font-size: 24px;
        min-width: 40px;
        height: 40px;
    }
    
    .method-name {
        font-size: 13px;
    }
    
    .method-desc {
        font-size: 11px;
    }
    
    .payment-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-card-amount {
        font-size: 18px;
    }
}

.flow-title {
    color: var(--pixel-cyan);
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--pixel-cyan);
}

.payment-instructions {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid #FFFF00;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
}

.payment-instructions p {
    margin: 5px 0;
    font-size: 12px;
    color: #FFFF00;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-top: 3px solid var(--pixel-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.btn-text {
    letter-spacing: 0.5px;
}

.payment-history-link {
    margin-top: 15px;
    text-align: center;
}

.pixel-link {
    color: var(--pixel-cyan);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pixel-link:hover {
    color: #40E0D0;
    text-shadow: 0 0 5px var(--pixel-cyan);
}


.payment-history-content {
    max-height: 400px;
    overflow-y: auto;
}

.history-list {
    padding: 10px;
}

.payment-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid var(--pixel-cyan);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.payment-amount {
    font-size: 14px;
    font-weight: bold;
    color: var(--pixel-cyan);
}

.payment-status {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.payment-details {
    font-size: 14px;
    color: var(--pixel-gray);
}

.payment-details p {
    margin: 3px 0;
}


.status-pending {
    border-color: #FFA500;
}

.status-pending .payment-status {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.status-paid {
    border-color: #00FF00;
}

.status-paid .payment-status {
    background: rgba(0, 255, 0, 0.2);
    color: #00FF00;
}

.status-cancelled {
    border-color: #FF4444;
}

.status-cancelled .payment-status {
    background: rgba(255, 68, 68, 0.2);
    color: #FF4444;
}

.status-expired {
    border-color: #888;
}

.status-expired .payment-status {
    background: rgba(136, 136, 136, 0.2);
    color: #888;
}

.no-payments {
    text-align: center;
    padding: 40px;
    color: var(--pixel-gray);
    font-size: 12px;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: #FF4444;
    font-size: 12px;
}

.loading-text {
    text-align: center;
    padding: 20px;
    color: var(--pixel-cyan);
    font-size: 12px;
}

.pixel-btn.small {
    font-size: 14px;
    padding: 4px 8px;
    margin-top: 5px;
}

.pixel-btn.secondary {
    background: rgba(100, 100, 100, 0.3);
    border-color: #666;
    color: #999;
}

.pixel-btn.secondary:hover {
    background: rgba(100, 100, 100, 0.5);
    border-color: #999;
    color: #FFF;
}


.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100050;
    pointer-events: none;
}

.pixel-notification {
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid var(--pixel-cyan);
    padding: 12px 16px;
    margin-bottom: 10px;
    max-width: 340px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 255, 255, 0.15);
    border-radius: 8px;
    pointer-events: all;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pixelNotificationAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    line-height: 1.4;
    color: #fff;
    font-family: var(--pixel-font);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pixel-notification:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(0, 255, 255, 0.25);
}

.pixel-notification:active {
    transform: translateY(0);
}

/* Иконка в уведомлении */
.pixel-notification .notification-icon {
    font-size: 16px;
    margin-right: 10px;
    filter: drop-shadow(0 0 4px currentColor);
    display: inline-flex;
    align-items: center;
}

/* Типы уведомлений */
.pixel-notification.success {
    border-color: var(--pixel-green);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(0, 255, 0, 0.15);
}

.pixel-notification.success:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(0, 255, 0, 0.25);
}

.pixel-notification.error {
    border-color: var(--pixel-red);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(255, 102, 102, 0.15);
}

.pixel-notification.error:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(255, 102, 102, 0.25);
}

.pixel-notification.warning {
    border-color: var(--pixel-yellow);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(255, 193, 7, 0.15);
}

.pixel-notification.warning:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(255, 193, 7, 0.25);
}

.pixel-notification.info {
    border-color: var(--pixel-blue);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 12px rgba(74, 144, 226, 0.15);
}

.pixel-notification.info:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(74, 144, 226, 0.25);
}

.notification-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100050;
    max-width: 350px;
}
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--pixel-gray);
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--pixel-transition);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pixel-white);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--pixel-cyan);
    border-radius: 0 0 8px 8px;
    animation: notificationProgress 4s linear;
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.text-glow {
    text-shadow: 0 0 10px var(--pixel-cyan);
}

.text-glow-magenta {
    text-shadow: 0 0 10px var(--pixel-magenta);
}

.text-glow-yellow {
    text-shadow: 0 0 10px var(--pixel-yellow);
}

.border-glow {
    border: 1px solid var(--pixel-cyan);
    box-shadow: var(--subtle-glow);
}

.border-glow-magenta {
    border: 1px solid var(--pixel-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.bg-glass {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-glass-strong {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.shadow-pixel {
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.shadow-pixel-cyan {
    box-shadow: 2px 2px 0 var(--pixel-cyan);
}

.shadow-pixel-magenta {
    box-shadow: 2px 2px 0 var(--pixel-magenta);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pixel-border {
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
}

.pixel-border-rounded {
    border: 2px solid var(--pixel-cyan);
    border-radius: 8px;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.click-feedback:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--pixel-cyan);
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.fade-out {
    animation: fadeOutAnimation 0.3s ease-out forwards;
}

@keyframes fadeOutAnimation {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: var(--pixel-white);
    padding: var(--pixel-unit) var(--pixel-2);
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 2000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid rgba(0, 0, 0, 0.9);
}

/* Анимация появления уведомления */
@keyframes pixelNotificationAppear {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Анимация исчезновения уведомления */
@keyframes pixelNotificationDisappear {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(50%);
    }
}

/* Анимация сканлайна */

@keyframes skeletonLoading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 4px;
}

.account-card.skeleton {
    pointer-events: none;
    animation: none;
}

.account-card.skeleton .skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
}

.page-enter {
    animation: pageTransition 0.6s ease-out;
}

@keyframes pageTransition {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-enter {
    animation: pageTransition 0.6s ease-out;
}

.fade-in {
    animation: fadeInAnimation 0.8s ease-out;
}

.slide-up {
    animation: slideUpAnimation 0.7s ease-out;
}

.scale-in {
    animation: scaleInAnimation 0.5s ease-out;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideUpAnimation {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleInAnimation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scrollReveal {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    
    .no-products-message {
        min-height: calc(100vh - 180px);
        padding: clamp(30px, 6vh, 60px) 20px;
    }
    
    .no-products-icon {
        animation: gentleFloat 3s ease-in-out infinite, iconGlow 2s ease-in-out infinite alternate, mobileIconPulse 4s ease-in-out infinite !important;
    }
    
    .no-products-text {
        font-size: clamp(14px, 5vw, 22px) !important;
        font-weight: 700 !important;
        max-width: 95vw !important;
        text-shadow: 
            0 0 15px var(--pixel-cyan),
            0 0 30px var(--pixel-cyan),
            2px 2px 6px rgba(0, 0, 0, 0.9) !important;
    }
    
    .no-products-subtext {
        font-size: clamp(11px, 3.5vw, 16px) !important;
        font-weight: 500 !important;
        line-height: 1.6 !important;
        max-width: min(350px, 90vw) !important;
        margin: 0 auto;
        text-shadow: 
            0 0 12px var(--pixel-cyan),
            2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    }
    
    @keyframes mobileIconPulse {
        0%, 100% {
            transform: scale(1);
            filter: drop-shadow(0 0 30px var(--pixel-cyan));
        }
        50% {
            transform: scale(1.1);
            filter: drop-shadow(0 0 40px var(--pixel-cyan));
        }
    }
    
    .pixel-btn {
        min-height: 52px;
        min-width: 52px;
        padding: 16px 20px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
        touch-action: manipulation;
        border-width: 2px;
        border-radius: 8px;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 10px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transition: all 0.2s ease;
    }

    
    .pixel-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        padding: var(--pixel-2);
        background: rgba(0, 0, 0, 0.98);
        border-bottom: 1px solid var(--pixel-cyan);
        backdrop-filter: blur(15px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 16px 12px 12px;
        max-width: 100%;
        position: relative;
        align-items: center;
    }

    
    .nav-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        margin-bottom: 8px;
        order: 0;
        position: relative;
        left: auto;
        top: auto;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-shrink: 0;
        width: 100%;
        order: 2;
        margin-top: 0; 
    }

    .auth-panel {
        display: flex;
        gap: var(--pixel-2);
    }

    .auth-panel .pixel-btn {
        font-size: 14px;
        font-weight: 600;
        padding: 14px 24px;
        min-height: 50px;
        min-width: 140px;
        border-width: 2px;
        border-radius: 0;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(0, 255, 255, 0.3);
        backdrop-filter: blur(10px);
        text-shadow: none;
        transition: all 0.25s ease;
    }
    
    .auth-panel .pixel-btn.outline {
        background: rgba(0, 17, 34, 0.8);
        border-color: #00ffff;
        color: #00ffff;
    }
    
    .auth-panel .pixel-btn.outline:hover {
        background: rgba(0, 17, 34, 0.95);
        transform: translateY(-3px);
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.6),
            inset 0 0 0 1px rgba(0, 255, 255, 0.5),
            0 0 25px rgba(0, 255, 255, 0.3),
            0 -2px 0 0 #00ffff inset;
    }
    
    .auth-panel .pixel-btn.primary {
        background: rgba(0, 255, 255, 0.95);
        border-color: #00ffff;
        color: #001122;
    }
    
    .auth-panel .pixel-btn.primary:hover {
        background: #00ffff;
        transform: translateY(-3px);
        box-shadow: 
            0 6px 20px rgba(0, 255, 255, 0.5),
            inset 0 0 0 1px rgba(255, 255, 255, 0.3),
            0 0 30px rgba(0, 255, 255, 0.4);
    }

    
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
        order: 1;
        position: relative;
        top: 0;
        left: auto;
        transform: none;
        margin: 0;
        padding: 12px 16px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 8px;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .pixel-tab {
        flex: 1 1 auto;
        min-width: 90px;
        max-width: 140px;
        text-align: center;
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 600;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border-width: 2px;
        box-shadow: 
            0 3px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .tab-icon {
        display: inline-block;
        margin-right: 6px;
        font-size: 16px;
    }

    
    .user-panel {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .user-panel .pixel-btn {
        font-size: 12px;
        font-weight: 600;
        padding: 12px 16px;
        min-height: 44px;
        width: auto;
        border-radius: 8px;
        border-width: 2px;
        box-shadow: 
            0 3px 10px rgba(0, 0, 0, 0.4),
            0 0 8px rgba(0, 255, 255, 0.2);
    }
    
    .user-panel .pixel-btn.logout {
        font-size: 16px;
        padding: 8px 10px;
        min-height: 50px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pixel-balance,
    .pixel-user {
        font-size: 14px;
        font-weight: 600;
        padding: 14px 18px;
        min-height: 48px;
        border-radius: 8px;
        border-width: 2px;
        box-shadow: 
            0 4px 15px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
    }

    
    .pixel-main {
        margin-top: 0px;
        padding: var(--pixel-2);
        padding-top: 20px;
    }

    
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        justify-content: center;
        gap: 16px;
        padding: var(--pixel-2);
    }

    .account-card {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        padding: 0;
        touch-action: manipulation;
        border-radius: 8px;
        border-width: 1px;
        background: rgba(10, 15, 25, 0.8);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        transition: all 0.3s ease;
    }
    
    .account-card:hover,
    .account-card:active {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.6),
            0 5px 20px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: var(--pixel-cyan);
    }

    .shop-layout {
        flex-direction: column;
        padding: 0 var(--pixel-2);
        gap: var(--pixel-4);
        width: 100%;
        padding-right: var(--pixel-2); 
    }

    
    .cart-section {
        position: relative;
        width: 100%;
        max-width: 400px;
        height: auto;
        order: -1;
        margin: 0 auto var(--pixel-4) auto;
        padding-left: 0;
        top: auto;
        right: auto;
        background: rgba(0, 0, 0, 0.95);
        border-radius: 8px;
        border: 1px solid var(--pixel-cyan);
    }

    .cart-panel {
        height: auto;
        max-height: 400px;
        min-height: 200px;
        margin-top: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-left: none !important; 
        border: 1px solid var(--pixel-cyan) !important; 
    }

    
    .pixel-modal:not(.cart-modal) {
        margin: 10px;
        max-width: calc(100vw - 20px);
        min-width: calc(100vw - 20px); 
        width: calc(100vw - 20px);
        max-height: calc(100vh - 40px);
        height: auto;
        backdrop-filter: blur(15px);
        border-radius: 12px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .modal-content {
        padding: var(--pixel-4);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    
    /* КРЕСТИК ЗАКРЫТИЯ В ПРАВОМ ВЕРХНЕМ УГЛУ */
    .pixel-modal:not(.cart-modal) .modal-header {
        position: relative !important;
    }
    
    .pixel-modal:not(.cart-modal) .modal-close,
    .auth-modal .modal-close {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(20, 25, 35, 0.85) !important;
        border: 2px solid rgba(255, 0, 80, 0.6) !important;
        border-radius: 8px !important;
        backdrop-filter: blur(15px) !important;
        z-index: 10001 !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 0, 80, 0.2) !important;
    }
    
    .pixel-modal:not(.cart-modal) .modal-close::before,
    .pixel-modal:not(.cart-modal) .modal-close::after,
    .auth-modal .modal-close::before,
    .auth-modal .modal-close::after {
        width: 16px !important;
        height: 2px !important;
        background: rgba(255, 0, 80, 1) !important;
    }

    .pixel-modal:not(.cart-modal) .modal-close:hover,
    .pixel-modal:not(.cart-modal) .modal-close:active,
    .auth-modal .modal-close:hover,
    .auth-modal .modal-close:active {
        background: rgba(255, 0, 80, 0.25) !important;
        border-color: rgba(255, 0, 80, 1) !important;
        transform: scale(1.08) !important;
        animation: none !important;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(255, 0, 80, 0.4) !important;
    }

    
    .pixel-modal:not(.cart-modal) .modal-header,
    .auth-modal .modal-header {
        padding: var(--pixel-3) !important;
        padding-right: 60px !important;
        position: sticky;
        top: 0;
        z-index: 10;
        justify-content: center !important;
        background: rgba(10, 15, 20, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .pixel-modal:not(.cart-modal) .modal-title,
    .auth-modal .modal-title {
        text-align: center !important;
        flex: 1 !important;
    }
    
    
    .payment-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .pixel-btn.payment-btn {
        min-width: auto;
        flex: none;
        width: 100%;
        min-height: 48px;
        font-size: 14px;
        padding: var(--pixel-3) var(--pixel-4);
    }

    .payment-matrix {
        grid-template-columns: 1fr;
        gap: var(--pixel-3);
    }

    .payment-method {
        min-height: 60px;
        padding: var(--pixel-3);
        touch-action: manipulation;
    }

    
    .pixel-notification {
        max-width: calc(100vw - 30px);
        font-size: 14px;
        margin-bottom: 12px;
        padding: 16px 18px;
        border-radius: 10px;
        border-width: 2px;
    }
    
    .pixel-notification .notification-icon {
        font-size: 20px;
    }
    
    .notification-container {
        top: 15px;
        right: 15px;
        left: 15px;
    }

    .notification-stack {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    
    .search-input {
        font-size: 14px;
        padding: var(--pixel-3) var(--pixel-4);
        min-height: 44px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .filter-chip {
        font-size: 12px;
        padding: var(--pixel-2) var(--pixel-3);
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3);
    }

    .filters-container {
        flex-wrap: wrap;
        gap: var(--pixel-2);
        justify-content: center;
        padding: var(--pixel-2);
    }

    
    .pixel-input {
        font-size: 14px; 
        padding: var(--pixel-3) var(--pixel-4);
        min-height: 44px;
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }

    
    .brand-container {
        padding: 4px 8px;
    }
    
    .logo-container {
        width: 36px;
        height: 36px;
    }

    .brand-info {
        padding: 6px 10px;
        min-width: auto;
    }
    
    .brand-info .brand-text {
        font-size: 12px;
    }

    
    .balance-display {
        font-size: 12px;
        padding: var(--pixel-2) var(--pixel-3);
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    
    .product-details {
        padding: var(--pixel-3);
        font-size: 12px;
    }

    
    .footer-content {
        flex-direction: column;
        gap: var(--pixel-3);
        text-align: center;
        padding: var(--pixel-4) var(--pixel-2);
    }

    
    .user-panel .pixel-btn:not(.logout) {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px;
    }
    .user-panel .pixel-btn:not(.logout) .btn-label { display: none !important; }
    .user-panel .pixel-btn:not(.logout) .btn-icon { margin: 0 !important; font-size: 22px !important; }
}

@media (max-width: 480px) {
    
    .no-products-message {
        min-height: calc(100vh - 160px) !important;
        padding: clamp(25px, 5vh, 50px) 15px !important;
    }
    
    .no-products-icon {
        font-size: clamp(40px, 12vw, 70px) !important;
        margin-bottom: clamp(12px, 3vh, 20px) !important;
    }
    
    .no-products-text {
        font-size: clamp(13px, 5.5vw, 20px) !important;
        margin-bottom: clamp(8px, 2vh, 15px) !important;
        letter-spacing: clamp(0.3px, 0.2vw, 1px) !important;
        max-width: 95vw !important;
    }
    
    .no-products-subtext {
        font-size: clamp(10px, 4vw, 15px) !important;
        max-width: min(280px, 92vw) !important;
        line-height: 1.5 !important;
        padding: 0 5px;
    }
    
    .account-card {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 0 !important;
        border-radius: 8px !important;
    }
    
    .pixel-btn {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 14px 18px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-width: 2px !important;
        border-radius: 8px !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.4),
            0 0 10px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    }
    
    .user-panel .pixel-btn:not(.logout) {
        width: 80px !important;
        height: 42px !important;
        min-width: 80px !important;
        min-height: 42px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        padding: 10px 12px !important;
        border-width: 2px !important;
    }
    .user-panel .pixel-btn:not(.logout) .btn-icon { font-size: 16px !important; }
    
    .nav-tabs {
        padding: 8px 12px !important;
        gap: 6px !important;
        border-radius: 6px !important;
    }
    
    .pixel-tab {
        min-width: 65px !important;
        max-width: 110px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        min-height: 40px !important;
        border-width: 2px !important;
        border-radius: 6px !important;
    }
    
    .tab-icon {
        font-size: 14px !important;
        margin-right: 4px !important;
    }
    
    .pixel-modal,
    .auth-modal,
    .modal-overlay .pixel-modal:not(.cart-modal) {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        z-index: 100040 !important;
        background: linear-gradient(135deg, var(--pixel-dark) 0%, var(--pixel-darker) 100%) !important;
        border: none !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 40px 20px !important;
    }
    
    .pixel-modal .modal-content,
    .auth-modal .modal-content,
    .modal-overlay .pixel-modal .modal-content {
        width: 100% !important;
        max-width: 350px !important;
        padding: 30px 25px !important;
        padding-top: 50px !important;
        background: rgba(10, 15, 20, 0.92) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(20px) !important;
        position: relative !important;
        margin: auto !important;
    }
    
    .pixel-form .form-group .pixel-input,
    .auth-form .form-group input,
    .pixel-modal input {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        outline: none !important;
        transition: all 0.25s ease !important;
        margin-bottom: 15px !important;
    }
    
    .auth-panel .pixel-btn {
        width: 100% !important;
        height: auto !important;
        min-height: 56px !important;
        min-width: auto !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        padding: 16px 24px !important;
        border-width: 2px !important;
        border-radius: 0 !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(0, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        text-shadow: none !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        transition: all 0.25s ease !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    .auth-panel .pixel-btn.outline {
        background: rgba(0, 17, 34, 0.8) !important;
        border-color: #00ffff !important;
        color: #00ffff !important;
    }
    
    .auth-panel .pixel-btn.primary {
        background: rgba(0, 255, 255, 0.95) !important;
        border-color: #00ffff !important;
        color: #001122 !important;
    }
    
    .pixel-balance,
    .pixel-user {
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 12px 16px !important;
        min-height: 44px !important;
        border-width: 2px !important;
    }
}

@media (max-width: 360px) {
    .no-products-message {
        min-height: calc(100vh - 140px) !important;
        padding: clamp(20px, 4vh, 40px) 10px !important;
    }
    
    .no-products-icon {
        font-size: clamp(35px, 15vw, 60px) !important;
        margin-bottom: clamp(10px, 2.5vh, 16px) !important;
    }
    
    .no-products-text {
        font-size: clamp(12px, 6vw, 18px) !important;
        margin-bottom: clamp(8px, 1.5vh, 12px) !important;
        letter-spacing: clamp(0.2px, 0.15vw, 0.8px) !important;
        max-width: 96vw !important;
        line-height: 1.3 !important;
    }
    
    .no-products-subtext {
        font-size: clamp(9px, 4.5vw, 14px) !important;
        max-width: min(260px, 94vw) !important;
        line-height: 1.4 !important;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    :root {
        --pixel-unit: 8px;
        --pixel-2: 16px;
        --pixel-3: 24px;
        --pixel-4: 32px;
        --pixel-6: 48px;
        --pixel-8: 64px;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    
    .pixel-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: var(--pixel-3);
    }

    
    .nav-wrapper {
        padding: var(--pixel-2);
        gap: var(--pixel-2);
    }

    .pixel-nav {
        padding: var(--pixel-2);
    }

    
    .pixel-btn {
        min-height: 48px;
        min-width: 48px;
        font-size: 14px;
        padding: var(--pixel-3) var(--pixel-4);
        border-radius: 8px;
    }

    .pixel-tab {
        min-height: 48px;
        font-size: 12px;
        padding: var(--pixel-3) var(--pixel-2);
        border-radius: 6px;
    }

    
    .accounts-matrix {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 14px;
        padding: var(--pixel-2);
    }

    .account-card {
        height: 260px;
        min-height: 260px;
        max-height: 260px;
        padding: 0;
        border-radius: 8px;
    }

    
    .cart-section {
        max-width: 95%;
        margin: 0 auto var(--pixel-3) auto;
        padding: var(--pixel-2);
    }

    
    .pixel-modal:not(.cart-modal) {
        margin: 5px;
        max-width: calc(100vw - 10px);
        min-width: calc(100vw - 10px);
        width: calc(100vw - 10px);
        max-height: calc(100vh - 10px);
        height: calc(100vh - 10px);
        border-radius: 8px;
        position: fixed;
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
    }
    
    /* Десктопная корзина скрыта на мобильных, используется мобильная версия */

    .modal-content {
        padding: var(--pixel-2);
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    
    .payment-matrix {
        grid-template-columns: 1fr;
        gap: var(--pixel-2);
    }

    .payment-method {
        min-height: 70px;
        padding: var(--pixel-4);
        font-size: 14px;
        border-radius: 8px;
    }

    
    .pixel-input, .search-input {
        font-size: 14px; 
        min-height: 48px;
        padding: var(--pixel-4);
        border-radius: 8px;
        border-width: 2px;
    }

    
    .cart-panel {
        max-height: 300px;
        min-height: 150px;
        margin-top: 0;
    }

    .cart-item {
        padding: 14px;
        margin-bottom: 10px;
        border-radius: 8px;
        border-width: 2px;
    }

    
    .filter-chip {
        font-size: 12px;
        padding: var(--pixel-2) var(--pixel-3);
        min-height: 40px;
        border-radius: 6px;
        margin: var(--pixel-1);
    }

    
    .pixel-notification {
        margin: 10px;
        padding: 15px 18px;
        font-size: 13px;
        border-radius: 10px;
        max-width: calc(100vw - 20px);
        border-width: 2px;
    }
    
    .pixel-notification .notification-icon {
        font-size: 18px;
    }
    
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    
    .footer-content {
        padding: var(--pixel-3) var(--pixel-2);
        font-size: 12px;
    }

    
    .balance-display {
        font-size: 14px;
        padding: var(--pixel-3);
        min-height: 48px;
        border-radius: 6px;
    }

    
    .product-card {
        padding: var(--pixel-3);
        border-radius: 8px;
        min-height: 180px;
    }

    
    .logo-container {
        width: 36px;
        height: 36px;
    }

    
    .brand-text {
        display: none;
    }

    
    .pixel-nav {
        padding: var(--pixel-1);
    }

    .nav-wrapper {
        gap: var(--pixel-1);
    }

    .nav-brand {
        margin-bottom: var(--pixel-1);
    }

    .auth-panel .pixel-btn {
        font-size: 13px;
        font-weight: 600;
        padding: 12px 20px;
        min-height: 46px;
        min-width: 120px;
        border-width: 2px;
        border-radius: 0;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.5),
            inset 0 0 0 1px rgba(0, 255, 255, 0.3);
        transition: all 0.25s ease;
    }
    
    .auth-panel .pixel-btn.outline {
        background: rgba(0, 17, 34, 0.8);
        border-color: #00ffff;
        color: #00ffff;
    }
    
    .auth-panel .pixel-btn.primary {
        background: rgba(0, 255, 255, 0.95);
        border-color: #00ffff;
        color: #001122;
    }

    .pixel-tab {
        min-width: 80px;
        font-size: 14px;
        padding: var(--pixel-1);
        min-height: 36px;
    }

    .user-panel .pixel-btn {
        font-size: 11px;
        padding: 6px 10px;
        min-height: 28px;
        width: auto;
    }
    
    .user-panel .pixel-btn.logout {
        font-size: 14px;
        padding: 6px 8px;
        min-height: 45px;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pixel-balance,
    .pixel-user {
        font-size: 11px;
        padding: 10px 12px;
        min-height: 45px;
        border-radius: 6px;
    }

    
    .pixel-main {
        margin-top: 0px;
        padding: var(--pixel-2);
        padding-top: 90px;
    }

    
    .brand-text {
        display: none;
    }
}




* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button, .pixel-btn, .pixel-tab, .account-card, .filter-chip {
    -webkit-tap-highlight-color: rgba(0, 255, 255, 0.2);
    touch-action: manipulation;
    cursor: pointer;
}


html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior: contain;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.pixel-btn, .account-card, .filter-chip, .payment-method {
    will-change: transform;
    backface-visibility: hidden;
}


@media (hover: none) and (pointer: coarse) {
    .pixel-btn:active {
        transform: scale(0.96) translateY(2px);
        transition: transform 0.1s ease-out;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(0, 255, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .account-card:active {
        transform: scale(0.98) translateY(2px);
        transition: transform 0.15s ease-out;
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.6),
            0 2px 12px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    
    .filter-chip:active {
        transform: scale(0.95) translateY(1px);
        transition: transform 0.1s ease-out;
        box-shadow: 
            0 2px 6px rgba(0, 0, 0, 0.4),
            0 0 10px rgba(0, 255, 255, 0.3);
    }
    
    .pixel-tab:active {
        background: rgba(0, 255, 255, 0.3);
        transform: scale(0.96) translateY(1px);
        transition: all 0.1s ease-out;
        box-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}


.pixel-btn:focus,
.pixel-input:focus,
.search-input:focus {
    outline: 2px solid var(--pixel-cyan);
    outline-offset: 2px;
}


@media screen and (orientation: landscape) and (max-height: 480px) {
    .pixel-nav {
        padding: var(--pixel-1) var(--pixel-2);
    }
    
    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pixel-modal:not(.cart-modal) {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .main-content {
        margin-top: 60px;
    }
}


/* ============================================
   MOBILE LANDSCAPE OPTIMIZATION
   ============================================ */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .pixel-nav {
        padding: 6px 12px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .nav-brand {
        gap: 6px !important;
    }
    
    .brand-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }
    
    .brand-text {
        font-size: 12px !important;
    }
    
    .nav-tabs {
        gap: 4px !important;
        padding: 4px 8px !important;
    }
    
    .pixel-tab {
        padding: 6px 10px !important;
        font-size: 10px !important;
        min-height: 32px !important;
        min-width: 70px !important;
        max-width: 90px !important;
    }
    
    .tab-icon {
        font-size: 12px !important;
    }
    
    .btn-label {
        font-size: 10px !important;
    }
    
    .nav-actions {
        gap: 4px !important;
    }
    
    .pixel-btn {
        padding: 6px 10px !important;
        font-size: 10px !important;
        min-height: 32px !important;
    }
    
    .user-panel {
        gap: 4px !important;
    }
    
    .pixel-cart-float {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
        z-index: 100002 !important;
    }
    
    .cart-float-icon {
        font-size: 18px !important;
    }
    
    .cart-float-icon i {
        font-size: 18px !important;
    }
    
    .cart-float-badge {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 9px !important;
        top: -5px !important;
        right: -5px !important;
    }
}

@media (max-width: 700px) and (max-height: 400px) and (orientation: landscape) {
    .pixel-nav {
        padding: 3px 6px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .nav-brand {
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    
    .brand-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 14px !important;
    }
    
    .brand-text {
        font-size: 10px !important;
        white-space: nowrap !important;
    }
    
    .nav-tabs {
        gap: 2px !important;
        padding: 2px 4px !important;
        position: static !important;
        transform: none !important;
        margin: 0 auto !important;
        flex-shrink: 1 !important;
    }
    
    .pixel-tab {
        padding: 4px 6px !important;
        font-size: 8px !important;
        min-height: 28px !important;
        min-width: 50px !important;
        max-width: 70px !important;
        white-space: nowrap !important;
    }
    
    .tab-icon {
        font-size: 10px !important;
        margin-right: 2px !important;
    }
    
    .btn-label {
        font-size: 8px !important;
    }
    
    .nav-actions {
        gap: 3px !important;
        position: static !important;
        transform: none !important;
        flex-shrink: 0 !important;
    }
    
    .pixel-btn {
        padding: 4px 6px !important;
        font-size: 8px !important;
        min-height: 28px !important;
        white-space: nowrap !important;
    }
    
    .user-panel {
        gap: 3px !important;
    }
    
    .pixel-cart-float {
        width: 35px !important;
        height: 35px !important;
        bottom: 10px !important;
        right: 10px !important;
        z-index: 100002 !important;
    }
    
    .cart-float-icon {
        font-size: 14px !important;
    }
    
    .cart-float-icon i {
        font-size: 14px !important;
    }
    
    .cart-float-badge {
        min-width: 16px !important;
        height: 16px !important;
        font-size: 8px !important;
        top: -4px !important;
        right: -4px !important;
    }
}

/* Extreme small landscape - hide text labels */
@media (max-width: 600px) and (max-height: 380px) and (orientation: landscape) {
    .pixel-nav {
        padding: 2px 4px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
    
    .brand-text {
        display: none !important;
    }
    
    .brand-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
    
    .nav-tabs {
        gap: 2px !important;
        padding: 2px !important;
    }
    
    .pixel-tab .btn-label {
        display: none !important;
    }
    
    .pixel-tab {
        padding: 4px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        min-height: 26px !important;
        justify-content: center !important;
    }
    
    .tab-icon {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    .pixel-btn .btn-label {
        display: none !important;
    }
    
    .pixel-btn {
        padding: 4px !important;
        min-width: 36px !important;
        min-height: 26px !important;
        justify-content: center !important;
    }
    
    .btn-icon {
        font-size: 14px !important;
        margin: 0 !important;
    }
    
    .pixel-cart-float {
        width: 32px !important;
        height: 32px !important;
        z-index: 100002 !important;
    }
    
    .cart-float-icon {
        font-size: 12px !important;
    }
    
    .cart-float-icon i {
        font-size: 12px !important;
    }
}

@media (prefers-color-scheme: dark) {
    .pixel-modal {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
    }
    
    .cart-section {
        background: rgba(0, 0, 0, 0.98);
    }
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}


@media (prefers-contrast: high) {
    .pixel-btn {
        border-width: 2px;
    }
    
    .account-card, .payment-method {
        border-width: 2px;
        border-color: var(--pixel-cyan);
    }
}


@media screen and (max-width: 768px) {
    
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        position: relative;
    }

    .pixel-modal.keyboard-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
    }
    
    
    .pixel-nav {
        position: -webkit-sticky;
        position: sticky;
    }
}


@supports (padding: max(0px)) {
    .pixel-nav {
        padding-left: max(var(--pixel-2), env(safe-area-inset-left));
        padding-right: max(var(--pixel-2), env(safe-area-inset-right));
        padding-top: max(var(--pixel-2), env(safe-area-inset-top));
    }
    
    .main-content {
        padding-left: max(var(--pixel-2), env(safe-area-inset-left));
        padding-right: max(var(--pixel-2), env(safe-area-inset-right));
        padding-bottom: max(var(--pixel-2), env(safe-area-inset-bottom));
    }
}


@media screen and (max-width: 768px) {
    
    .scanlines {
        opacity: 0.1;
    }
    
    .pixel-grid {
        opacity: 0.05;
    }
    
    .particles-container {
        display: none; 
    }
    
    
    .retro-bg .bg-layer {
        animation-duration: 20s; 
    }
}

.field-error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3) !important;
    animation: fieldErrorShake 0.5s ease-in-out;
}

.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 5px;
    animation: errorMessageSlide 0.3s ease-out;
}

@keyframes fieldErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes errorMessageSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.purchase-history {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.purchase-history::-webkit-scrollbar {
    display: none; 
}

.order-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    animation: orderItemSlide 0.3s ease-out;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-info {
    display: flex;
    flex-direction: column;
}

.order-id {
    color: #00d4ff;
    font-weight: bold;
    font-size: 14px;
}

.order-date {
    color: #888;
    font-size: 12px;
}

.order-amount {
    color: #00ff88;
    font-weight: bold;
    font-size: 14px;
}

.order-items {
    margin-bottom: 10px;
}

.order-product {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #e0e0e0;
}

.order-actions {
    text-align: right;
}

.empty-history {
    text-align: center;
    padding: 30px;
    color: #888;
}

@keyframes orderItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



.aqua-roll-modal {
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    background: rgba(0, 20, 25, 0.98);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        inset 0 0 50px rgba(0, 255, 255, 0.1);
    animation: aquaModalAppear 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
    overflow: hidden;
    image-rendering: pixelated;
}

@keyframes aquaModalAppear {
    0% {
        opacity: 0;
        transform: scale(0.7) rotateX(-15deg);
        filter: blur(8px);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotateX(0deg);
        filter: blur(2px);
        box-shadow: 0 0 40px rgba(0, 255, 255, 0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: blur(0);
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.5),
            inset 0 0 50px rgba(0, 255, 255, 0.1);
    }
}

.aqua-roll-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(0, 255, 255, 0.02) 2px,
            transparent 4px,
            transparent 8px
        );
    pointer-events: none;
    z-index: 1;
    animation: aquaPattern 8s linear infinite;
}

@keyframes aquaPattern {
    0% { background-position: 0 0; }
    100% { background-position: 16px 16px; }
}

@keyframes rollModalAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02) translateY(0);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}


.aqua-roll-content {
    padding: 0;
    position: relative;
    background: transparent;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 5;
}

.aqua-roll-section {
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.aqua-pixel-container {
    position: relative;
    z-index: 10;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
}


.aqua-balance-display {
    margin-bottom: 20px;
    position: relative;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    padding: 12px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: aquaBalancePulse 3s ease-in-out infinite;
}

@keyframes aquaBalancePulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.5),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

.aqua-balance-label {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.aqua-balance-value {
    font-family: var(--pixel-font);
    font-size: 18px;
    font-weight: bold;
    color: var(--pixel-yellow);
    text-shadow: 
        0 0 15px var(--pixel-yellow),
        1px 1px 0 var(--pixel-black);
    animation: aquaValueGlow 2s ease-in-out infinite;
}

@keyframes aquaValueGlow {
    0%, 100% {
        text-shadow: 
            0 0 15px var(--pixel-yellow),
            1px 1px 0 var(--pixel-black);
    }
    50% {
        text-shadow: 
            0 0 25px var(--pixel-yellow),
            0 0 35px rgba(255, 255, 0, 0.6),
            1px 1px 0 var(--pixel-black);
    }
}

.aqua-balance-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(0, 255, 255, 0.1), 
        transparent
    );
    animation: aquaBalanceGlow 4s linear infinite;
    pointer-events: none;
}

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


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

.aqua-input-label {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.aqua-input-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.aqua-pixel-input {
    width: 100%;
    max-width: 200px;
    padding: 12px 16px;
    background: rgba(0, 30, 40, 0.8);
    border: 2px solid var(--pixel-cyan-dark);
    border-radius: 0;
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    image-rendering: pixelated;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.aqua-pixel-input:focus {
    border-color: var(--pixel-cyan);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
    transform: scale(1.05);
}

.aqua-input-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: linear-gradient(45deg, 
        var(--pixel-cyan), 
        transparent, 
        var(--pixel-cyan)
    ) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: aquaBorderScan 3s linear infinite;
    pointer-events: none;
}

@keyframes aquaBorderScan {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.aqua-input-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 1px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 1px, transparent 2px);
    pointer-events: none;
    animation: aquaInputPixels 2s ease-in-out infinite;
}

@keyframes aquaInputPixels {
    0%, 100% {
        background-position: 0 0, 100% 100%;
        opacity: 0.5;
    }
    50% {
        background-position: 20px 20px, 80% 80%;
        opacity: 1;
    }
}

.aqua-min-bet {
    font-family: var(--pixel-font);
    font-size: 8px;
    color: var(--pixel-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.aqua-roll-button {
    width: 100%;
    max-width: 250px;
    height: 48px;
    background: linear-gradient(135deg, 
        var(--pixel-cyan), 
        var(--pixel-green), 
        var(--pixel-cyan)
    );
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    color: var(--pixel-black);
    font-family: var(--pixel-font);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    margin: 20px auto;
    display: block;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: aquaButtonPulse 4s ease-in-out infinite;
}

@keyframes aquaButtonPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(0, 255, 255, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 6px 25px rgba(0, 255, 255, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

.aqua-roll-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 255, 255, 0.6),
        inset 0 0 40px rgba(255, 255, 255, 0.3);
}

.aqua-roll-button:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 
        0 2px 10px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.aqua-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.aqua-btn-icon {
    font-size: 18px;
    animation: aquaBtnIconSpin 3s linear infinite;
}

@keyframes aquaBtnIconSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

.aqua-btn-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aqua-btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transform: translateX(-100%);
    animation: aquaBtnSweep 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aquaBtnSweep {
    0%, 80% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.aqua-btn-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 2px,
            transparent 6px
        );
    pointer-events: none;
    animation: aquaBtnPixelMove 2s linear infinite;
}

@keyframes aquaBtnPixelMove {
    0% { background-position: 0 0; }
    100% { background-position: 12px 12px; }
}

.aqua-multipliers {
    margin-bottom: 20px;
}

.aqua-multi-header {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.aqua-multi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 280px;
    margin: 0 auto;
}

.aqua-multi-item {
    padding: 8px 4px;
    font-family: var(--pixel-font);
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    border: 1px solid;
    border-radius: 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: aquaMultiAppear 0.6s ease-out;
    animation-delay: calc(var(--i, 0) * 0.1s);
    animation-fill-mode: both;
    background: rgba(0, 0, 0, 0.3);
}

@keyframes aquaMultiAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.aqua-multi-item:hover {
    transform: scale(1.1);
    z-index: 5;
}

.aqua-multi-item.lose {
    border-color: var(--pixel-red);
    color: var(--pixel-red);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.aqua-multi-item.neutral {
    border-color: var(--pixel-gray);
    color: var(--pixel-gray);
    box-shadow: 0 0 8px rgba(128, 128, 128, 0.3);
}

.aqua-multi-item.win {
    border-color: var(--pixel-yellow);
    color: var(--pixel-yellow);
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.3);
}

.aqua-multi-item.big-win {
    border-color: var(--pixel-green);
    color: var(--pixel-green);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

.aqua-multi-item.jackpot {
    border-color: var(--pixel-magenta);
    color: var(--pixel-magenta);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
    animation: aquaJackpotPulse 2s ease-in-out infinite;
}

@keyframes aquaJackpotPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
        transform: scale(1.05);
    }
}


.aqua-background-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 25% 75%, rgba(0, 255, 255, 0.06) 2px, transparent 3px),
        radial-gradient(circle at 75% 25%, rgba(0, 255, 255, 0.04) 2px, transparent 3px);
    background-size: 40px 40px, 60px 60px, 80px 80px, 100px 100px;
    animation: aquaBgPixelsMove 8s linear infinite;
}

@keyframes aquaBgPixelsMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
        opacity: 0.2;
    }
    50% {
        background-position: 20px 20px, -30px 30px, 40px -40px, -50px -50px;
        opacity: 0.4;
    }
    100% {
        background-position: 40px 40px, -60px 60px, 80px -80px, -100px -100px;
        opacity: 0.2;
    }
}


.aqua-loading-section {
    text-align: center;
    padding: 30px 16px;
}

.aqua-loading-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}


.aqua-loading-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px var(--pixel-cyan));
}


.aqua-loading-text {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}


.aqua-loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.aqua-dot {
    width: 8px;
    height: 8px;
    background: var(--pixel-cyan);
    border-radius: 0;
    animation: aquaDotBlink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--pixel-cyan);
}

.aqua-dot:nth-child(1) { animation-delay: 0s; }
.aqua-dot:nth-child(2) { animation-delay: 0.5s; }
.aqua-dot:nth-child(3) { animation-delay: 1s; }

@keyframes aquaDotBlink {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 5px var(--pixel-cyan);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px var(--pixel-cyan);
    }
}

.aqua-progress-wrapper {
    margin-bottom: 20px;
}

.aqua-progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.aqua-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--pixel-cyan), 
        var(--pixel-green), 
        var(--pixel-cyan)
    );
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    animation: aquaProgressShimmer 1s linear infinite;
}

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

.aqua-progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: aquaProgressGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aquaProgressGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.aqua-loading-pixels {
    display: none;
}



.aqua-result-section {
    text-align: center;
    padding: 20px 16px;
}

.aqua-result-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.aqua-mystery-card {
    width: 220px;
    height: 280px;
    margin: 0 auto 20px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    animation: aquaCardEntrance 1s ease-out;
    perspective: 1000px;
    display: block;
    visibility: visible;
    opacity: 1;
}

@keyframes aquaCardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(-90deg) rotateX(-30deg);
        filter: blur(8px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotateY(-45deg) rotateX(-15deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) rotateX(0deg);
        filter: blur(0);
    }
}

.aqua-mystery-card.flipped {
    transform: rotateY(180deg);
    display: block;
    visibility: visible;
    opacity: 1;
}

.aqua-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(0, 40, 50, 0.9);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.aqua-card-back {
    transform: rotateY(180deg);
    z-index: 1;
    pointer-events: none;
}

.aqua-card-front {
    z-index: 2;
    pointer-events: auto;
}

.aqua-mystery-card.flipped .aqua-card-front {
    z-index: 1;
    pointer-events: none;
}

.aqua-mystery-card.flipped .aqua-card-back {
    z-index: 2;
    pointer-events: auto;
}

.aqua-card-content {
    text-align: center;
    z-index: 10;
}

.aqua-click-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: aquaClickFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--pixel-cyan));
}

@keyframes aquaClickFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 15px var(--pixel-cyan));
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
        filter: drop-shadow(0 0 25px var(--pixel-cyan));
    }
}

.aqua-click-text {
    font-family: var(--pixel-font);
    font-size: 18px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 
        0 0 15px var(--pixel-cyan),
        1px 1px 0 var(--pixel-black);
    animation: aquaClickTextPulse 3s ease-in-out infinite;
}

@keyframes aquaClickTextPulse {
    0%, 100% {
        text-shadow: 
            0 0 15px var(--pixel-cyan),
            1px 1px 0 var(--pixel-black);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 25px var(--pixel-cyan),
            0 0 35px rgba(0, 255, 255, 0.6),
            1px 1px 0 var(--pixel-black);
        transform: scale(1.05);
    }
}

.aqua-click-hint {
    font-family: var(--pixel-font);
    font-size: 10px;
    color: var(--pixel-cyan-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aqua-result-content {
    text-align: center;
    z-index: 10;
}

.aqua-result-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: aquaResultIconAppear 0.8s ease-out;
    filter: drop-shadow(0 0 15px currentColor);
}

@keyframes aquaResultIconAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3) rotate(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.aqua-result-text {
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0 var(--pixel-black);
    animation: aquaResultTextAppear 0.8s ease-out 0.3s both;
}

@keyframes aquaResultTextAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.aqua-result-amount {
    font-family: var(--pixel-font);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px currentColor,
        1px 1px 0 var(--pixel-black);
    animation: aquaResultAmountAppear 0.8s ease-out 0.6s both;
}

@keyframes aquaResultAmountAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.aqua-result-text.lose-text { color: var(--pixel-red); }
.aqua-result-amount.lose-amount { color: var(--pixel-red); }
.aqua-card-face.lose-bg { 
    background: rgba(255, 0, 0, 0.15);
    border-color: var(--pixel-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.aqua-result-text.neutral-text { color: var(--pixel-gray); }
.aqua-result-amount.neutral-amount { color: var(--pixel-gray); }
.aqua-card-face.neutral-bg { 
    background: rgba(128, 128, 128, 0.15);
    border-color: var(--pixel-gray);
    box-shadow: 0 0 30px rgba(128, 128, 128, 0.4);
}

.aqua-result-text.win-text { color: var(--pixel-green); }
.aqua-result-amount.win-amount { color: var(--pixel-green); }
.aqua-card-face.win-bg { 
    background: rgba(0, 255, 0, 0.15);
    border-color: var(--pixel-green);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
}

.aqua-result-text.jackpot-text { 
    color: var(--pixel-magenta);
    animation: aquaJackpotTextGlow 1s ease-in-out infinite;
}
.aqua-result-amount.jackpot-amount { 
    color: var(--pixel-magenta);
    animation: aquaJackpotAmountPulse 1.2s ease-in-out infinite;
}
.aqua-card-face.jackpot-bg { 
    background: rgba(255, 0, 255, 0.15);
    border-color: var(--pixel-magenta);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    animation: aquaJackpotBgGlow 2s ease-in-out infinite;
}

@keyframes aquaJackpotTextGlow {
    0%, 100% {
        text-shadow: 
            0 0 15px var(--pixel-magenta),
            1px 1px 0 var(--pixel-black);
    }
    50% {
        text-shadow: 
            0 0 25px var(--pixel-magenta),
            0 0 35px rgba(255, 0, 255, 0.8),
            1px 1px 0 var(--pixel-black);
    }
}

@keyframes aquaJackpotAmountPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 
            0 0 15px var(--pixel-magenta),
            1px 1px 0 var(--pixel-black);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 
            0 0 25px var(--pixel-magenta),
            0 0 35px rgba(255, 0, 255, 0.8),
            1px 1px 0 var(--pixel-black);
    }
}

@keyframes aquaJackpotBgGlow {
    0%, 100% {
        background: rgba(255, 0, 255, 0.15);
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    }
    50% {
        background: rgba(255, 0, 255, 0.25);
        box-shadow: 0 0 50px rgba(255, 0, 255, 0.8);
    }
}


.aqua-card-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.08) 2px, transparent 3px);
    background-size: 30px 30px, 40px 40px;
    animation: aquaCardPixelsMove 6s linear infinite;
    pointer-events: none;
    opacity: 0.4;
}

@keyframes aquaCardPixelsMove {
    0% {
        background-position: 0 0, 0 0;
        opacity: 0.3;
    }
    50% {
        background-position: 15px 15px, -20px 20px;
        opacity: 0.6;
    }
    100% {
        background-position: 30px 30px, -40px 40px;
        opacity: 0.3;
    }
}

.aqua-card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--pixel-cyan), 
        transparent, 
        var(--pixel-cyan)
    );
    animation: aquaCardGlowRotate 4s linear infinite;
    pointer-events: none;
    z-index: -1;
    border-radius: 0;
}

@keyframes aquaCardGlowRotate {
    0% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

.aqua-result-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 255, 255, 0.15) 1px, transparent 2px),
        radial-gradient(circle at 70% 30%, rgba(0, 255, 255, 0.1) 1px, transparent 2px);
    background-size: 25px 25px, 35px 35px;
    animation: aquaResultPixelsMove 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aquaResultPixelsMove {
    0%, 100% {
        background-position: 0 0, 0 0;
        opacity: 0.4;
    }
    50% {
        background-position: 12px 12px, -17px 17px;
        opacity: 0.8;
    }
}

.aqua-result-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(0, 255, 255, 0.1) 0%, 
        transparent 60%
    );
    animation: aquaResultGlowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

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


.aqua-result-details {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    animation: aquaDetailsAppear 0.6s ease-out;
}

@keyframes aquaDetailsAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.aqua-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.aqua-detail-item {
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0;
}

.aqua-detail-label {
    font-family: var(--pixel-font);
    font-size: 9px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.aqua-detail-value {
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: bold;
    color: var(--pixel-white);
    text-shadow: 0 0 8px currentColor;
}

.aqua-play-again-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, 
        var(--pixel-green), 
        var(--pixel-cyan)
    );
    border: 2px solid var(--pixel-green);
    border-radius: 0;
    color: var(--pixel-black);
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.aqua-result-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.aqua-play-again-btn,
.aqua-exit-btn {
    flex: 1;
}

.aqua-exit-btn {
    height: 44px;
    background: linear-gradient(135deg, 
        #ff4444, 
        #ff6666
    );
    border: 2px solid #ff4444;
    border-radius: 8px;
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.aqua-exit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
}

.aqua-play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.5);
}

.aqua-again-icon,
.aqua-exit-icon {
    font-size: 16px;
}


.aqua-exit-glow {
    display: none;
}

.aqua-again-glow {
    display: none;
}


.aqua-result-bg-pixels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.06) 2px, transparent 3px);
    background-size: 60px 60px, 80px 80px;
    animation: aquaResultBgPixelsMove 8s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

@keyframes aquaResultBgPixelsMove {
    0% {
        background-position: 0 0, 0 0;
        opacity: 0.2;
    }
    50% {
        background-position: 30px 30px, -40px 40px;
        opacity: 0.4;
    }
    100% {
        background-position: 60px 60px, -80px 80px;
        opacity: 0.2;
    }
}


@media (max-width: 768px) {
    .aqua-roll-modal {
        max-width: 95vw;
        width: 95%;
        max-height: 90vh;
        margin: 2.5vh auto;
    }
    
    .aqua-roll-header {
        padding: 10px 12px;
    }
    
    .aqua-roll-title {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .aqua-roll-icon {
        font-size: 16px;
    }
    
    .aqua-close-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .aqua-pixel-container {
        max-width: 280px;
    }
    
    .aqua-balance-display {
        padding: 10px;
        margin-bottom: 16px;
    }
    
    .aqua-balance-value {
        font-size: 16px;
    }
    
    .aqua-pixel-input {
        max-width: 180px;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .aqua-roll-button {
        max-width: 200px;
        height: 42px;
        margin: 16px auto;
    }
    
    .aqua-btn-text {
        font-size: 12px;
    }
    
    .aqua-btn-icon {
        font-size: 16px;
    }
    
    .aqua-multi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        max-width: 240px;
    }
    
    .aqua-multi-item {
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .aqua-loading-container {
        max-width: 260px;
        padding: 20px;
    }
    
    .aqua-loading-icon {
        font-size: 36px;
    }
    
    .aqua-loading-text {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .aqua-mystery-card {
        width: 180px;
        height: 230px;
    }
    
    .aqua-click-icon {
        font-size: 36px;
    }
    
    .aqua-click-text {
        font-size: 14px;
    }
    
    .aqua-result-icon {
        font-size: 36px;
    }
    
    .aqua-result-text {
        font-size: 14px;
    }
    
    .aqua-result-amount {
        font-size: 16px;
    }
    
    .aqua-details-grid {
        gap: 8px;
    }
    
    .aqua-detail-item {
        padding: 6px;
    }
    
    .aqua-detail-label {
        font-size: 8px;
    }
    
    .aqua-detail-value {
        font-size: 11px;
    }
    
    .aqua-play-again-btn {
        height: 38px;
        font-size: 11px;
    }
    
    .aqua-again-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .aqua-roll-modal {
        max-width: 98vw;
        width: 98%;
        margin: 1vh auto;
    }
    
    .aqua-roll-header {
        padding: 8px 10px;
    }
    
    .aqua-roll-title {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .aqua-roll-icon {
        font-size: 14px;
    }
    
    .aqua-close-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .aqua-pixel-container {
        max-width: 240px;
    }
    
    .aqua-balance-display {
        padding: 8px;
        margin-bottom: 12px;
    }
    
    .aqua-balance-label {
        font-size: 9px;
    }
    
    .aqua-balance-value {
        font-size: 14px;
    }
    
    .aqua-input-label {
        font-size: 9px;
    }
    
    .aqua-pixel-input {
        max-width: 160px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .aqua-min-bet {
        font-size: 7px;
    }
    
    .aqua-roll-button {
        max-width: 180px;
        height: 36px;
        margin: 12px auto;
    }
    
    .aqua-btn-text {
        font-size: 10px;
    }
    
    .aqua-btn-icon {
        font-size: 14px;
    }
    
    .aqua-multi-header {
        font-size: 9px;
    }
    
    .aqua-multi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
        max-width: 200px;
    }
    
    .aqua-multi-item {
        padding: 5px 1px;
        font-size: 9px;
    }
    
    .aqua-loading-container {
        max-width: 220px;
        padding: 16px;
    }
    
    .aqua-loading-icon {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .aqua-loading-text {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .aqua-progress-bar {
        height: 12px;
    }
    
    .aqua-mystery-card {
        width: 160px;
        height: 200px;
    }
    
    .aqua-click-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .aqua-click-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .aqua-click-hint {
        font-size: 8px;
    }
    
    .aqua-result-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .aqua-result-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .aqua-result-amount {
        font-size: 14px;
    }
    
    .aqua-result-details {
        padding: 12px;
        margin-top: 16px;
    }
    
    .aqua-details-grid {
        gap: 6px;
    }
    
    .aqua-detail-item {
        padding: 4px;
    }
    
    .aqua-detail-label {
        font-size: 7px;
        margin-bottom: 3px;
    }
    
    .aqua-detail-value {
        font-size: 10px;
    }
    
    .aqua-play-again-btn {
        height: 32px;
        font-size: 9px;
        gap: 6px;
    }
    
    .aqua-again-icon {
        font-size: 12px;
    }
}


@media (hover: none) and (pointer: coarse) {
    .aqua-roll-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .aqua-mystery-card:active:not(.flipped) {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .aqua-mystery-card.flipped:active {
        transform: rotateY(180deg) scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .aqua-multi-item:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
    
    .aqua-play-again-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .aqua-close-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
}


.aqua-roll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.2), 
        rgba(0, 200, 255, 0.15),
        rgba(0, 255, 255, 0.2)
    );
    border-bottom: 2px solid var(--pixel-cyan);
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.aqua-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 12;
}

.aqua-roll-icon {
    font-size: 18px;
    animation: aquaIconFloat 3s ease-in-out infinite;
}

@keyframes aquaIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 8px var(--pixel-cyan));
    }
    50% {
        transform: translateY(-2px) rotate(5deg);
        filter: drop-shadow(0 0 12px var(--pixel-cyan));
    }
}

.aqua-roll-title {
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px var(--pixel-cyan),
        2px 2px 0 var(--pixel-black);
    animation: aquaTitleGlow 4s ease-in-out infinite;
}

@keyframes aquaTitleGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--pixel-cyan),
            2px 2px 0 var(--pixel-black);
    }
    50% {
        text-shadow: 
            0 0 20px var(--pixel-cyan),
            0 0 30px rgba(0, 255, 255, 0.6),
            2px 2px 0 var(--pixel-black);
    }
}

.aqua-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #FF4444;
    border-radius: 0;
    color: #FF4444;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 12;
    text-shadow: 0 0 8px #FF4444;
}

.aqua-close-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

.aqua-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(0, 255, 255, 0.1) 1px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: aquaScanMove 2s linear infinite;
    z-index: 11;
}

@keyframes aquaScanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.roll-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    animation: rollHeaderScan 4s infinite;
}

@keyframes rollHeaderScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.roll-exe-title {
    font-family: var(--pixel-font) !important;
    font-size: 28px !important;
    font-weight: bold !important;
    color: var(--pixel-cyan) !important;
    text-shadow: 
        2px 2px 0 var(--pixel-black),
        4px 4px 0 rgba(0, 0, 0, 0.5),
        0 0 20px var(--pixel-cyan),
        0 0 40px rgba(0, 255, 255, 0.6) !important;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: rollTitleGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes rollTitleGlow {
    0%, 100% {
        text-shadow: 
            2px 2px 0 var(--pixel-black),
            4px 4px 0 rgba(0, 0, 0, 0.5),
            0 0 20px var(--pixel-cyan),
            0 0 40px rgba(0, 255, 255, 0.6);
        transform: scale(1);
        filter: hue-rotate(0deg);
    }
    25% {
        text-shadow: 
            2px 2px 0 var(--pixel-black),
            4px 4px 0 rgba(0, 0, 0, 0.5),
            0 0 30px var(--pixel-cyan),
            0 0 50px rgba(0, 255, 255, 0.8),
            0 0 70px rgba(0, 255, 255, 0.4);
        transform: scale(1.02);
        filter: hue-rotate(15deg);
    }
    50% {
        text-shadow: 
            2px 2px 0 var(--pixel-black),
            4px 4px 0 rgba(0, 0, 0, 0.5),
            0 0 40px var(--pixel-cyan),
            0 0 60px rgba(0, 255, 255, 1),
            0 0 80px rgba(0, 255, 255, 0.6),
            0 0 100px rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
        filter: hue-rotate(30deg) brightness(1.2);
    }
    75% {
        text-shadow: 
            2px 2px 0 var(--pixel-black),
            4px 4px 0 rgba(0, 0, 0, 0.5),
            0 0 35px var(--pixel-cyan),
            0 0 55px rgba(0, 255, 255, 0.9);
        transform: scale(1.03);
        filter: hue-rotate(15deg) brightness(1.1);
    }
}

.pixel-header-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(0, 255, 255, 0.1) 1px,
            transparent 2px,
            transparent 8px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(0, 255, 255, 0.05) 1px,
            transparent 2px,
            transparent 4px
        );
    animation: pixelGrid 8s linear infinite;
    opacity: 0.3;
}

@keyframes pixelGrid {
    0% { 
        background-position: 0 0, 0 0;
        opacity: 0.2;
    }
    50% {
        background-position: 8px 0, 0 4px;
        opacity: 0.4;
    }
    100% { 
        background-position: 16px 0, 0 8px;
        opacity: 0.2;
    }
}


.roll-betting-section {
    width: 100%;
    max-width: 600px;
    min-height: 600px;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    background: 
        
        repeating-conic-gradient(from 0deg at 50% 50%, 
            #000011 0deg 45deg, 
            #000022 45deg 90deg,
            #000033 90deg 135deg,
            #000044 135deg 180deg,
            #000033 180deg 225deg,
            #000022 225deg 270deg,
            #000011 270deg 315deg,
            #000000 315deg 360deg
        ),

        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.06) 2px, transparent 3px),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.04) 2px, transparent 3px),
        
        linear-gradient(135deg, 
            rgba(0, 20, 40, 0.95) 0%,
            rgba(0, 40, 60, 0.98) 50%,
            rgba(0, 20, 40, 0.95) 100%
        );
    background-size: 16px 16px, 32px 32px, 32px 32px, 32px 32px, 32px 32px, 100% 100%;
    border-radius: 0;
    border: none;
    
    
    box-shadow: 
        0 0 0 3px #00FFFF,
        3px 0 0 3px #00FFFF,
        0 3px 0 3px #00FFFF,
        3px 3px 0 3px #00FFFF,
        -3px 0 0 3px #00FFFF,
        0 -3px 0 3px #00FFFF,
        -3px -3px 0 3px #00FFFF,
        -3px 3px 0 3px #00FFFF,
        3px -3px 0 3px #00FFFF,
        6px 6px 0 0 rgba(0, 0, 0, 0.8),
        0 0 0 6px rgba(0, 255, 255, 0.3);
        
    image-rendering: pixelated;
    animation: bettingSectionGlow 4s ease-in-out infinite;
}

@keyframes bettingSectionGlow {
    0%, 100% {
        box-shadow: 
            0 0 0 3px #00FFFF,
            3px 0 0 3px #00FFFF,
            0 3px 0 3px #00FFFF,
            3px 3px 0 3px #00FFFF,
            -3px 0 0 3px #00FFFF,
            0 -3px 0 3px #00FFFF,
            -3px -3px 0 3px #00FFFF,
            -3px 3px 0 3px #00FFFF,
            3px -3px 0 3px #00FFFF,
            6px 6px 0 0 rgba(0, 0, 0, 0.8),
            0 0 0 6px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 3px #00DDDD,
            3px 0 0 3px #00DDDD,
            0 3px 0 3px #00DDDD,
            3px 3px 0 3px #00DDDD,
            -3px 0 0 3px #00DDDD,
            0 -3px 0 3px #00DDDD,
            -3px -3px 0 3px #00DDDD,
            -3px 3px 0 3px #00DDDD,
            3px -3px 0 3px #00DDDD,
            6px 6px 0 0 rgba(0, 0, 0, 0.8),
            0 0 0 8px rgba(0, 255, 255, 0.5),
            0 0 0 12px rgba(0, 255, 255, 0.2);
    }
}


.betting-pixel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.betting-pixel {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-radius: 0;
    will-change: transform, opacity;
}

.betting-wave-pixel {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border-radius: 0;
    will-change: transform, opacity;
}


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

.pixel-form-label {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
    animation: pixelSectionAppear 0.8s ease-out forwards;
}


.pixel-roll-button-container {
    margin: 30px 0;
}

.pixel-btn-large {
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--pixel-green), var(--pixel-cyan));
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    color: var(--pixel-black);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    min-width: 200px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 0 0 1px rgba(0, 255, 255, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.2);
    animation: rollButtonPulse 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes rollButtonPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 1px rgba(0, 255, 255, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.2),
            0 0 20px rgba(0, 255, 0, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(0, 255, 255, 0.6),
            0 6px 12px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(0, 255, 0, 0.4),
            0 0 60px rgba(0, 255, 255, 0.3);
        transform: scale(1.02);
    }
}

.pixel-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 2px var(--pixel-cyan),
        0 6px 20px rgba(0, 255, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3);
    filter: brightness(1.1);
}

.pixel-btn-large:active {
    transform: translateY(0);
    box-shadow: 
        0 0 0 2px var(--pixel-cyan),
        0 2px 8px rgba(0, 255, 255, 0.4);
}

.pixel-btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.pixel-btn-large:hover .pixel-btn-glow {
    animation: pixelSweep 1.5s ease infinite;
}

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


.pixel-multipliers-showcase {
    margin-top: 30px;
    padding: 20px;
    border-radius: 0;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    animation: pixelSectionAppear 1s ease-out forwards;
}

.pixel-showcase-header {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.multipliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.multiplier-pixel {
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: bold;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid;
    border-radius: 0;
    position: relative;
    animation: multiplierAppear 0.6s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.1s);
    opacity: 0;
    transform: translateY(10px);
}

@keyframes multiplierAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multiplier-pixel.lose {
    background: rgba(255, 0, 0, 0.1);
    border-color: var(--pixel-red);
    color: var(--pixel-red);
}

.multiplier-pixel.neutral {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pixel-gray);
    color: var(--pixel-gray);
}

.multiplier-pixel.small-win {
    background: rgba(255, 255, 0, 0.1);
    border-color: var(--pixel-yellow);
    color: var(--pixel-yellow);
}

.multiplier-pixel.big-win {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--pixel-green);
    color: var(--pixel-green);
}

.multiplier-pixel.jackpot {
    background: rgba(255, 0, 255, 0.1);
    border-color: #FF00FF;
    color: #FF00FF;
    animation: jackpotPulse 2s ease-in-out infinite;
}

@keyframes jackpotPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
        transform: scale(1.05);
    }
}

.roll-betting-section .form-label {
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 
        1px 0 0 var(--pixel-cyan),
        0 1px 0 var(--pixel-cyan),
        1px 1px 0 var(--pixel-cyan),
        2px 2px 0 rgba(0, 0, 0, 0.8),
        0 0 10px var(--pixel-cyan),
        0 0 20px rgba(0, 255, 255, 0.4);
    margin-bottom: 15px;
    display: block;
    image-rendering: pixelated;
}

.roll-input {
    font-size: 20px !important;
    font-family: var(--pixel-font) !important;
    font-weight: bold;
    padding: 18px !important;
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    background: 

        repeating-conic-gradient(from 0deg at 50% 50%, 
            rgba(0, 20, 30, 0.95) 0deg 90deg,
            rgba(0, 30, 45, 0.98) 90deg 180deg,
            rgba(0, 40, 60, 0.95) 180deg 270deg,
            rgba(0, 30, 45, 0.98) 270deg 360deg
        ),
        
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.02) 0px,
            rgba(0, 255, 255, 0.02) 2px,
            transparent 2px,
            transparent 6px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 255, 0.03) 0px,
            rgba(0, 255, 255, 0.03) 2px,
            transparent 2px,
            transparent 6px
        ),
        rgba(0, 20, 40, 0.9);
    background-size: 10px 10px, 6px 6px, 6px 6px, 100% 100%;
    border: none;
    border-radius: 0;
    color: var(--pixel-white);
    
    
    box-shadow: 
        0 0 0 2px #00FFFF,
        2px 0 0 2px #00FFFF,
        0 2px 0 2px #00FFFF,
        2px 2px 0 2px #00FFFF,
        -2px 0 0 2px #00DDDD,
        0 -2px 0 2px #00DDDD,
        -2px -2px 0 2px #00DDDD,
        -2px 2px 0 2px #00BBBB,
        2px -2px 0 2px #00BBBB,
        4px 4px 0 0 rgba(0, 0, 0, 0.8),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
        
    image-rendering: pixelated;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}
.roll-input:focus {
    outline: none;
    box-shadow: 
        0 0 0 2px #00FFFF,
        2px 0 0 2px #00FFFF,
        0 2px 0 2px #00FFFF,
        2px 2px 0 2px #00FFFF,
        -2px 0 0 2px #00DDDD,
        0 -2px 0 2px #00DDDD,
        -2px -2px 0 2px #00DDDD,
        -2px 2px 0 2px #00BBBB,
        2px -2px 0 2px #00BBBB,
        4px 4px 0 0 rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(0, 255, 255, 0.2),
        0 0 0 4px rgba(0, 255, 255, 0.4),
        0 0 0 6px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.6);
    filter: brightness(1.1);
    animation: inputFocusGlow 2s ease-in-out infinite;
}

@keyframes inputFocusGlow {
    0%, 100% {
        filter: brightness(1.1) saturate(1.2);
    }
    50% {
        filter: brightness(1.2) saturate(1.4);
    }
}

.roll-start-btn {
    font-size: 18px !important;
    padding: 20px 40px !important;
    margin-top: 10px;
    background: 
        
        repeating-conic-gradient(from 0deg at 50% 50%, 
            #004400 0deg 90deg, 
            #006600 90deg 180deg,
            #008800 180deg 270deg,
            #004400 270deg 360deg
        ),
        
        repeating-linear-gradient(
            45deg,
            rgba(0, 255, 0, 0.2) 0px,
            rgba(0, 255, 0, 0.2) 3px,
            transparent 3px,
            transparent 6px
        ),
        linear-gradient(135deg, var(--pixel-green), var(--pixel-cyan));
    background-size: 12px 12px, 6px 6px, 100% 100%;
    border: none;
    border-radius: 0;
    
    
    box-shadow: 
        0 0 0 3px var(--pixel-green),
        3px 0 0 3px var(--pixel-green),
        0 3px 0 3px var(--pixel-green),
        3px 3px 0 3px var(--pixel-green),
        -3px 0 0 3px var(--pixel-green),
        0 -3px 0 3px var(--pixel-green),
        -3px -3px 0 3px var(--pixel-green),
        -3px 3px 0 3px var(--pixel-green),
        3px -3px 0 3px var(--pixel-green),
        6px 6px 0 0 rgba(0, 0, 0, 0.8),
        0 0 0 6px rgba(0, 255, 0, 0.5);
        
    image-rendering: pixelated;
    animation: rollStartPulse 2s ease-in-out infinite;
}

@keyframes rollStartPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 3px var(--pixel-green),
            3px 0 0 3px var(--pixel-green),
            0 3px 0 3px var(--pixel-green),
            3px 3px 0 3px var(--pixel-green),
            -3px 0 0 3px var(--pixel-green),
            0 -3px 0 3px var(--pixel-green),
            -3px -3px 0 3px var(--pixel-green),
            -3px 3px 0 3px var(--pixel-green),
            3px -3px 0 3px var(--pixel-green),
            6px 6px 0 0 rgba(0, 0, 0, 0.8),
            0 0 0 6px rgba(0, 255, 0, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            0 0 0 3px var(--pixel-green),
            3px 0 0 3px var(--pixel-green),
            0 3px 0 3px var(--pixel-green),
            3px 3px 0 3px var(--pixel-green),
            -3px 0 0 3px var(--pixel-green),
            0 -3px 0 3px var(--pixel-green),
            -3px -3px 0 3px var(--pixel-green),
            -3px 3px 0 3px var(--pixel-green),
            3px -3px 0 3px var(--pixel-green),
            6px 6px 0 0 rgba(0, 0, 0, 0.8),
            0 0 0 8px rgba(0, 255, 0, 0.8),
            0 0 0 12px rgba(0, 255, 0, 0.4);
        transform: scale(1.02);
    }
}

.roll-start-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 0 3px var(--pixel-green),
        3px 0 0 3px var(--pixel-green),
        0 3px 0 3px var(--pixel-green),
        3px 3px 0 3px var(--pixel-green),
        -3px 0 0 3px var(--pixel-green),
        0 -3px 0 3px var(--pixel-green),
        -3px -3px 0 3px var(--pixel-green),
        -3px 3px 0 3px var(--pixel-green),
        3px -3px 0 3px var(--pixel-green),
        8px 8px 0 0 rgba(0, 0, 0, 0.8),
        0 0 0 8px rgba(0, 255, 0, 1),
        0 0 0 16px rgba(0, 255, 0, 0.6),
        0 0 0 24px rgba(0, 255, 0, 0.3);
}

.btn-icon {
    margin-right: 10px;
    font-size: 20px;
}

.roll-multipliers-info {
    background: 
        
        repeating-conic-gradient(from 0deg at 25% 25%, 
            rgba(0, 200, 255, 0.15) 0deg 45deg,
            rgba(0, 255, 255, 0.12) 45deg 90deg,
            rgba(100, 255, 255, 0.1) 90deg 135deg,
            rgba(150, 255, 255, 0.08) 135deg 180deg,
            rgba(100, 255, 255, 0.1) 180deg 225deg,
            rgba(0, 255, 255, 0.12) 225deg 270deg,
            rgba(0, 200, 255, 0.15) 270deg 315deg,
            rgba(0, 150, 200, 0.18) 315deg 360deg
        ),
        repeating-conic-gradient(from 45deg at 75% 75%, 
            rgba(0, 255, 255, 0.08) 0deg 60deg,
            rgba(64, 224, 208, 0.06) 60deg 120deg,
            rgba(0, 206, 209, 0.1) 120deg 180deg,
            rgba(32, 178, 170, 0.07) 180deg 240deg,
            rgba(0, 255, 255, 0.08) 240deg 300deg,
            rgba(95, 158, 160, 0.05) 300deg 360deg
        ),
        
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.05) 0px,
            rgba(0, 255, 255, 0.05) 2px,
            transparent 2px,
            transparent 6px,
            rgba(0, 200, 255, 0.04) 6px,
            rgba(0, 200, 255, 0.04) 8px,
            transparent 8px,
            transparent 12px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 255, 0.06) 0px,
            rgba(0, 255, 255, 0.06) 2px,
            transparent 2px,
            transparent 6px,
            rgba(0, 220, 255, 0.04) 6px,
            rgba(0, 220, 255, 0.04) 8px,
            transparent 8px,
            transparent 12px
        ),
        
        radial-gradient(ellipse at center, 
            rgba(0, 255, 255, 0.12) 0%,
            rgba(0, 200, 255, 0.08) 30%,
            rgba(0, 150, 200, 0.05) 60%,
            transparent 100%
        ),
        
        linear-gradient(135deg, 
            rgba(0, 50, 80, 0.7) 0%,
            rgba(0, 80, 120, 0.8) 25%,
            rgba(0, 100, 150, 0.85) 50%,
            rgba(0, 80, 120, 0.8) 75%,
            rgba(0, 50, 80, 0.7) 100%
        );
    background-size: 
        16px 16px,
        20px 20px, 
        8px 8px,
        8px 8px,
        200px 200px,
        100% 100%;
    border: none;
    border-radius: 0;
    padding: 25px;
    position: relative;
    z-index: 10;
    
    
    box-shadow: 
        
        inset 0 0 0 1px rgba(0, 255, 255, 0.4),
        inset 2px 2px 0 1px rgba(0, 255, 255, 0.3),
        inset -2px -2px 0 1px rgba(0, 200, 255, 0.2),
        
        
        0 0 0 2px #00FFFF,
        2px 0 0 2px #00FFFF,
        0 2px 0 2px #00FFFF,
        2px 2px 0 2px #00FFFF,
        -2px 0 0 2px #00DDDD,
        0 -2px 0 2px #00DDDD,
        -2px -2px 0 2px #00DDDD,
        -2px 2px 0 2px #00BBBB,
        2px -2px 0 2px #00BBBB,
        
        
        0 0 0 4px rgba(0, 255, 255, 0.5),
        0 0 0 6px rgba(0, 255, 255, 0.3),
        0 0 0 8px rgba(0, 255, 255, 0.15);
        
    image-rendering: pixelated;
    animation: multipliersSectionGlow 6s ease-in-out infinite;
}

@keyframes multipliersSectionGlow {
    0%, 100% {
        filter: brightness(1) contrast(1) saturate(1);
        transform: scale(1);
    }
    25% {
        filter: brightness(1.05) contrast(1.1) saturate(1.1);
        transform: scale(1.001);
    }
    50% {
        filter: brightness(1.1) contrast(1.15) saturate(1.2);
        transform: scale(1.002);
    }
    75% {
        filter: brightness(1.05) contrast(1.1) saturate(1.1);
        transform: scale(1.001);
    }
}

.multipliers-title {
    font-family: var(--pixel-font);
    font-size: 18px;
    color: var(--pixel-cyan);
    margin-bottom: 25px;
    text-shadow: 
        
        1px 0 0 var(--pixel-cyan),
        0 1px 0 var(--pixel-cyan),
        1px 1px 0 var(--pixel-cyan),
        2px 0 0 var(--pixel-black),
        0 2px 0 var(--pixel-black),
        2px 2px 0 var(--pixel-black),
        3px 3px 0 rgba(0, 0, 0, 0.8),
        
        0 0 15px var(--pixel-cyan),
        0 0 30px rgba(0, 255, 255, 0.6);
    image-rendering: pixelated;
    animation: multipliersTitleGlow 4s ease-in-out infinite;
}

@keyframes multipliersTitleGlow {
    0%, 100% {
        text-shadow: 
            1px 0 0 var(--pixel-cyan),
            0 1px 0 var(--pixel-cyan),
            1px 1px 0 var(--pixel-cyan),
            2px 0 0 var(--pixel-black),
            0 2px 0 var(--pixel-black),
            2px 2px 0 var(--pixel-black),
            3px 3px 0 rgba(0, 0, 0, 0.8),
            0 0 15px var(--pixel-cyan),
            0 0 30px rgba(0, 255, 255, 0.6);
    }
    50% {
        text-shadow: 
            1px 0 0 var(--pixel-cyan),
            0 1px 0 var(--pixel-cyan),
            1px 1px 0 var(--pixel-cyan),
            2px 0 0 var(--pixel-black),
            0 2px 0 var(--pixel-black),
            2px 2px 0 var(--pixel-black),
            3px 3px 0 rgba(0, 0, 0, 0.8),
            0 0 25px var(--pixel-cyan),
            0 0 50px rgba(0, 255, 255, 0.8),
            0 0 75px rgba(100, 255, 255, 0.4);
    }
}

.multipliers-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    justify-items: center;
    align-items: center;
}

.multiplier-item {
    font-family: var(--pixel-font);
    font-size: 18px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 0;
    text-align: center;
    border: 2px solid #333333;
    background: #FFFFFF;
    color: #000000;
    
    text-shadow: none;
    
    transition: all 0.3s ease;
    image-rendering: pixelated;
    position: relative;
    overflow: hidden;
}

.multiplier-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.multiplier-item.lose {
    color: #000000;
    background: #FFCCCC;
    border-color: #CC0000;
}

.multiplier-item.neutral {
    color: #000000;
    background: #FFFFFF;
    border-color: #666666;
}

.multiplier-item.small-win {
    color: #000000;
    background: #FFFFCC;
    border-color: #CCCC00;
}

.multiplier-item.big-win {
    color: #000000;
    background: #CCFFCC;
    border-color: #00CC00;
}

.multiplier-item.jackpot {
    color: #000000;
    background: #FFCCFF;
    border-color: #CC00CC;
}


@keyframes loseItemPulse {
    0%, 100% {
        filter: brightness(1) hue-rotate(0deg);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.1) hue-rotate(5deg);
        transform: scale(1.01);
    }
}

@keyframes smallWinGlow {
    0%, 100% {
        filter: brightness(1) hue-rotate(0deg) saturate(1);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8);
    }
    50% {
        filter: brightness(1.15) hue-rotate(10deg) saturate(1.2);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8),
            0 0 8px currentColor;
    }
}

@keyframes bigWinGlow {
    0%, 100% {
        filter: brightness(1) hue-rotate(0deg) saturate(1);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8);
    }
    33% {
        filter: brightness(1.2) hue-rotate(5deg) saturate(1.3);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8),
            0 0 12px currentColor;
    }
    66% {
        filter: brightness(1.1) hue-rotate(-5deg) saturate(1.1);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8),
            0 0 6px currentColor;
    }
}

@keyframes jackpotEpicGlow {
    0% {
        filter: brightness(1) hue-rotate(0deg) saturate(1.5);
        transform: scale(1);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8);
    }
    25% {
        filter: brightness(1.3) hue-rotate(90deg) saturate(2);
        transform: scale(1.02);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8),
            0 0 15px currentColor,
            0 0 30px rgba(255, 68, 255, 0.6);
    }
    50% {
        filter: brightness(1.4) hue-rotate(180deg) saturate(2.5);
        transform: scale(1.04);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8),
            0 0 20px currentColor,
            0 0 40px rgba(68, 255, 255, 0.8);
    }
    75% {
        filter: brightness(1.3) hue-rotate(270deg) saturate(2);
        transform: scale(1.02);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8),
            0 0 15px currentColor,
            0 0 30px rgba(255, 255, 68, 0.6);
    }
    100% {
        filter: brightness(1) hue-rotate(360deg) saturate(1.5);
        transform: scale(1);
        box-shadow: 
            0 0 0 2px currentColor,
            2px 0 0 2px currentColor,
            0 2px 0 2px currentColor,
            2px 2px 0 2px currentColor,
            -2px 0 0 2px currentColor,
            0 -2px 0 2px currentColor,
            -2px -2px 0 2px currentColor,
            -2px 2px 0 2px currentColor,
            2px -2px 0 2px currentColor,
            3px 3px 0 0 rgba(0, 0, 0, 0.8);
    }
}




.roll-loading-section {
    padding: 20px;
    text-align: center;
    animation: pixelSectionAppear 0.6s ease-out forwards;
    max-width: 400px;
    margin: 0 auto;
}

.pixel-loading-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    background: rgba(0, 255, 255, 0.05);
    animation: rollLoadingPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.pixel-loading-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 255, 255, 0.1) 90deg,
        transparent 180deg,
        rgba(0, 255, 255, 0.05) 270deg,
        transparent 360deg
    );
    animation: rollLoadingSpin 4s linear infinite;
    pointer-events: none;
}

@keyframes rollLoadingPulse {
    0%, 100% {
        box-shadow: 
            0 0 10px rgba(0, 255, 255, 0.3),
            0 0 20px rgba(0, 255, 255, 0.1),
            inset 0 0 20px rgba(0, 255, 255, 0.05);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.6),
            0 0 40px rgba(0, 255, 255, 0.3),
            inset 0 0 40px rgba(0, 255, 255, 0.1);
        transform: scale(1.02);
    }
}

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

@keyframes loadingPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        transform: scale(1.02);
    }
}

.pixel-loading-icon {
    font-size: 48px;
    animation: loadingIconSpin 2s linear infinite;
}

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

.pixel-loading-text {
    text-align: center;
}

.pixel-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.pixel-dots .dot {
    font-size: 16px;
    animation: dotBlink 1.5s ease-in-out infinite;
}

.pixel-dots .dot:nth-child(1) { animation-delay: 0s; }
.pixel-dots .dot:nth-child(2) { animation-delay: 0.5s; }
.pixel-dots .dot:nth-child(3) { animation-delay: 1s; }

@keyframes dotBlink {
    0%, 80%, 100% {
        opacity: 0.3;
        color: var(--pixel-gray);
    }
    40% {
        opacity: 1;
        color: var(--pixel-cyan);
    }
}

.pixel-progress-container {
    width: 100%;
    max-width: 300px;
}

.pixel-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.loading-line {
    font-family: var(--pixel-font);
    font-size: 16px;
    color: var(--pixel-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.pixel-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pixel-cyan), var(--pixel-green));
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    
    
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(255, 255, 255, 0.2) 2px,
        transparent 4px
    );
    animation: progressShimmer 1s linear infinite;
}

#loadingProgressFill {
    height: 100%;
    background: linear-gradient(90deg, var(--pixel-cyan), var(--pixel-green));
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    
    background-image: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(255, 255, 255, 0.2) 2px,
        transparent 4px
    );
    animation: progressShimmer 1s linear infinite;
}

@keyframes progressShimmer {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}


.roll-card-section {
    padding: 20px;
    text-align: center;
    animation: pixelSectionAppear 0.6s ease-out forwards;
    max-width: 400px;
    margin: 0 auto;
}

.pixel-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.pixel-mystery-card {
    width: 250px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    animation: rollCardEntrance 1.2s ease-out;
    perspective: 1000px;
    margin: 0 auto;
}

@keyframes rollCardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(-180deg) rotateX(-45deg);
        filter: blur(10px);
    }
    25% {
        opacity: 0.3;
        transform: scale(0.6) rotateY(-135deg) rotateX(-30deg);
        filter: blur(5px);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.8) rotateY(-90deg) rotateX(-15deg);
        filter: blur(2px);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.05) rotateY(-45deg) rotateX(0deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) rotateX(0deg);
        filter: blur(0);
    }
}

.pixel-mystery-card:hover {
    animation: cardHoverFloat 2s ease-in-out infinite;
}

@keyframes cardHoverFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    }
    50% { 
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0, 255, 255, 0.5);
    }
}


@media (hover: none) and (pointer: coarse) {
    .pixel-mystery-card:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .pixel-btn-large:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .multiplier-pixel:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

@keyframes pixelCardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.pixel-mystery-card.flipped {
    transform: rotateY(180deg);
}

.pixel-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 3px solid var(--pixel-cyan);
    border-radius: 0;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pixel-card-back {
    transform: rotateY(180deg);
}

.pixel-card-front {
    z-index: 2;
}

.pixel-card-back {
    z-index: 1;
}


.lose-text { color: var(--pixel-red) !important; }
.lose-amount { color: var(--pixel-red) !important; }
.lose-bg { background: rgba(255, 0, 0, 0.1) !important; }

.neutral-text { color: var(--pixel-gray) !important; }
.neutral-amount { color: var(--pixel-gray) !important; }
.neutral-bg { background: rgba(128, 128, 128, 0.1) !important; }

.win-text { color: var(--pixel-green) !important; }
.win-amount { color: var(--pixel-green) !important; }
.win-bg { background: rgba(0, 255, 0, 0.1) !important; }

.jackpot-text { 
    color: #FF00FF !important; 
    animation: jackpotTextGlow 1s ease-in-out infinite;
}
.jackpot-amount { 
    color: #FF00FF !important; 
    animation: jackpotAmountPulse 1.5s ease-in-out infinite;
}
.jackpot-bg { 
    background: rgba(255, 0, 255, 0.15) !important; 
    animation: jackpotBgGlow 2s ease-in-out infinite;
}

@keyframes jackpotTextGlow {
    0%, 100% {
        text-shadow: 0 0 10px #FF00FF;
    }
    50% {
        text-shadow: 0 0 20px #FF00FF, 0 0 30px #FF00FF;
    }
}

@keyframes jackpotAmountPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 15px #FF00FF;
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 25px #FF00FF, 0 0 35px #FF00FF;
    }
}

@keyframes jackpotBgGlow {
    0%, 100% {
        background: rgba(255, 0, 255, 0.15) !important;
        box-shadow: inset 0 0 20px rgba(255, 0, 255, 0.2);
    }
    50% {
        background: rgba(255, 0, 255, 0.25) !important;
        box-shadow: inset 0 0 40px rgba(255, 0, 255, 0.4);
    }
}

.pixel-card-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--pixel-cyan), var(--pixel-green)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: pixelBorderGlow 2s ease-in-out infinite;
}

@keyframes pixelBorderGlow {
    0%, 100% {
        background: linear-gradient(45deg, var(--pixel-cyan), var(--pixel-green));
    }
    50% {
        background: linear-gradient(45deg, var(--pixel-green), var(--pixel-yellow));
    }
}

.pixel-card-content {
    text-align: center;
    padding: 20px;
}

.pixel-click-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: clickIconBounce 2s ease-in-out infinite;
}

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

.pixel-click-text {
    font-family: var(--pixel-font);
    font-size: 24px;
    color: var(--pixel-cyan);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.pixel-click-hint {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pixel-result-content {
    text-align: center;
    padding: 20px;
}

.pixel-result-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: resultIconPulse 1s ease-in-out;
}

@keyframes resultIconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pixel-result-text {
    font-family: var(--pixel-font);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: resultTextAppear 0.8s ease-out 0.3s both;
}

@keyframes resultTextAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pixel-result-amount {
    font-family: var(--pixel-font);
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px currentColor;
    animation: resultAmountAppear 0.8s ease-out 0.6s both;
}

@keyframes resultAmountAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pixel-card-details {
    margin-top: 20px;
    padding: 30px;
    border: 2px solid var(--pixel-cyan);
    border-radius: 0;
    background: rgba(0, 255, 255, 0.05);
    animation: cardDetailsAppear 0.8s ease-out;
    max-width: 400px;
    width: 100%;
}

@keyframes cardDetailsAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.play-again-btn {
    margin-top: 20px;
    background: linear-gradient(45deg, var(--pixel-green), var(--pixel-yellow)) !important;
    border-color: var(--pixel-green) !important;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    
    
    border: none;
    box-shadow: 
        
        0 0 0 2px #00FFFF,
        2px 0 0 2px #00FFFF,
        0 2px 0 2px #00FFFF,
        2px 2px 0 2px #00FFFF,
        -2px 0 0 2px #00FFFF,
        0 -2px 0 2px #00FFFF,
        -2px -2px 0 2px #00FFFF,
        -2px 2px 0 2px #00FFFF,
        2px -2px 0 2px #00FFFF,
        
        
        0 0 0 4px rgba(0, 255, 255, 0.8),
        0 0 0 6px rgba(0, 255, 255, 0.4),
        0 0 0 8px rgba(0, 255, 255, 0.2),
        
        
        8px 8px 0 0 rgba(0, 0, 0, 0.8),
        10px 10px 0 0 rgba(0, 0, 0, 0.6),
        12px 12px 0 0 rgba(0, 0, 0, 0.4);
}

.card-front {
    background: 
        
        repeating-conic-gradient(from 0deg at 50% 50%, 
            #001122 0deg 90deg, 
            #002244 90deg 180deg,
            #003366 180deg 270deg,
            #001122 270deg 360deg
        ),
        
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 4px,
            rgba(0, 255, 255, 0.1) 4px,
            rgba(0, 255, 255, 0.1) 8px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 4px,
            rgba(0, 255, 255, 0.15) 4px,
            rgba(0, 255, 255, 0.15) 8px
        ),
        
        radial-gradient(circle at 30% 30%, 
            rgba(0, 60, 100, 0.9) 0%,
            rgba(0, 40, 80, 0.95) 50%,
            rgba(0, 20, 40, 0.98) 100%
        );
    background-size: 16px 16px, 8px 8px, 8px 8px, 100% 100%;
    animation: cardFrontGlow 3s ease-in-out infinite;
}

@keyframes cardFrontGlow {
    0%, 100% {
        border-color: var(--pixel-cyan);
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.5),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
    50% {
        border-color: var(--pixel-magenta);
        box-shadow: 
            0 0 50px rgba(255, 0, 255, 0.8),
            0 20px 60px rgba(0, 0, 0, 0.4);
    }
}

.card-back {
    background: 
        
        repeating-conic-gradient(from 45deg at 50% 50%, 
            rgba(40, 60, 40, 0.8) 0deg 45deg, 
            rgba(60, 80, 60, 0.85) 45deg 90deg,
            rgba(80, 100, 80, 0.8) 90deg 135deg,
            rgba(100, 120, 100, 0.85) 135deg 180deg,
            rgba(80, 100, 80, 0.8) 180deg 225deg,
            rgba(60, 80, 60, 0.85) 225deg 270deg,
            rgba(40, 60, 40, 0.8) 270deg 315deg,
            rgba(20, 40, 20, 0.85) 315deg 360deg
        ),
        
        radial-gradient(circle at 25% 25%, rgba(0, 255, 0, 0.4) 1px, transparent 2px),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 0, 0.3) 1px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(0, 255, 0, 0.35) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 0, 0.25) 1px, transparent 2px),
        
        linear-gradient(135deg, 
            rgba(40, 80, 40, 0.85) 0%,
            rgba(80, 120, 80, 0.9) 50%,
            rgba(40, 80, 40, 0.85) 100%
        );
    background-size: 12px 12px, 8px 8px, 8px 8px, 8px 8px, 8px 8px, 100% 100%;
    
    transform: rotateY(180deg);
    z-index: 5;
    backface-visibility: hidden;
    
    
    box-shadow: 
        0 0 0 2px #00FF00,
        2px 0 0 2px #00FF00,
        0 2px 0 2px #00FF00,
        2px 2px 0 2px #00FF00,
        -2px 0 0 2px #00FF00,
        0 -2px 0 2px #00FF00,
        -2px -2px 0 2px #00FF00,
        -2px 2px 0 2px #00FF00,
        2px -2px 0 2px #00FF00,
        0 0 0 4px rgba(0, 255, 0, 0.8),
        0 0 0 6px rgba(0, 255, 0, 0.4),
        8px 8px 0 0 rgba(0, 0, 0, 0.6);
}

.card-back.lose {
    background: 
        
        repeating-conic-gradient(from 0deg at 50% 50%, 
            rgba(120, 40, 40, 0.8) 0deg 45deg, 
            rgba(160, 60, 60, 0.85) 45deg 90deg,
            rgba(200, 80, 80, 0.8) 90deg 135deg,
            rgba(240, 100, 100, 0.85) 135deg 180deg,
            rgba(200, 80, 80, 0.8) 180deg 225deg,
            rgba(160, 60, 60, 0.85) 225deg 270deg,
            rgba(120, 40, 40, 0.8) 270deg 315deg,
            rgba(80, 20, 20, 0.85) 315deg 360deg
        ),
        
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 6px,
            rgba(255, 0, 0, 0.4) 6px,
            rgba(255, 0, 0, 0.4) 8px,
            transparent 8px,
            transparent 14px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent 0px,
            transparent 6px,
            rgba(255, 100, 100, 0.3) 6px,
            rgba(255, 100, 100, 0.3) 8px,
            transparent 8px,
            transparent 14px
        ),
        
        linear-gradient(135deg, 
            rgba(120, 40, 40, 0.85) 0%,
            rgba(200, 80, 80, 0.9) 50%,
            rgba(120, 40, 40, 0.85) 100%
        );
    background-size: 12px 12px, 16px 16px, 16px 16px, 100% 100%;
    
    
    box-shadow: 
        0 0 0 2px #FF0000,
        2px 0 0 2px #FF0000,
        0 2px 0 2px #FF0000,
        2px 2px 0 2px #FF0000,
        -2px 0 0 2px #FF0000,
        0 -2px 0 2px #FF0000,
        -2px -2px 0 2px #FF0000,
        -2px 2px 0 2px #FF0000,
        2px -2px 0 2px #FF0000,
        0 0 0 4px rgba(255, 0, 0, 0.8),
        0 0 0 6px rgba(255, 0, 0, 0.4),
        8px 8px 0 0 rgba(0, 0, 0, 0.6);
}

.card-back.neutral {
    background: 
        
        repeating-conic-gradient(from 30deg at 50% 50%, 
            #444400 0deg 60deg, 
            #666600 60deg 120deg,
            #888800 120deg 180deg,
            #AAAA00 180deg 240deg,
            #888800 240deg 300deg,
            #666600 300deg 360deg
        ),
        
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 0, 0.2) 0px,
            rgba(255, 255, 0, 0.2) 4px,
            transparent 4px,
            transparent 8px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 100, 0.15) 0px,
            rgba(255, 255, 100, 0.15) 4px,
            transparent 4px,
            transparent 8px
        ),
        
        linear-gradient(135deg, 
            rgba(40, 40, 0, 0.95) 0%,
            rgba(80, 80, 0, 0.95) 50%,
            rgba(40, 40, 0, 0.95) 100%
        );
    background-size: 12px 12px, 12px 12px, 12px 12px, 100% 100%;
    
    
    box-shadow: 
        0 0 0 2px #FFFF00,
        2px 0 0 2px #FFFF00,
        0 2px 0 2px #FFFF00,
        2px 2px 0 2px #FFFF00,
        -2px 0 0 2px #FFFF00,
        0 -2px 0 2px #FFFF00,
        -2px -2px 0 2px #FFFF00,
        -2px 2px 0 2px #FFFF00,
        2px -2px 0 2px #FFFF00,
        0 0 0 4px rgba(255, 255, 0, 0.8),
        0 0 0 6px rgba(255, 255, 0, 0.4),
        8px 8px 0 0 rgba(0, 0, 0, 0.8);
}

.card-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.click-icon {
    font-size: 120px;
    margin-bottom: 25px;
    animation: clickIconBounce 2s ease-in-out infinite;
}

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

.click-text {
    font-family: var(--pixel-font);
    font-size: 60px;
    color: var(--pixel-cyan);
    margin-bottom: 20px;
    text-shadow: 
        
        2px 0 0 var(--pixel-cyan),
        0 2px 0 var(--pixel-cyan),
        2px 2px 0 var(--pixel-cyan),
        4px 0 0 var(--pixel-black),
        0 4px 0 var(--pixel-black),
        4px 4px 0 var(--pixel-black),
        6px 6px 0 rgba(0, 0, 0, 0.8),
        
        0 0 30px var(--pixel-cyan),
        0 0 50px rgba(0, 255, 255, 0.5);
    animation: clickTextPulse 2s ease-in-out infinite;
    image-rendering: pixelated;
    filter: 
        drop-shadow(2px 2px 0 var(--pixel-black))
        drop-shadow(0 0 10px var(--pixel-cyan));
}

@keyframes clickTextPulse {
    0%, 100% { 
        text-shadow: 
            0 0 30px var(--pixel-cyan),
            3px 3px 0 var(--pixel-black);
    }
    50% { 
        text-shadow: 
            0 0 50px var(--pixel-cyan),
            0 0 80px var(--pixel-magenta),
            3px 3px 0 var(--pixel-black);
    }
}

.click-hint {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--pixel-white);
    opacity: 0.8;
    animation: clickHintFade 3s ease-in-out infinite;
}

@keyframes clickHintFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(0, 255, 255, 0.1) 0%, 
        transparent 70%);
    animation: cardGlowRotate 4s linear infinite;
    z-index: 1;
}

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

.card-back .result-content {
    text-align: center;
    z-index: 100;
    position: relative;
    animation: resultReveal 0.8s ease-out;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    
    transform: rotateY(180deg);
}

.pixel-mystery-card.flipped .pixel-card-back .pixel-result-content {
    opacity: 1;
    visibility: visible;
    z-index: 1000;
}

.pixel-mystery-card.flipped .pixel-result-icon,
.pixel-mystery-card.flipped .pixel-result-text,
.pixel-mystery-card.flipped .pixel-result-amount {
    opacity: 1;
    visibility: visible;
    display: block;
    z-index: 1001;
}

.pixel-mystery-card.flipped .pixel-card-front {
    z-index: 1;
}

.pixel-mystery-card.flipped .pixel-card-back {
    z-index: 10;
}

@keyframes resultReveal {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.result-icon {
    font-size: 120px;
    margin-bottom: 25px;
    animation: resultIconSpin 1.5s ease-out;
    z-index: 10;
    position: relative;
    display: block;
}

@keyframes resultIconSpin {
    0% { 
        transform: scale(0) rotate(-360deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(-180deg);
        opacity: 0.8;
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.result-text {
    font-family: var(--pixel-font);
    font-size: 40px;
    color: var(--pixel-green);
    margin-bottom: 20px;
    text-shadow: 
        
        2px 0 0 currentColor,
        0 2px 0 currentColor,
        2px 2px 0 currentColor,
        4px 0 0 var(--pixel-black),
        0 4px 0 var(--pixel-black),
        4px 4px 0 var(--pixel-black),
        6px 6px 0 rgba(0, 0, 0, 0.8),
        
        0 0 30px currentColor,
        0 0 50px currentColor;
    animation: resultTextGlow 2s ease-in-out infinite;
    z-index: 10;
    position: relative;
    display: block;
    image-rendering: pixelated;
    filter: 
        drop-shadow(2px 2px 0 var(--pixel-black))
        drop-shadow(0 0 15px currentColor);
}

.result-text.lose {
    color: var(--pixel-red);
}

.result-text.neutral {
    color: var(--pixel-yellow);
}

@keyframes resultTextGlow {
    0%, 100% { 
        text-shadow: 
            0 0 30px currentColor,
            3px 3px 0 var(--pixel-black);
    }
    50% { 
        text-shadow: 
            0 0 50px currentColor,
            0 0 80px currentColor,
            3px 3px 0 var(--pixel-black);
    }
}

.result-amount {
    font-family: var(--pixel-font);
    font-size: 50px;
    color: var(--pixel-green);
    font-weight: bold;
    text-shadow: 
        
        3px 0 0 currentColor,
        0 3px 0 currentColor,
        3px 3px 0 currentColor,
        6px 0 0 var(--pixel-black),
        0 6px 0 var(--pixel-black),
        6px 6px 0 var(--pixel-black),
        9px 9px 0 rgba(0, 0, 0, 0.8),
        
        0 0 40px currentColor,
        0 0 80px currentColor,
        0 0 120px rgba(255, 255, 255, 0.3);
    animation: resultAmountPulse 1.5s ease-in-out infinite;
    z-index: 10;
    position: relative;
    display: block;
    image-rendering: pixelated;
    filter: 
        drop-shadow(3px 3px 0 var(--pixel-black))
        drop-shadow(0 0 20px currentColor)
        drop-shadow(0 0 40px currentColor);
}

.result-amount.lose {
    color: var(--pixel-red);
}

.result-amount.neutral {
    color: var(--pixel-yellow);
}

@keyframes resultAmountPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 0 40px currentColor,
            4px 4px 0 var(--pixel-black);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 
            0 0 60px currentColor,
            0 0 100px currentColor,
            4px 4px 0 var(--pixel-black);
    }
}

.card-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 10% 60%, rgba(255, 255, 255, 0.6) 2px, transparent 2px);
    background-size: 
        50px 50px,
        30px 30px,
        40px 40px,
        60px 60px,
        35px 35px;
    animation: sparklesTwinkle 3s ease-in-out infinite;
}

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

.card-details {
    margin-top: 20px;
    animation: detailsSlideUp 0.8s ease-out;
}

@keyframes detailsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
    background: 
        
        repeating-conic-gradient(from 0deg at 50% 50%, 
            #111111 0deg 90deg, 
            #222222 90deg 180deg,
            #333333 180deg 270deg,
            #111111 270deg 360deg
        ),
        
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 1px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.05) 1px, transparent 2px),
        rgba(0, 0, 0, 0.8);
    background-size: 8px 8px, 4px 4px, 4px 4px, 100% 100%;
    padding: 20px;
    border-radius: 0;
    border: none;
    
    
    box-shadow: 
        0 0 0 2px var(--pixel-gray),
        2px 0 0 2px var(--pixel-gray),
        0 2px 0 2px var(--pixel-gray),
        2px 2px 0 2px var(--pixel-gray),
        -2px 0 0 2px var(--pixel-gray),
        0 -2px 0 2px var(--pixel-gray),
        -2px -2px 0 2px var(--pixel-gray),
        -2px 2px 0 2px var(--pixel-gray),
        2px -2px 0 2px var(--pixel-gray),
        4px 4px 0 0 rgba(0, 0, 0, 0.6);
        
    image-rendering: pixelated;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
}

.detail-label {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-white);
    opacity: 0.8;
}

.detail-value {
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: bold;
    color: var(--pixel-cyan);
}

.card-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.card-actions .pixel-btn {
    padding: 14px 28px;
    font-size: 14px;
    font-family: var(--pixel-font);
    background: 
        
        repeating-conic-gradient(from 0deg at 50% 50%, 
            #003333 0deg 90deg, 
            #004444 90deg 180deg,
            #005555 180deg 270deg,
            #003333 270deg 360deg
        ),
        
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.2) 0px,
            rgba(0, 255, 255, 0.2) 2px,
            transparent 2px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 255, 0.15) 0px,
            rgba(0, 255, 255, 0.15) 2px,
            transparent 2px,
            transparent 4px
        );
    background-size: 8px 8px, 4px 4px, 4px 4px;
    border: none;
    border-radius: 0;
    
    
    box-shadow: 
        0 0 0 2px #00FFFF,
        2px 0 0 2px #00FFFF,
        0 2px 0 2px #00FFFF,
        2px 2px 0 2px #00FFFF,
        -2px 0 0 2px #00FFFF,
        0 -2px 0 2px #00FFFF,
        -2px -2px 0 2px #00FFFF,
        -2px 2px 0 2px #00FFFF,
        2px -2px 0 2px #00FFFF,
        4px 4px 0 0 rgba(0, 0, 0, 0.8);
    
    image-rendering: pixelated;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 0 #000;
}

.card-actions .pixel-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 
        0 0 0 2px #00FFFF,
        2px 0 0 2px #00FFFF,
        0 2px 0 2px #00FFFF,
        2px 2px 0 2px #00FFFF,
        -2px 0 0 2px #00FFFF,
        0 -2px 0 2px #00FFFF,
        -2px -2px 0 2px #00FFFF,
        -2px 2px 0 2px #00FFFF,
        2px -2px 0 2px #00FFFF,
        6px 6px 0 0 rgba(0, 0, 0, 0.8),
        0 0 0 4px rgba(0, 255, 255, 0.6);
}

.card-actions .pixel-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 
        0 0 0 2px #00FFFF,
        1px 0 0 2px #00FFFF,
        0 1px 0 2px #00FFFF,
        1px 1px 0 2px #00FFFF,
        2px 2px 0 0 rgba(0, 0, 0, 0.8);
}

.roulette-wheel-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.roulette-wheel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, transparent 60%, rgba(0, 255, 255, 0.1) 65%, transparent 70%),
        radial-gradient(circle at center, transparent 70%, rgba(0, 255, 255, 0.05) 75%, transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.roulette-wheel {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 8px solid #000000;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 3px var(--pixel-cyan),
        0 0 0 6px #000000,
        0 0 0 8px var(--pixel-cyan),
        0 0 0 10px #000000;
    background: 
        radial-gradient(circle at center, #2a2a2a 0%, #1a1a1a 70%, #000000 100%);
}


.wheel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #000000 100%);
    border-radius: 50%;
    color: var(--pixel-cyan);
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
}

.wheel-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--pixel-cyan));
    animation: pulse 2s ease-in-out infinite;
}

.wheel-text {
    font-family: var(--pixel-font);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.wheel-subtext {
    font-family: var(--pixel-font);
    font-size: 14px;
    opacity: 0.8;
    text-shadow: 1px 1px 0 #000;
}

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

.wheel-segments {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}
.wheel-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}


.wheel-segments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
        
        linear-gradient(0deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(30deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(60deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(90deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(120deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(150deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(180deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(210deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(240deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(270deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(300deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%),
        linear-gradient(330deg, transparent 49.5%, rgba(0,0,0,0.8) 50%, transparent 50.5%);
    pointer-events: none;
    z-index: 5;
}


.spinning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    animation: fadeIn 0.3s ease-out;
}

.spinning-content {
    text-align: center;
    color: var(--pixel-cyan);
}

.spinning-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.spinning-text {
    font-family: var(--pixel-font);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #000;
}

.spinning-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.spinning-dots span {
    width: 8px;
    height: 8px;
    background: var(--pixel-cyan);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinning-dots span:nth-child(1) { animation-delay: -0.32s; }
.spinning-dots span:nth-child(2) { animation-delay: -0.16s; }

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

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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


.pixel-card-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pixelCardCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 255, 255, 0.1);
    z-index: 1;
}

.pixel-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--pixel-cyan);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

@keyframes cardGlow {
    0% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.5),
            inset 0 0 20px rgba(0, 255, 255, 0.1);
        transform: scale(1) rotate(0deg);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.8),
            inset 0 0 40px rgba(0, 255, 255, 0.3);
        transform: scale(1.02) rotate(0.5deg);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.8),
            inset 0 0 30px rgba(0, 255, 255, 0.2);
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================
   УВЕДОМЛЕНИЕ О НЕОПЛАЧЕННОМ ПЛАТЕЖЕ
   ============================================ */

.pending-payment-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100020;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pending-payment-notification.show {
    opacity: 1;
    pointer-events: all;
}

.pending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.pending-modal {
    position: relative;
    width: 500px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 10, 20, 0.95));
    border: 2px solid var(--pixel-cyan);
    border-radius: 12px;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 100, 0, 0.1));
    border-bottom: 2px solid rgba(255, 165, 0, 0.4);
    position: relative;
}

.pending-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffa500, transparent);
    animation: headerGlow 2s ease-in-out infinite;
}

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

.pending-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pending-icon-pulse {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #ffa500;
    border-radius: 8px;
    color: #ffa500;
    font-size: 22px;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(255, 165, 0, 0.6);
    }
}

.pending-title {
    font-family: var(--pixel-font);
    font-size: 18px;
    font-weight: bold;
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    letter-spacing: 1px;
    margin: 0;
}

.pending-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--pixel-font);
}

.pending-close:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: #ff6666;
    color: #ff6666;
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 100, 100, 0.3);
}

.pending-body {
    padding: 30px 25px;
}

.pending-amount-block {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pending-amount-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.amount-label {
    font-size: 13px;
    color: var(--pixel-gray-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    font-family: var(--pixel-font);
    line-height: 1;
}

.amount-value .currency {
    font-size: 32px;
    margin-left: 5px;
    opacity: 0.8;
}

.pending-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-label {
    color: var(--pixel-gray-light);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--pixel-cyan);
    font-weight: bold;
    font-family: var(--pixel-font);
}

.pending-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 25px 25px;
}

.pending-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid;
    border-radius: 8px;
    font-family: var(--pixel-font);
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pending-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.pending-btn:hover::before {
    width: 300px;
    height: 300px;
}

.pending-btn i {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.pending-btn span {
    position: relative;
    z-index: 1;
}

.pending-btn.pay-btn {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.pending-btn.pay-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    transform: translateY(-3px);
}

.pending-btn.check-btn {
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
    background: rgba(0, 255, 255, 0.1);
}

.pending-btn.check-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-3px);
}

.pending-btn.cancel-btn {
    border-color: #ff6666;
    color: #ff6666;
    background: rgba(255, 102, 102, 0.1);
}

.pending-btn.cancel-btn:hover {
    background: rgba(255, 102, 102, 0.2);
    border-color: #ff6666;
    box-shadow: 0 0 20px rgba(255, 102, 102, 0.4);
    transform: translateY(-3px);
}

.pending-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pixel-cyan), transparent);
    animation: scanlineMove 3s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(500px); }
}

.pending-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: glowRotate 10s linear infinite;
    pointer-events: none;
}

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


.history-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.history-actions .pixel-btn.small {
    padding: 6px 12px;
    font-size: 12px;
    min-width: auto;
    flex: 1;
}

.history-actions .pixel-btn.primary {
    background: linear-gradient(135deg, #00ffff, #0088cc);
    border-color: #00ffff;
    color: #000;
    font-weight: bold;
}

.history-actions .pixel-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    border-color: #6c757d;
}

@keyframes scanline {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(400px); }
}

@media (max-width: 768px) {
    .pending-modal {
        max-width: 95%;
        margin: 0 10px;
    }
    
    .pending-header {
        padding: 15px 20px;
    }
    
    .pending-icon-pulse {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .pending-title {
        font-size: 16px;
    }
    
    .pending-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .pending-body {
        padding: 20px 20px;
    }
    
    .pending-amount-block {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .amount-value {
        font-size: 40px;
    }
    
    .amount-value .currency {
        font-size: 28px;
    }
    
    .pending-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 20px 20px;
    }
    
    .pending-btn {
        flex-direction: row;
        justify-content: center;
        padding: 15px 20px;
        font-size: 13px;
    }
    
    .pending-btn i {
        font-size: 18px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .pending-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .pending-title {
        font-size: 14px;
    }
    
    .pending-icon-pulse {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .amount-value {
        font-size: 36px;
    }
    
    .amount-value .currency {
        font-size: 24px;
    }
    
    .notification-actions .pixel-btn .btn-text {
        display: block;
        font-size: 14px;
        line-height: 1;
    }
    
    .notification-actions .pixel-btn {
        white-space: normal;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .notification-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .notification-actions .pixel-btn {
        flex: none;
        min-width: auto;
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .notification-actions .pixel-btn .btn-icon {
        display: inline;
        margin: 0 5px 0 0;
        font-size: 12px;
    }
    
    .notification-actions .pixel-btn .btn-text {
        display: inline;
    }
}


.pixel-card-content {
    animation: cardEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1), cardGlow 2s ease-in-out infinite alternate;
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(2deg);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
}


#pixelCardCanvas {
    animation: canvasPulse 3s ease-in-out infinite;
}

@keyframes canvasPulse {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    50% {
        filter: brightness(1.2) contrast(1.1);
    }
}


.result-details {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.detail-label {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: var(--pixel-white);
    opacity: 0.8;
}

.detail-value {
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: bold;
    color: var(--pixel-cyan);
}


.multipliers-info {
    margin-top: 20px;
}

.multipliers-title {
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: bold;
    color: var(--pixel-cyan);
    margin-bottom: 15px;
    text-align: center;
}

.multipliers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.multiplier-item {
    font-family: var(--pixel-font);
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.multiplier-item.lose {
    color: #FF1744;
    border-color: rgba(255, 23, 68, 0.5);
}

.multiplier-item.break-even {
    color: #9E9E9E;
    border-color: rgba(158, 158, 158, 0.5);
}

.multiplier-item.small-win {
    color: #FFD600;
    border-color: rgba(255, 214, 0, 0.5);
}

.multiplier-item.big-win {
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.5);
}

.multiplier-item.jackpot {
    color: #E91E63;
    border-color: rgba(233, 30, 99, 0.5);
}

.multipliers-note {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: var(--pixel-white);
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}


.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 4s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}


.segment-label {
    position: absolute;
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.95);
    padding: 3px 6px;
    border-radius: 3px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #000000;
    transform-origin: center center;
    will-change: transform;
    white-space: nowrap;
    z-index: 20;
    text-align: center;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000;
    white-space: nowrap;
    user-select: none;
    z-index: 15;
    transform-origin: center center;
    margin-top: -12px;
    margin-left: -20px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.segment-label.lose {
    color: #FFB3BA;
    border-color: #FF1744;
    background: rgba(255, 23, 68, 0.15);
}

.segment-label.break-even {
    color: #FFFFFF;
    border-color: #9E9E9E;
    background: rgba(158, 158, 158, 0.15);
}

.segment-label.small-win {
    color: #FFF176;
    border-color: #FFD600;
    background: rgba(255, 214, 0, 0.15);
}

.segment-label.big-win {
    color: #A5D6A7;
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.segment-label.jackpot {
    color: #F8BBD9;
    border-color: #E91E63;
    background: rgba(233, 30, 99, 0.2);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(233, 30, 99, 0.3);
}


.segment-winnings {
    font-family: var(--pixel-font);
    font-size: 14px;
    color: #FFD700;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
    text-align: center;
    margin-top: 2px;
}





.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--pixel-cyan);
    z-index: 25;
    filter: drop-shadow(2px 2px 0 #000) drop-shadow(-2px -2px 0 #000) 
            drop-shadow(2px -2px 0 #000) drop-shadow(-2px 2px 0 #000);
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    top: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 20px solid #FFFFFF;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle at 30% 30%, #FFFFFF 0%, #00FFFF 30%, #0099CC 70%, #006699 100%),
        conic-gradient(from 0deg, #00FFFF 0deg, #0099CC 120deg, #006699 240deg, #00FFFF 360deg);
    border-radius: 50%;
    border: 4px solid #000000;
    box-shadow: 
        0 0 0 2px #00FFFF,
        0 0 0 4px #000000,
        0 0 0 6px #00FFFF,
        0 0 0 8px #000000;
    z-index: 20;
}

.wheel-center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle at 40% 40%, #FFFFFF 0%, #E0F7FF  50%, #B3E5FC 100%);
    border-radius: 50%;
    border: 2px solid #000000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}



.roulette-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.bet-section {
    text-align: left;
}

.roulette-info {
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
}

.info-label {
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 12px;
}

.info-value {
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: bold;
}
.multipliers-grid {
    margin-top: 20px;
}

.multiplier-info {
    margin-bottom: 10px;
}

.multiplier-label {
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 12px;
}

.multiplier-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.multiplier {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 5px 8px;
    font-family: var(--pixel-font);
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.multiplier.x0 { color: var(--pixel-red); }
.multiplier.x0-5 { color: var(--pixel-red); }
.multiplier.x1 { color: var(--pixel-gray-light); }
.multiplier.x1-5 { color: var(--pixel-yellow); }
.multiplier.x2 { color: var(--pixel-yellow); }
.multiplier.x2-5 { color: var(--pixel-green); }
.multiplier.x3 { color: var(--pixel-green); }
.multiplier.x3-5 { color: var(--pixel-green); }
.multiplier.x4 { color: var(--pixel-cyan); }
.multiplier.x4-5 { color: var(--pixel-cyan); }
.multiplier.x5 { color: var(--pixel-magenta); }

.roulette-result {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.roulette-result.show {
    opacity: 1;
    transform: scale(1);
}

@keyframes resultFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}


.result-amount.win {
    color: var(--pixel-green);
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.result-amount.loss {
    color: var(--pixel-red);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.result-amount.neutral {
    color: var(--pixel-yellow);
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.8);
}

.result-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 2px solid var(--pixel-cyan);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--neon-glow);
    animation: resultPulse 2s infinite alternate;
}

@keyframes resultPulse {
    0% { box-shadow: var(--neon-glow); }
    100% { box-shadow: var(--strong-glow); }
}

.result-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: iconSpin 1s ease-out;
}

@keyframes iconSpin {
    0% { transform: scale(0) rotate(-360deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.result-text {
    font-family: var(--pixel-font);
    font-size: 24px;
    color: var(--pixel-cyan);
    margin-bottom: 10px;
    text-shadow: var(--strong-glow);
}

.result-amount {
    font-family: var(--pixel-font);
    font-size: 28px;
    color: var(--pixel-green);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    animation: amountGlow 1s ease-out;
}

.result-amount.loss {
    color: var(--pixel-red);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.result-amount.neutral {
    color: var(--pixel-yellow);
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.8);
}

@keyframes amountGlow {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

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

.spinning {
    animation: spinWheel 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


@media (max-width: 768px) {
    .roll-modal {
        max-width: 95%;
        margin: 20px;
    }
    
    .roll-content {
        padding: 20px;
    }
    
    
    .roll-exe-title {
        font-size: 20px !important;
        letter-spacing: 2px;
    }
    
    .roll-betting-section,
    .roll-loading-section,
    .roll-card-section {
        padding: 15px;
    }
    
    .pixel-mystery-card {
        width: 220px;
        height: 280px;
    }
    
    .pixel-click-icon,
    .pixel-result-icon {
        font-size: 48px;
    }
    
    .pixel-click-text {
        font-size: 18px;
    }
    
    .pixel-result-text {
        font-size: 16px;
    }
    
    .pixel-result-amount {
        font-size: 24px;
    }
    
    .pixel-card-content,
    .pixel-result-content {
        padding: 15px;
    }
    
    .pixel-card-details {
        padding: 15px;
        margin-top: 15px;
    }
    
    .pixel-btn-large {
        font-size: 14px;
        padding: 12px 20px;
        min-width: 180px;
    }
    
    .multipliers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .multiplier-pixel {
        font-size: 11px;
        padding: 6px 4px;
    }
    
    .pixel-loading-display {
        padding: 20px;
    }
    
    .pixel-loading-icon {
        font-size: 36px;
    }
    
    .roll-header {
        padding: 10px 15px !important;
        flex-direction: row !important;
    }
    
    .click-text {
        font-size: 50px;
    }
    
    .click-icon {
        font-size: 100px;
    }
    
    .result-text {
        font-size: 34px;
    }
    
    .result-amount {
        font-size: 42px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .card-actions .pixel-btn {
        width: 100%;
    }
    
    .multipliers-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .loading-line {
        font-size: 18px;
    }
    
    .loading-line.accent {
        font-size: 24px;
    }
    
    .loading-progress-bar {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .roll-modal {
        margin: 10px;
    }
    
    .roll-content {
        padding: 15px;
    }
    
    .roll-betting-section,
    .roll-loading-section,
    .roll-card-section {
        padding: 10px;
    }
    
    .roll-exe-title {
        font-size: 16px !important;
        letter-spacing: 1px;
    }
    
    .pixel-mystery-card {
        width: 200px;
        height: 260px;
    }
    
    .pixel-click-icon,
    .pixel-result-icon {
        font-size: 40px;
    }
    
    .pixel-click-text {
        font-size: 16px;
    }
    
    .pixel-result-text {
        font-size: 14px;
    }
    
    .pixel-result-amount {
        font-size: 20px;
    }
    
    .pixel-card-content,
    .pixel-result-content {
        padding: 10px;
    }
    
    .multipliers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .multiplier-pixel {
        font-size: 10px;
        padding: 5px 2px;
    }
    
    .pixel-btn-large {
        font-size: 12px;
        padding: 10px 16px;
        min-width: 140px;
    }
    
    .pixel-loading-icon {
        font-size: 32px;
    }
    
    .pixel-card-details {
        padding: 15px;
        margin-top: 10px;
    }
    
    .roll-header {
        padding: 8px 12px !important;
        flex-direction: row !important;
    }
    
    .pixel-close {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 16px !important;
    }
    
    .click-text {
        font-size: 42px;
    }
    
    .click-icon {
        font-size: 80px;
    }
    
    .result-text {
        font-size: 30px;
    }
    
    .result-amount {
        font-size: 36px;
    }
    
    .result-icon {
        font-size: 90px;
    }
    
    .multipliers-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .loading-line {
        font-size: 14px;
    }
    
    .loading-line.accent {
        font-size: 20px;
    }
    
    .loading-progress-bar {
        width: 250px;
        height: 10px;
    }
    
    .card-actions .pixel-btn {
        padding: 12px 20px;
        font-size: 12px;
    }
}

.thank-you-modal {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, #001122 0%, #002244 100%);
    border: 3px solid var(--pixel-cyan);
    position: relative;
    overflow: hidden;
    animation: thankYouEntrance 0.8s ease-out;
}

.thank-you-content {
    position: relative;
    z-index: 10;
    padding: 40px 30px;
}

.pixel-burst-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.thank-you-main {
    position: relative;
    z-index: 10;
    text-align: center;
}

.thank-you-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: iconBounce 1s ease-out 0.3s both;
}

.thank-you-title {
    color: var(--pixel-cyan);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 0 10px var(--pixel-cyan);
    animation: titleGlow 0.8s ease-out 0.5s both;
}

.thank-you-message {
    margin-bottom: 30px;
}

.thank-you-message p {
    color: var(--pixel-white);
    font-size: 12px;
    margin-bottom: 15px;
    animation: textSlideUp 0.6s ease-out 0.7s both;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pixel-cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid var(--pixel-cyan);
    background: rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: linkPulse 0.8s ease-out 0.9s both;
}

.telegram-link:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--pixel-cyan);
    transform: scale(1.05);
}

.tg-icon {
    font-size: 14px;
    animation: iconRotate 2s linear infinite;
}

.tg-text {
    font-family: 'Press Start 2P', monospace;
}

.thank-you-actions {
    animation: buttonSlideUp 0.6s ease-out 1.1s both;
}

@keyframes thankYouEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(10deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleGlow {
    0% {
        opacity: 0;
        transform: translateX(-30px);
        text-shadow: 0 0 0 var(--pixel-cyan);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        text-shadow: 0 0 10px var(--pixel-cyan);
    }
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes linkPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
        box-shadow: 0 0 0 var(--pixel-cyan);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px var(--pixel-cyan);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--pixel-cyan);
    }
}

@keyframes buttonSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.pixel-burst-bg .burst-pixel {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--pixel-cyan);
    animation: pixelBurst 1.5s ease-out forwards;
}

@keyframes pixelBurst {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-100px);
    }
}

.profile-modal {
    border: 2px solid var(--pixel-cyan) !important;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1) !important;
    animation: profileModalAppear 0.5s ease-out;
    background: rgba(0, 20, 30, 0.95) !important;
}

@keyframes profileModalAppear {
    0% {
        transform: scale(0.8) rotateY(10deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: scale(1.05) rotateY(-5deg);
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

.pixel-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--pixel-2) !important;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2)) !important;
    border-bottom: 2px solid var(--pixel-cyan) !important;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Базовый z-index, будет переопределен на мобильных */
}

.pixel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: pixelScan 3s infinite;
}

@keyframes pixelScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.pixel-text {
    font-family: 'Courier New', monospace !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--pixel-cyan);
}

.pixel-close {
    background: rgba(255, 68, 68, 0.2) !important;
    border: 2px solid #FF4444 !important;
    color: #FF4444 !important;
    text-shadow: 0 0 5px #FF4444;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 6px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    z-index: 100 !important;
    position: relative !important;
}

.pixel-close:hover {
    background: rgba(255, 68, 68, 0.4) !important;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    transform: scale(1.05) !important;
    border-color: #FF6666 !important;
}


/* ПРОФИЛЬ МОДАЛКА - ВЕРТИКАЛЬНЫЙ LAYOUT */
/* Кнопка гамбургер-меню (СКРЫТА на десктопе, показывается ТОЛЬКО на мобильных) */
.profile-menu-toggle {
    display: none !important; /* Принудительно скрыта */
    background: transparent;
    border: none;
    color: var(--pixel-cyan);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
}

.profile-menu-toggle:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Backdrop для закрытия меню */
.profile-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-sidebar-backdrop.active {
    opacity: 1;
}

.profile-modal .profile-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 0;
    height: 600px !important;
    max-height: 70vh;
    position: relative;
    overflow: hidden;
}

.profile-modal .pixel-tabs {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(0, 0, 0, 0.5);
    border-right: 2px solid var(--pixel-cyan);
    border-bottom: none;
    padding: 0;
    margin: 0;
    min-width: 160px;
    width: 160px;
    flex-shrink: 0;
    height: 100% !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Заголовок бокового меню (только для мобильных) */
.sidebar-header {
    display: none;
}

.sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Крестик закрытия меню (СКРЫТ на десктопе, показывается ТОЛЬКО на мобильных) */
.mobile-menu-close {
    display: none !important; /* Принудительно скрыт на десктопе */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001; /* Поверх всего */
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 8px;
    color: #ff4444;
    font-size: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) rotate(-90deg);
    will-change: transform, opacity;
}

.mobile-menu-close.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0deg);
}

.mobile-menu-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.8);
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

.mobile-menu-close:active {
    transform: scale(0.95) rotate(0deg);
}

.profile-modal .profile-tab-contents {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.profile-modal .profile-tab-contents::-webkit-scrollbar {
    display: none;
}

/* Стили для десктопа */
@media (min-width: 769px) {
    .sidebar-menu .pixel-tab {
        flex: 1 1 0 !important;
        width: 100% !important;
        min-height: 80px !important;
        max-width: 100% !important;
        margin: 0 !important;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        border-left: 3px solid transparent;
        color: rgba(0, 255, 255, 0.6);
        padding: 18px 16px !important;
        text-align: left;
        transition: background 0.15s ease, color 0.15s ease, border-left 0.15s ease, padding-left 0.15s ease;
        cursor: pointer;
        position: relative;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-family: 'Courier New', monospace;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 11px;
        box-sizing: border-box !important;
        will-change: background, color;
    }

    .sidebar-menu .pixel-tab:last-child {
        border-right: none;
        border-bottom: none !important;
    }

    .sidebar-menu .pixel-tab::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 0;
        background: var(--pixel-cyan);
        transition: height 0.12s ease;
        will-change: height;
    }

    .sidebar-menu .pixel-tab:hover {
        background: rgba(0, 255, 255, 0.08);
        color: var(--pixel-cyan);
        padding-left: 20px;
    }

    .sidebar-menu .pixel-tab:hover::before {
        height: 100%;
    }

    .sidebar-menu .pixel-tab.active {
        background: rgba(0, 255, 255, 0.15);
        color: var(--pixel-cyan);
        border-left: 3px solid var(--pixel-cyan);
        padding-left: 13px;
    }

    .sidebar-menu .pixel-tab.active::before {
        height: 100%;
    }
    
    .sidebar-menu .pixel-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .sidebar-menu .pixel-label {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
}


.pixel-content {
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    min-height: 400px;
    position: relative; 
}

.profile-tab-content {
    display: none !important;
    opacity: 0;
    padding: 20px;
    transition: opacity 0.2s ease-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    visibility: hidden;
}

.profile-tab-content.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    position: relative;
    animation: tabSlideIn 0.25s ease-out;
}

@keyframes tabSlideIn {
    0% {
        opacity: 0;
        transform: translateX(15px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Оптимизация для слабых устройств и тех, кто предпочитает меньше анимаций */
@media (prefers-reduced-motion: reduce) {
    .sidebar-menu .pixel-tab,
    .sidebar-menu .pixel-icon,
    .sidebar-menu .pixel-label,
    .sidebar-menu .pixel-tab::before,
    .sidebar-menu .pixel-tab::after,
    .profile-modal .pixel-tabs,
    .mobile-menu-close,
    .profile-tab-content {
        transition: none !important;
        animation: none !important;
    }
    
    .sidebar-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .profile-modal .pixel-tabs {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.pixel-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.pixel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pixel-cyan), transparent);
    animation: pixelBorderGlow 2s ease-in-out infinite alternate;
}

@keyframes pixelBorderGlow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.pixel-animate {
    animation: pixelSectionAppear 0.3s ease-out;
    will-change: opacity;
}

@keyframes pixelSectionAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}


.pixel-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pixel-stat-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    animation: pixelStatPulse 3s ease-in-out infinite;
}

.pixel-stat-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

@keyframes pixelStatPulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.2);
        border-color: rgba(0, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
        border-color: rgba(0, 255, 255, 0.6);
    }
}

.pixel-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 10px var(--pixel-cyan);
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}


.pixel-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pixel-cyan), transparent);
    margin: 20px 0;
    animation: pixelSeparatorGlow 2s ease-in-out infinite alternate;
}

@keyframes pixelSeparatorGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}


.pixel-balance-display {
    text-align: center;
}

.balance-container {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--pixel-cyan);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.balance-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: pixelRotate 4s linear infinite;
}

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

.balance-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 10px;
}

.balance-amount {
    position: relative;
    z-index: 1;
    font-size: 24px;
    display: block;
}


.pixel-glow {
    position: relative;
    overflow: hidden;
}

.pixel-glow::before {
    content: '';
    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;
}

.pixel-glow:hover::before {
    left: 100%;
}


.pixel-scrollable {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 15px;
    
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pixel-scrollable::-webkit-scrollbar {
    display: none;
}

/* Убираем скроллбары везде в профиле */
.profile-modal .pixel-section,
.profile-modal .purchase-history,
.profile-modal .payment-history,
.profile-modal .telegram-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-modal .pixel-section::-webkit-scrollbar,
.profile-modal .purchase-history::-webkit-scrollbar,
.profile-modal .payment-history::-webkit-scrollbar,
.profile-modal .telegram-container::-webkit-scrollbar {
    display: none;
}

.pixel-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--pixel-gray);
    font-style: italic;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.pixel-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pixel-input-group .pixel-input {
    flex: 1;
}

.pixel-copy {
    min-width: 80px;
}


.pixel-referral-container {
    text-align: center;
}

.referral-link-section {
    margin-bottom: 20px;
}

.referral-link-section label {
    display: block;
    margin-bottom: 10px;
}


.pixel-payment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}


.pixel-scrollable .payment-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    animation: paymentItemSlide 0.3s ease-out;
    font-family: 'Courier New', monospace;
}

.pixel-scrollable .payment-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

@keyframes paymentItemSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.pixel-scrollable .payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pixel-scrollable .payment-amount {
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 5px var(--pixel-cyan);
}

.pixel-scrollable .payment-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.pixel-scrollable .payment-details {
    font-size: 12px;
    color: var(--pixel-gray);
}

.pixel-scrollable .payment-details p {
    margin: 3px 0;
}

.pixel-scrollable .history-actions {
    margin-top: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pixel-scrollable .pixel-btn.small {
    font-size: 10px;
    padding: 5px 8px;
    min-width: auto;
}


.pixel-scrollable .order-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    animation: orderItemSlide 0.3s ease-out;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

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

.pixel-scrollable .order-item:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.pixel-scrollable .order-item:hover::before {
    left: 100%;
}

.pixel-scrollable .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.pixel-scrollable .order-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pixel-scrollable .order-id {
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 5px var(--pixel-cyan);
    text-transform: uppercase;
    font-size: 12px;
}

.pixel-scrollable .order-date {
    font-size: 10px;
    color: var(--pixel-gray);
    text-transform: uppercase;
}

.pixel-scrollable .order-amount {
    font-weight: bold;
    color: var(--pixel-cyan);
    text-shadow: 0 0 5px var(--pixel-cyan);
    font-size: 14px;
}

.pixel-scrollable .order-items {
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.pixel-scrollable .order-product {
    display: inline-block;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 3px;
    padding: 3px 6px;
    margin: 2px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pixel-scrollable .order-actions {
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.pixel-scrollable .order-actions .pixel-btn {
    font-size: 10px;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media (max-width: 768px) {
    .pixel-tabs {
        font-size: 10px;
    }
    
    /* Показываем кнопку гамбургер ТОЛЬКО на мобильных */
    .profile-menu-toggle {
        display: block !important; /* Переопределяем !important с десктопа */
    }
    
    /* Показываем мобильный крестик на телефонах */
    .mobile-menu-close {
        display: flex !important; /* Переопределяем !important с десктопа */
    }
    
    .profile-modal .profile-content {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
        z-index: 1000; /* Выше чем заголовок, чтобы меню внутри было поверх */
    }
    
    /* Боковое выдвижное меню */
    .profile-modal .pixel-tabs {
        position: fixed;
        left: -100vw;
        top: 0;
        bottom: 0;
        right: 0;
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(0, 10, 30, 0.98), rgba(10, 20, 40, 0.98));
        border-right: none;
        border-bottom: none;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.3s ease-out;
        box-shadow: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0 !important;
        margin: 0 !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box !important;
        will-change: left;
    }
    
    .profile-modal .pixel-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .profile-modal .pixel-tabs.active {
        left: 0;
    }
    
    /* Скрываем заголовок профиля когда меню открыто */
    .profile-modal .pixel-tabs.active ~ * .modal-header,
    .profile-modal:has(.pixel-tabs.active) .modal-header {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* Заголовок меню */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 20px 16px;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(0, 150, 200, 0.06));
        border-bottom: 3px solid var(--pixel-cyan);
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(0, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-sizing: border-box !important;
        margin: 0 !important;
    }
    
    .sidebar-title {
        font-family: 'JetBrains Mono', monospace;
        font-size: 20px;
        font-weight: 800;
        color: var(--pixel-cyan);
        text-transform: uppercase;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.4);
    }
    
    .sidebar-title i {
        font-size: 24px;
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
    }
    
    .sidebar-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scroll-behavior: smooth;
        box-sizing: border-box !important;
        align-content: start;
    }
    
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    
    .profile-sidebar-backdrop.active {
        display: block;
    }
    
    .sidebar-menu .pixel-tab {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        padding: 42px 24px;
        gap: 20px;
        min-width: unset;
        min-height: 230px;
        border: 3px solid rgba(0, 255, 255, 0.4);
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(0, 30, 60, 0.6), rgba(0, 50, 100, 0.4));
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        margin: 0 !important;
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-sizing: border-box !important;
        overflow: hidden;
        will-change: transform;
    }
    
    .sidebar-menu .pixel-tab::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent, rgba(0, 255, 255, 0.08), transparent);
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
        will-change: opacity;
    }
    
    .sidebar-menu .pixel-tab::after {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(45deg, var(--pixel-cyan), transparent, var(--pixel-cyan));
        border-radius: 16px;
        opacity: 0;
        z-index: -1;
        transition: opacity 0.2s ease;
        filter: blur(4px);
        will-change: opacity;
    }
    
    .sidebar-menu .pixel-tab:active {
        transform: scale(0.95);
    }
    
    .sidebar-menu .pixel-tab.active {
        border: 2px solid var(--pixel-cyan);
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 200, 0.12));
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
    }
    
    .sidebar-menu .pixel-tab.active::before {
        opacity: 0.6;
    }
    
    .sidebar-menu .pixel-tab.active::after {
        opacity: 0.4;
    }
    
    .sidebar-menu .pixel-icon {
        font-size: 72px;
        margin: 0;
        color: var(--pixel-cyan);
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.7);
        transition: transform 0.2s ease, text-shadow 0.2s ease;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        will-change: transform;
    }
    
    .sidebar-menu .pixel-tab.active .pixel-icon {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.9), 0 0 30px rgba(0, 255, 255, 0.5);
        transform: scale(1.1);
    }
    
    .sidebar-menu .pixel-label {
        font-size: 20px;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.95);
        letter-spacing: 2.2px;
        text-transform: uppercase;
        transition: color 0.2s ease, text-shadow 0.2s ease;
        position: relative;
        z-index: 1;
        line-height: 1.4;
    }
    
    .sidebar-menu .pixel-tab.active .pixel-label {
        color: var(--pixel-cyan);
        font-weight: 800;
        text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
    }
    
    .profile-modal .profile-tab-contents {
        width: 100%;
        padding: 15px;
    }
    
    .pixel-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* Заголовок профиля должен быть ниже меню */
    .profile-modal .modal-header.pixel-header {
        position: relative;
        z-index: 1; /* Ниже чем profile-content и меню внутри него */
    }
}

/* Дополнительная оптимизация для маленьких экранов */
@media (max-width: 480px) {
    .profile-menu-toggle {
        display: block !important; /* Показываем гамбургер */
        font-size: 18px;
        padding: 6px;
        order: -1 !important; /* Гарантируем позицию слева */
    }
    
    .mobile-menu-close {
        display: flex !important; /* Показываем крестик */
        width: 44px;
        height: 44px;
        font-size: 22px;
        top: 15px;
        right: 15px;
    }
    
    /* Заголовок профиля на мобильных (маленькие экраны) */
    .profile-modal .modal-header.pixel-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 12px !important;
        position: relative;
        z-index: 1; /* Ниже чем profile-content и меню внутри него */
    }
    
    .profile-modal .modal-header .profile-menu-toggle {
        order: 0 !important; /* Первый элемент - слева */
        margin-right: auto;
        font-size: 18px;
        padding: 6px;
    }
    
    .profile-modal .modal-header .modal-title {
        order: 1 !important; /* Второй элемент - по центру */
        flex: 0 1 auto;
        text-align: center;
        font-size: 14px !important;
    }
    
    .profile-modal .modal-header .modal-close {
        order: 2 !important; /* Третий элемент - справа */
        margin-left: auto;
    }
    
    .sidebar-header {
        padding: 16px 12px !important;
    }
    
    .sidebar-title {
        font-size: 17px !important;
        letter-spacing: 1.3px !important;
        gap: 10px !important;
    }
    
    .sidebar-title i {
        font-size: 20px !important;
    }
    
    .sidebar-menu {
        gap: 8px !important;
        padding: 8px !important;
    }
    
    .sidebar-menu .pixel-tab {
        min-height: 200px !important;
        padding: 36px 20px !important;
        gap: 18px !important;
        border-radius: 18px !important;
    }
    
    .sidebar-menu .pixel-icon {
        font-size: 64px !important;
    }
    
    .sidebar-menu .pixel-label {
        font-size: 17px !important;
        letter-spacing: 1.8px !important;
    }
    
    .profile-modal .profile-tab-contents {
        padding: 10px;
    }
    
    .profile-modal .pixel-section {
        padding: 12px;
    }
    
    .profile-modal .pixel-scrollable {
        max-height: 200px;
    }
    
    .profile-tab-content {
        padding: 15px;
    }
    
    .pixel-section {
        padding: 15px;
    }
    
    .pixel-scrollable .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .pixel-scrollable .order-amount {
        align-self: flex-end;
    }
}


@media (min-width: 769px) {
    .pixel-tab:not(.sidebar-menu .pixel-tab) {
        min-width: 140px !important; 
        padding-left: calc(var(--pixel-3) + 8px) !important;
        padding-right: calc(var(--pixel-3) + 8px) !important;
    }
    
    .sidebar-menu .pixel-tab {
        min-width: unset !important;
    }
}

.pixel-auth-input {
    font-family: 'Consolas', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    font-weight: 400 !important;
    transition: all 0.25s ease !important;
}

.pixel-auth-input:focus {
    border-color: rgba(0, 255, 255, 0.4) !important;
    background: rgba(0, 0, 0, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.2) !important;
    outline: none !important;
}

.pixel-auth-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    font-family: 'Consolas', 'Monaco', 'Lucida Console', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
}


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

.auth-form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.auth-form-label::before {
    content: '';
}


.username-input-container {
    position: relative;
}

.captcha-modal {
    max-width: 600px;
    width: 90%;
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    overflow: auto;
}

.captcha-modal::-webkit-scrollbar {
    display: none; 
}

.captcha-content {
    padding: 20px;
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    overflow: auto;
    -webkit-overflow-scrolling: touch; 
}

.captcha-content::-webkit-scrollbar {
    display: none; 
}

.captcha-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.captcha-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.captcha-icon {
    font-size: 22px;
    color: rgba(0, 255, 255, 0.8);
}

.captcha-text {
    font-family: 'Press Start 2P', monospace;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.captcha-challenges {
    margin-bottom: 20px;
}

.captcha-challenge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
    display: none;
}

.captcha-challenge.active {
    display: block;
}

.challenge-title {
    font-family: 'Press Start 2P', monospace;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-align: center;
    font-size: 11px;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    will-change: contents;
    contain: layout style;
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.captcha-image {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
    border: 3px solid var(--pixel-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--pixel-darker);
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-image:hover {
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transform: scale(1.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-image.selected {
    border-color: var(--pixel-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    transform: scale(1.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: block;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.captcha-image:hover img {
    opacity: 0.9;
}

.captcha-image.selected img {
    opacity: 1;
}

.captcha-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.captcha-image:hover::after {
    opacity: 1;
}

.captcha-image.selected::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--pixel-green);
    color: var(--pixel-black);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    animation: checkmark 0.3s ease;
}

.captcha-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.captcha-progress {
    font-family: 'Press Start 2P', monospace;
    color: rgba(0, 255, 255, 0.8);
    font-size: 10px;
}

.captcha-step-controls {
    display: flex;
    gap: 10px;
}

.captcha-actions .pixel-btn {
    min-width: 120px;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes textGlow {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

.captcha-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
}

.captcha-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--pixel-gray);
    border-top: 4px solid var(--pixel-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.captcha-loading-text {
    font-family: 'Press Start 2P', monospace;
    color: var(--pixel-cyan);
    font-size: 12px;
    text-shadow: 0 0 10px var(--pixel-cyan);
}

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

@media (max-width: 768px) {
    .captcha-modal {
        width: 95%;
        margin: 10px auto;
        max-height: 85vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow-y: auto;
        will-change: transform, opacity;
        z-index: 100040;
    }
    
    
    .captcha-image {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .captcha-image:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .pixel-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
        max-width: 350px;
    }
    
    .captcha-image {
        min-height: 100px;
    }
    
    .captcha-text {
        font-size: 10px;
    }
    
    .challenge-title {
        font-size: 10px;
    }
    
    .captcha-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 15px 25px 15px;
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, var(--pixel-dark) 0%, var(--pixel-darker) 100%);
        border-top: 3px solid var(--pixel-cyan);
        margin: 15px -20px -20px -20px;
        z-index: 100;
        box-shadow: 
            0 -8px 25px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(0, 255, 255, 0.2);
        backdrop-filter: blur(15px);
    }
    
    .captcha-progress {
        order: -1;
    }
    
    .captcha-step-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .captcha-step-controls .pixel-btn {
        min-width: 140px;
        font-size: 13px;
        padding: 16px 20px;
        font-weight: 700;
        letter-spacing: 1px;
        min-height: 52px;
        border-width: 2px;
        border-radius: 8px;
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.4),
            0 0 12px rgba(0, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    /* ===== ПОЛНАЯ ПЕРЕПИСЬ КАПЧИ ДЛЯ ТЕЛЕФОНОВ ===== */
    
    /* ПОЛНОЭКРАННАЯ КАПЧА */
    .captcha-modal {
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        z-index: 100040 !important;
        background: linear-gradient(135deg, var(--pixel-dark) 0%, var(--pixel-darker) 100%) !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* ЗАГОЛОВОК СВЕРХУ */
    .modal-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(10, 15, 20, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 100001 !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5) !important;
    }
    
    .modal-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
    }
    
    /* КРЕСТИК В ПРАВОМ ВЕРХНЕМ УГЛУ */
    .modal-close,
    .pixel-modal-close {
        position: fixed !important;
        top: 13px !important;
        right: 13px !important;
        width: 38px !important;
        height: 38px !important;
        z-index: 100002 !important;
        background: rgba(255, 0, 80, 0.15) !important;
        border: 1.5px solid rgba(255, 0, 80, 0.6) !important;
        border-radius: 6px !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .modal-close::before,
    .modal-close::after,
    .pixel-modal-close::before,
    .pixel-modal-close::after {
        width: 14px !important;
        height: 1.5px !important;
        background: rgba(255, 0, 80, 0.9) !important;
    }
    
    /* ОСНОВНОЙ КОНТЕНТ */
    .captcha-content {
        padding: 70px 15px 380px 15px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        min-height: 100vh !important;
        height: 100vh !important;
        box-sizing: border-box !important;
    }
    
    /* ОПИСАНИЕ ЗАДАНИЯ */
    .captcha-header {
        margin-bottom: 20px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .captcha-title .captcha-text,
    .challenge-title {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-align: center !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    /* СЕТКА ИЗОБРАЖЕНИЙ */
    .challenge-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto 30px !important;
        justify-content: center !important;
        align-content: center !important;
    }
    
    .captcha-image {
        width: 100% !important;
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
        object-fit: cover !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        border: 2px solid rgba(0, 255, 255, 0.3) !important;
        background: rgba(0, 0, 0, 0.8) !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        display: block !important;
    }
    
    .captcha-image:active {
        transform: scale(0.95) !important;
        border-color: var(--pixel-cyan) !important;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.5) !important;
    }
    
    .captcha-image.selected {
        border-color: var(--pixel-green) !important;
        background: rgba(0, 255, 0, 0.1) !important;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6) !important;
    }
    
    /* ОБЛАСТЬ КНОПОК - ПОДНЯТА ВЫШЕ НА ЭКРАНЕ */
    .captcha-actions {
        position: fixed !important;
        bottom: 180px !important;  /* ПОДНЯТО В 2 РАЗА ВЫШЕ */
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        min-height: 180px !important;
        height: 180px !important;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 17, 34, 0.98) 100%) !important;
        border-top: 4px solid var(--pixel-cyan) !important;
        border-bottom: 4px solid var(--pixel-cyan) !important;
        padding: 25px 15px 30px !important;
        z-index: 100000 !important;
        box-shadow: 
            0 -25px 60px rgba(0, 0, 0, 1),
            0 25px 60px rgba(0, 0, 0, 1),
            0 0 50px rgba(0, 255, 255, 0.6) !important;
        backdrop-filter: blur(30px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        border-radius: 0 !important;
    }
    
    /* ПРОГРЕСС */
    .captcha-progress {
        order: 0 !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        color: var(--pixel-cyan) !important;
        text-shadow: 0 0 12px var(--pixel-cyan) !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        height: 20px !important;
        line-height: 20px !important;
    }
    
    /* КОНТЕЙНЕР КНОПОК - УВЕЛИЧЕННЫЙ */
    .captcha-step-controls {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 15px !important;
        order: 1 !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        min-height: 120px !important;
        height: 120px !important;
    }
    
    /* ===== ВСЕ КНОПКИ КАПЧИ - ГАРАНТИРОВАННО ВИДИМЫЕ ===== */
    .captcha-step-controls .pixel-btn,
    .captcha-step-controls button,
    .captcha-actions .pixel-btn,
    .captcha-actions button,
    button[onclick*="verify"],
    button[onclick*="refresh"],
    button[onclick*="prev"],
    button[onclick*="next"],
    .captcha-modal .verify-btn,
    .refresh-btn,
    .prev-btn,
    .next-btn {
        /* РАЗМЕРЫ - НАМНОГО БОЛЬШЕ */
        flex: 1 !important;
        min-width: 110px !important;
        max-width: 45% !important;
        width: auto !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        
        /* ШРИФТ - УВЕЛИЧЕННЫЙ */
        font-size: 16px !important;
        font-weight: 900 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        line-height: 1.3 !important;
        
        /* ОТСТУПЫ - БОЛЬШЕ */
        padding: 18px 12px !important;
        margin: 0 !important;
        
        /* СТИЛЬ */
        border-radius: 10px !important;
        border-width: 2px !important;
        border-style: solid !important;
        
        /* ЭФФЕКТЫ */
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.7),
            0 0 15px rgba(0, 255, 255, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(15px) !important;
        transition: all 0.2s ease !important;
        
        /* ПОВЕДЕНИЕ */
        cursor: pointer !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-user-select: none !important;
        -webkit-tap-highlight-color: rgba(0, 255, 255, 0.3) !important;
        
        /* ПОЗИЦИОНИРОВАНИЕ */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        position: relative !important;
        z-index: 10001 !important;
        
        /* ЦВЕТА ПО УМОЛЧАНИЮ (СЕРЫЕ КНОПКИ) */
        background: rgba(0, 0, 0, 0.9) !important;
        border-color: var(--pixel-cyan) !important;
        color: var(--pixel-cyan) !important;
        text-shadow: 0 0 10px var(--pixel-cyan) !important;
    }
    
    /* АКТИВНОЕ СОСТОЯНИЕ ВСЕХ КНОПОК */
    .captcha-step-controls .pixel-btn:active,
    .captcha-step-controls button:active,
    .captcha-actions .pixel-btn:active,
    .captcha-actions button:active,
    button[onclick*="verify"]:active,
    button[onclick*="refresh"]:active,
    button[onclick*="prev"]:active,
    button[onclick*="next"]:active,
    .captcha-modal .verify-btn:active,
    .refresh-btn:active,
    .prev-btn:active,
    .next-btn:active {
        transform: translateY(2px) scale(0.98) !important;
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(0, 255, 255, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    }
    
    .captcha-step-controls .pixel-btn.primary,
    .captcha-step-controls button.primary,
    .captcha-actions .pixel-btn.primary,
    .captcha-actions button.primary,
    button[onclick*="verify"],
    .captcha-modal .verify-btn,
    .captcha-step-controls .pixel-btn[data-action="verify"],
    .captcha-actions .pixel-btn[data-action="verify"] {
        background: linear-gradient(135deg, var(--pixel-cyan) 0%, #00bcd4 100%) !important;
        color: var(--pixel-black) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
        border-color: #00bcd4 !important;
        font-weight: 900 !important;
        font-size: 18px !important;
        box-shadow: 
            0 8px 25px rgba(0, 188, 212, 0.5),
            0 0 25px rgba(0, 255, 255, 0.7),
            inset 0 3px 0 rgba(255, 255, 255, 0.4) !important;
    }
    
    button[onclick*="refresh"],
    button[onclick*="prev"],
    button[onclick*="next"],
    .refresh-btn,
    .prev-btn,
    .next-btn {
        background: rgba(0, 0, 0, 0.9) !important;
        border-color: var(--pixel-cyan) !important;
        color: var(--pixel-cyan) !important;
        text-shadow: 0 0 10px var(--pixel-cyan) !important;
    }
    
    /* ЕСЛИ КНОПКИ НЕ ПОМЕЩАЮТСЯ - НО ВСЕ РАВНО БОЛЬШИЕ */
    .captcha-step-controls:has(.pixel-btn:nth-child(3)) .pixel-btn,
    .captcha-step-controls:has(button:nth-child(3)) button {
        max-width: 32% !important;
        min-width: 85px !important;
        font-size: 14px !important;
        padding: 16px 8px !important;
        height: 65px !important;
        min-height: 65px !important;
    }
    
    /* БЛОКИРОВКА ОСНОВНОЙ СТРАНИЦЫ */
    html.modal-open,
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        overscroll-behavior: none !important;
        -webkit-overflow-scrolling: auto !important;
        touch-action: none !important;
    }
    
    body.modal-open > *:not(.modal-overlay):not(script) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    body.modal-open .modal-overlay,
    body.modal-open .captcha-modal {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }
    
    /* SAFE AREA ДЛЯ IPHONE */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .captcha-actions {
            bottom: calc(180px + env(safe-area-inset-bottom)) !important;
            padding-bottom: calc(30px + env(safe-area-inset-bottom)) !important;
            min-height: calc(180px + env(safe-area-inset-bottom)) !important;
            height: calc(180px + env(safe-area-inset-bottom)) !important;
        }
        
        .captcha-content {
            padding-bottom: calc(380px + env(safe-area-inset-bottom)) !important;
        }
    }
}


.support-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.support-tabs {
    display: flex;
    gap: var(--pixel-2);
    margin-bottom: var(--pixel-4);
    border-bottom: 2px solid var(--pixel-cyan);
    background: transparent;
}

.support-tab-btn {
    background: transparent;
    border: 1px solid var(--pixel-gray);
    color: var(--pixel-white);
    padding: var(--pixel-2) var(--pixel-3);
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    text-transform: uppercase;
    transition: var(--pixel-transition);
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    border-radius: 4px 4px 0 0;
}

.support-tab-btn:hover {
    border-color: var(--pixel-cyan);
    color: var(--pixel-cyan);
    box-shadow: var(--subtle-glow);
}

.support-tab-btn.active {
    border-color: var(--pixel-cyan);
    background: var(--pixel-cyan);
    color: var(--pixel-black);
    box-shadow: var(--strong-glow);
}

.support-content {
    display: none;
    animation: slideIn 0.3s ease;
}

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

.create-ticket-form {
    background: rgba(0, 20, 20, 0.8);
    border: 2px solid var(--pixel-cyan);
    border-radius: var(--pixel-unit);
    padding: var(--pixel-4);
    box-shadow: var(--subtle-glow);
    position: relative;
}

.pixel-label {
    display: block;
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--pixel-unit);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.dropdown-container {
    position: relative;
}

.pixel-dropdown {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--pixel-gray);
    border-radius: var(--pixel-unit);
    transition: all 0.3s ease;
}

.pixel-dropdown:hover {
    border-color: var(--pixel-cyan);
    box-shadow: var(--subtle-glow);
}

.dropdown-selected {
    padding: var(--pixel-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
}

.dropdown-arrow {
    color: var(--pixel-cyan);
    transition: transform 0.3s ease;
}

.pixel-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--pixel-cyan);
    border-top: none;
    border-radius: 0 0 var(--pixel-unit) var(--pixel-unit);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    
    transform: translateZ(0);
}

.pixel-dropdown.open .dropdown-options {
    max-height: 300px;
}

.dropdown-option {
    padding: var(--pixel-2);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--pixel-2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.dropdown-option:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(4px);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.option-content {
    flex: 1;
}

.option-title {
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-desc {
    color: var(--pixel-gray-light);
    font-family: var(--pixel-font);
    font-size: 11px;
    line-height: 1.4;
}

.pixel-input, .pixel-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--pixel-gray);
    border-radius: var(--pixel-unit);
    padding: var(--pixel-2);
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

.pixel-input:focus, .pixel-textarea:focus {
    outline: none;
    border-color: var(--pixel-cyan);
    box-shadow: var(--subtle-glow);
    background: rgba(0, 0, 0, 0.9);
}

.pixel-textarea {
    min-height: 120px;
    line-height: 1.5;
}

.file-upload-area {
    border: 2px dashed var(--pixel-gray);
    border-radius: var(--pixel-unit);
    padding: var(--pixel-4);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
}

.file-upload-area:hover {
    border-color: var(--pixel-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.file-upload-area.mini {
    padding: var(--pixel-2);
}

/* ПРОСТАЯ СИСТЕМА ПРЕДПРОСМОТРА ФАЙЛОВ ДЛЯ СООБЩЕНИЙ */
.simple-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    animation: fadeInUp 0.3s ease;
}

.simple-file-card:hover {
    border-color: var(--pixel-cyan);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(30, 41, 59, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.file-preview-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.file-icon {
    color: var(--pixel-cyan);
    font-size: 24px;
}

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

.file-name {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    color: #94a3b8;
    font-size: 12px;
}

.simple-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.simple-remove-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .simple-file-card {
        padding: 10px;
        gap: 10px;
    }
    
    .file-preview-thumb {
        width: 50px;
        height: 50px;
    }
    
    .file-name {
        font-size: 13px;
    }
    
    .file-size {
        font-size: 11px;
    }
    
    .simple-remove-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.optional {
    color: var(--pixel-gray-light);
    font-size: 10px;
    font-weight: normal;
    text-transform: lowercase;
}

.form-actions {
    margin-top: var(--pixel-4);
    text-align: center;
}


.tickets-list {
    display: flex;
    flex-direction: column;
    gap: var(--pixel-2);
}

.ticket-item {
    background: rgba(0, 20, 20, 0.8);
    border: 2px solid var(--pixel-gray);
    border-radius: var(--pixel-unit);
    padding: var(--pixel-3);
    cursor: pointer;
    transition: var(--pixel-transition);
    position: relative;
}

.ticket-item:hover {
    border-color: var(--pixel-cyan);
    box-shadow: var(--subtle-glow);
    transform: translateX(4px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--pixel-2);
}

.ticket-id {
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 14px;
    font-weight: 600;
}

.ticket-status {
    padding: 4px var(--pixel-unit);
    border-radius: 4px;
    font-family: var(--pixel-font);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-status.open {
    background: var(--pixel-green);
    color: var(--pixel-black);
}

.ticket-status.in_progress {
    background: var(--pixel-yellow);
    color: var(--pixel-black);
}

.ticket-status.closed {
    background: var(--pixel-gray);
    color: var(--pixel-white);
}

.ticket-status.rejected {
    background: var(--pixel-red);
    color: var(--pixel-white);
}

.ticket-title {
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--pixel-unit);
}

.ticket-type {
    display: inline-block;
    padding: 2px var(--pixel-unit);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--pixel-unit);
}

.ticket-type.support {
    background: rgba(0, 128, 255, 0.2);
    color: var(--pixel-blue);
    border: 1px solid var(--pixel-blue);
}

.ticket-type.discovery {
    background: rgba(255, 255, 0, 0.2);
    color: var(--pixel-yellow);
    border: 1px solid var(--pixel-yellow);
}

.ticket-description {
    color: var(--pixel-gray-light);
    font-family: var(--pixel-font);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: var(--pixel-2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ticket-date {
    color: var(--pixel-gray);
    font-family: var(--pixel-font);
    font-size: 11px;
}


.ticket-modal {
    max-width: 1400px;
    width: 95vw;
    max-height: 85vh;
    height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--pixel-cyan);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pixel-btn-small {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border: 2px solid var(--pixel-cyan);
    color: var(--pixel-cyan);
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--pixel-font);
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.pixel-btn-small:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 200, 200, 0.15));
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.notification-btn.enabled {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 200, 0.2));
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.notification-btn.enabled .btn-icon {
    animation: pulse 2s infinite;
}

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

/* Message Form Improvements */
.message-form,
.modern-message-form {
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(30, 41, 59, 0.4));
    margin-top: auto;
    position: relative;
    z-index: 100050;
    flex-shrink: 0;
    min-height: 120px;
    display: block !important;
}

/* Force show message form when it has modern-message-form class */
.modern-message-form {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure ticket info doesn't grow too much */
.ticket-info {
    flex-shrink: 0;
}

.message-form .pixel-textarea,
.modern-message-form .pixel-textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
    font-family: var(--pixel-font);
}

.message-form .pixel-textarea:focus,
.modern-message-form .pixel-textarea:focus {
    border-color: var(--pixel-cyan);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    outline: none;
}

.message-form .pixel-btn,
.modern-message-form .pixel-btn {
    background: linear-gradient(135deg, var(--pixel-cyan), var(--pixel-cyan-dark));
    border: 2px solid var(--pixel-cyan);
    color: var(--pixel-black);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: var(--pixel-font);
    margin-top: 12px;
}

.message-form .pixel-btn:hover,
.modern-message-form .pixel-btn:hover {
    background: linear-gradient(135deg, var(--pixel-cyan-light), var(--pixel-cyan));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.file-upload-area.mini {
    background: rgba(15, 23, 42, 0.6);
    border: 2px dashed rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area.mini:hover {
    border-color: var(--pixel-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--pixel-cyan);
    font-size: 12px;
    font-family: var(--pixel-font);
}

.upload-icon {
    font-size: 18px;
    color: var(--pixel-cyan);
}

.upload-text {
    color: var(--pixel-white);
    font-weight: 500;
}

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

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .image-attachment {
        max-width: 250px;
    }
    
    .video-attachment {
        max-width: 250px;
    }
}

.ticket-modal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ticket-info {
    background: linear-gradient(135deg, rgba(0, 20, 20, 0.95), rgba(0, 15, 15, 0.9));
    border-bottom: 3px solid var(--pixel-cyan);
    padding: var(--pixel-4);
    box-shadow: 0 2px 15px rgba(0, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.ticket-messages {
    padding: var(--pixel-3);
    flex: 1;
    overflow-y: auto;
    min-height: 0; 
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.ticket-messages::-webkit-scrollbar {
    display: none; 
}

.message {
    margin-bottom: var(--pixel-4);
    display: flex;
    align-items: flex-start;
    gap: var(--pixel-3);
    animation: slideIn 0.3s ease-out;
}

.message.admin {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--pixel-cyan), rgba(0, 255, 255, 0.8));
    color: var(--pixel-black);
    border-color: var(--pixel-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.message.admin .message-avatar {
    background: linear-gradient(135deg, var(--pixel-red), rgba(255, 0, 100, 0.8));
    color: var(--pixel-white);
    border-color: var(--pixel-red);
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.4);
}

.message-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--pixel-gray);
    border-radius: calc(var(--pixel-unit) * 2);
    padding: var(--pixel-3);
    max-width: 75%;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.message.admin .message-content {
    border-color: var(--pixel-cyan);
    background: rgba(0, 20, 20, 0.9);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
}

.message-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.message.admin .message-content:hover {
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.2);
}

.message-text {
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    letter-spacing: 0.3px;
}

.message-file {
    margin-top: var(--pixel-unit);
}

.message-file img, .message-file video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid var(--pixel-gray);
}

.message-time {
    color: var(--pixel-gray);
    font-family: var(--pixel-font);
    font-size: 10px;
    margin-top: 4px;
}


.loading-state {
    text-align: center;
    padding: var(--pixel-8);
    color: var(--pixel-gray-light);
    font-family: var(--pixel-font);
    font-size: 12px;
}

.pixel-spinner {
    border: 2px solid var(--pixel-gray);
    border-top: 2px solid var(--pixel-cyan);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--pixel-2);
}

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

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

@keyframes borderPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}


@media (max-width: 768px) {
    .support-tabs {
        flex-direction: column;
        gap: var(--pixel-unit);
    }
    
    .support-tab-btn {
        justify-content: center;
        border-radius: var(--pixel-unit);
    }
    
    .create-ticket-form {
        padding: var(--pixel-2);
    }

    
    .pixel-input, 
    .pixel-textarea,
    .pixel-select {
        font-size: 16px !important; 
        padding: 12px !important;
        border-radius: 8px !important;
        min-height: 44px; 
    }

    .pixel-textarea {
        min-height: 100px !important;
        resize: vertical;
    }

    
    .pixel-btn {
        min-height: 44px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        touch-action: manipulation;
    }
    
    .ticket-modal {
        max-width: 95vw;
        width: 95vw;
        max-height: 80vh;
        height: 80vh;
        border-width: 1px;
        margin: 0;
        position: relative;
    }
    
    .message-content {
        max-width: 90%;
        padding: var(--pixel-2);
        font-size: 13px;
    }
    
    .message-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .message {
        gap: var(--pixel-2);
    }
    
    .dropdown-options {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: var(--pixel-unit);
        border-top: 2px solid var(--pixel-cyan);
        z-index: 1001;
        
        margin: 0 auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }

    
    .pixel-dropdown {
        position: relative;
    }

    
    .dropdown-options.align-right {
        left: auto;
        right: 0;
    }

    
    .pixel-btn:focus,
    .pixel-input:focus,
    .pixel-select:focus {
        outline: none;
        box-shadow: 0 0 0 2px var(--pixel-cyan);
    }

    
    .modal-overlay {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Мобильная корзина имеет отдельный элемент #mobileCartModal */

    
    .pixel-modal,
    .modal-overlay {
        will-change: transform, opacity;
        transform: translateZ(0);
    }

    
    .modal-overlay {
        z-index: 100040;
    }

    .pixel-modal {
        z-index: 100041;
    }
    
    .pixel-dropdown.open .dropdown-options {
        max-height: 60vh;
        
        position: absolute !important;
        top: 100% !important;
        transform: none !important;
    }

    
    .dropdown-container {
        position: relative;
        z-index: 1001;
    }
    
    .support-tabs {
        background: rgba(0, 0, 0, 0.8);
        padding: 16px;
        border-radius: 12px;
        border: 2px solid var(--pixel-cyan);
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        gap: 12px;
    }
    
    .support-tab-btn {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 700;
        min-height: 56px;
        border-width: 2px;
        text-transform: uppercase;
        letter-spacing: 1px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        transition: all 0.2s ease;
    }
    
    .support-tab-btn.active {
        background: linear-gradient(135deg, var(--pixel-cyan) 0%, #00bcd4 100%);
        color: var(--pixel-black);
        text-shadow: none;
        box-shadow: 
            0 6px 20px rgba(0, 255, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .support-tab-btn:active {
        transform: translateY(2px) scale(0.98);
    }
    
    .create-ticket-form {
        padding: 20px;
        border-radius: 12px;
        border-width: 2px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 17, 34, 0.95) 100%);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.5),
            0 2px 12px rgba(0, 255, 255, 0.2);
        backdrop-filter: blur(15px);
    }
    
    .pixel-label {
        font-weight: 700;
        color: var(--pixel-cyan);
        text-shadow: 0 0 8px var(--pixel-cyan);
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .form-actions {
        position: sticky;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 17, 34, 0.98) 100%);
        padding: 20px 16px 25px;
        border-top: 3px solid var(--pixel-cyan);
        margin: 20px -20px -20px -20px;
        gap: 15px;
        border-radius: 0 0 12px 12px;
        box-shadow: 
            0 -8px 25px rgba(0, 0, 0, 0.7),
            0 0 20px rgba(0, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        z-index: 100;
    }
    
    .file-upload-area {
        padding: 20px;
        border-radius: 10px;
        border-width: 2px;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.6);
        transition: all 0.3s ease;
    }
    
    .file-upload-area:hover {
        background: rgba(0, 255, 255, 0.1);
        border-color: var(--pixel-cyan);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }
}


.validation-error {
    border: 2px solid #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

.pixel-error-message {
    background: rgba(255, 68, 68, 0.9);
    color: white;
    padding: 4px 8px;
    margin-top: 4px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    border: 1px solid #ff4444;
    border-radius: 2px;
    position: relative;
    z-index: 10;
    animation: fadeInError 0.3s ease-out;
}

.pixel-error-message::before {
    content: '⚠ ';
    font-weight: bold;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeInError {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}


.telegram-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 16px;
}


.telegram-status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.telegram-status-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0088cc, #229ed9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.status-info {
    flex: 1;
}

.status-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--pixel-white);
    line-height: 1.3;
}

.status-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
}

.status-indicator.unlinked {
    background: #666;
    box-shadow: 0 0 0 2px rgba(102, 102, 102, 0.2);
}

.status-indicator.linked {
    background: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

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


.telegram-setup {
    margin-bottom: 24px;
}

.setup-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.setup-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--pixel-cyan);
    text-align: center;
}

.setup-steps {
    margin-bottom: 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.step-number {
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pixel-cyan);
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}


.bot-action {
    margin: 20px 0;
    text-align: center;
}

.bot-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.bot-link:hover {
    background: linear-gradient(135deg, #229ed9, #0088cc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.bot-link i {
    font-size: 16px;
}


.code-input {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.code-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--pixel-white);
    font-family: var(--pixel-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.code-field:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.code-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    letter-spacing: normal;
}

.verify-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--pixel-cyan);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.verify-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
}

.verify-btn:active {
    transform: translateY(1px);
}


.telegram-connected {
    margin-bottom: 24px;
}

.connected-card {
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.connected-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #4CAF50;
    font-size: 16px;
    font-weight: 600;
}

.connected-status i {
    font-size: 18px;
}

.benefits {
    margin-bottom: 24px;
}

.benefits-title {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.benefits-grid {
    display: grid;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.benefit-item i {
    width: 16px;
    color: #4CAF50;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.disconnect-action {
    text-align: center;
}

.disconnect-btn {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.disconnect-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.5);
}


@media (max-width: 768px) {
    .telegram-container {
        padding: 0 12px;
        max-width: 100%;
    }
    
    .telegram-status-card {
        padding: 20px;
        margin-bottom: 24px;
        border-radius: 14px;
        border-width: 2px;
    }
    
    .status-header {
        gap: 14px;
    }
    
    .status-icon {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    
    .status-title {
        font-size: 19px;
        font-weight: 700;
    }
    
    .status-desc {
        font-size: 15px;
        line-height: 1.5;
    }
    
    .telegram-setup {
        width: 100%;
        max-width: 100%;
    }
    
    .setup-card {
        padding: 24px 20px;
        border-radius: 14px;
        border-width: 2px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .setup-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 20px;
    }
    
    .step {
        gap: 14px;
        margin-bottom: 14px;
        padding: 10px 0;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 15px;
        font-weight: 700;
        border-width: 2px;
    }
    
    .step-text {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .bot-action {
        margin: 24px 0;
    }
    
    .bot-link {
        padding: 20px 24px;
        font-size: 18px;
        font-weight: 700;
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        min-height: 64px;
        box-shadow: 
            0 6px 20px rgba(0, 136, 204, 0.4),
            0 0 30px rgba(0, 136, 204, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        letter-spacing: 0.5px;
    }
    
    .bot-link i {
        font-size: 22px;
    }
    
    .bot-link:active {
        transform: scale(0.96);
        box-shadow: 
            0 4px 15px rgba(0, 136, 204, 0.5),
            inset 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .code-input {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
        width: 100%;
        max-width: 100%;
        display: flex;
    }
    
    .code-field {
        padding: 18px 20px;
        font-size: 16px;
        border-width: 2px;
        border-radius: 12px;
        min-height: 56px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .telegram-setup .verify-btn,
    .setup-card .verify-btn,
    #telegramUnlinked .verify-btn,
    .code-input .verify-btn {
        padding: 20px 24px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        border-width: 2px !important;
        border-radius: 12px !important;
        min-height: 68px !important;
        max-height: 68px !important;
        height: 68px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        line-height: 68px !important;
        color: var(--pixel-cyan) !important;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.15)) !important;
        border-color: var(--pixel-cyan) !important;
        box-shadow: 
            0 6px 20px rgba(0, 255, 255, 0.3),
            0 0 30px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.6) !important;
    }
    
    .telegram-setup .verify-btn:active,
    .setup-card .verify-btn:active,
    #telegramUnlinked .verify-btn:active,
    .code-input .verify-btn:active {
        transform: scale(0.96) !important;
        box-shadow: 
            0 4px 15px rgba(0, 255, 255, 0.4),
            inset 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    }
    
    .connected-card {
        padding: 20px 16px;
        border-radius: 10px;
    }
    
    .connected-status {
        font-size: 18px;
        margin-bottom: 24px;
        gap: 10px;
        font-weight: 700;
    }
    
    .connected-status i {
        font-size: 22px;
    }
    
    .benefits-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 18px;
    }
    
    .benefits-grid {
        gap: 14px;
    }
    
    .benefit-item {
        padding: 10px 0;
        gap: 14px;
    }
    
    .benefit-item i {
        width: 20px;
        font-size: 18px;
    }
    
    .benefit-item span {
        font-size: 15px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .disconnect-btn {
        padding: 18px 28px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-width: 2px;
        border-radius: 12px;
        min-height: 60px;
        width: 100%;
        box-shadow: 
            0 5px 18px rgba(244, 67, 54, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .disconnect-btn:active {
        transform: scale(0.96);
        box-shadow: 
            0 3px 12px rgba(244, 67, 54, 0.4),
            inset 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}


@media (max-width: 480px) {
    .telegram-container {
        padding: 0 8px;
    }
    
    .telegram-status-card {
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .status-header {
        gap: 12px;
    }
    
    .status-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .status-title {
        font-size: 18px;
        font-weight: 700;
    }
    
    .status-desc {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .telegram-setup {
        width: 100%;
        max-width: 100%;
    }
    
    .setup-card {
        padding: 20px 16px;
        border-radius: 12px;
        border-width: 2px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .setup-title {
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 18px;
    }
    
    .setup-steps {
        margin-bottom: 20px;
    }
    
    .step {
        gap: 12px;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
        font-weight: 700;
        border-width: 2px;
    }
    
    .step-text {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .bot-action {
        margin: 20px 0;
    }
    
    .bot-link {
        padding: 18px 22px;
        font-size: 17px;
        font-weight: 700;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
        min-height: 60px;
        gap: 8px;
        box-shadow: 
            0 5px 18px rgba(0, 136, 204, 0.4),
            0 0 25px rgba(0, 136, 204, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        letter-spacing: 0.3px;
    }
    
    .bot-link i {
        font-size: 20px;
    }
    
    .bot-link:active {
        transform: scale(0.96);
        box-shadow: 
            0 3px 12px rgba(0, 136, 204, 0.5),
            inset 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .code-input {
        gap: 14px;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .code-field {
        padding: 16px 18px;
        font-size: 15px;
        border-width: 2px;
        border-radius: 10px;
        min-height: 52px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .telegram-setup .verify-btn,
    .setup-card .verify-btn,
    #telegramUnlinked .verify-btn,
    .code-input .verify-btn {
        padding: 18px 20px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        border-width: 2px !important;
        border-radius: 10px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        height: 64px !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        line-height: 64px !important;
        color: var(--pixel-cyan) !important;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 255, 0.15)) !important;
        border-color: var(--pixel-cyan) !important;
        box-shadow: 
            0 5px 18px rgba(0, 255, 255, 0.3),
            0 0 25px rgba(0, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        text-shadow: 0 0 12px rgba(0, 255, 255, 0.6) !important;
    }
    
    .telegram-setup .verify-btn:active,
    .setup-card .verify-btn:active,
    #telegramUnlinked .verify-btn:active,
    .code-input .verify-btn:active {
        transform: scale(0.96) !important;
        box-shadow: 
            0 3px 12px rgba(0, 255, 255, 0.4),
            inset 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    .connected-card {
        padding: 16px 12px;
    }
    
    .connected-status {
        font-size: 17px;
        margin-bottom: 20px;
        gap: 8px;
        font-weight: 700;
    }
    
    .connected-status i {
        font-size: 20px;
    }
    
    .benefits-title {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 16px;
    }
    
    .benefits-grid {
        gap: 12px;
    }
    
    .benefit-item {
        gap: 12px;
        padding: 8px 0;
    }
    
    .benefit-item i {
        width: 18px;
        font-size: 16px;
    }
    
    .benefit-item span {
        font-size: 14px;
        font-weight: 500;
        line-height: 1.5;
    }
    
    .disconnect-btn {
        padding: 16px 24px;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        border-width: 2px;
        border-radius: 10px;
        min-height: 56px;
        width: 100%;
        box-shadow: 
            0 4px 15px rgba(244, 67, 54, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .disconnect-btn:active {
        transform: scale(0.96);
        box-shadow: 
            0 2px 10px rgba(244, 67, 54, 0.4),
            inset 0 2px 6px rgba(0, 0, 0, 0.2);
    }
}


@media (max-width: 992px) and (min-width: 769px) {
    .telegram-container {
        max-width: 600px;
        padding: 0 20px;
    }
    
    .telegram-status-card {
        padding: 24px;
    }
    
    .setup-card {
        padding: 28px;
    }
    
    .connected-card {
        padding: 28px;
    }
}

/* Hide old cart panel - using floating button now */
.cart-section {
    display: none !important;
}

/* Fix layout when cart is hidden */
.shop-layout {
    padding-right: 0 !important;
}

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

.accounts-matrix {
    min-height: 100vh !important;
}

/* ============================================
   PIXEL CART FLOATING BUTTON
   ============================================ */
.pixel-cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: rgba(0, 17, 34, 0.95);
    border: 2px solid #00ffff;
    border-radius: 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(0, 255, 255, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2);
    cursor: pointer;
    z-index: 100002;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    image-rendering: pixelated;
    backdrop-filter: blur(10px);
}

.pixel-cart-float:hover {
    transform: translateY(-4px);
    background: rgba(0, 17, 34, 1);
    border-color: #00ffff;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(0, 255, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.4),
        0 -2px 0 0 #00ffff inset;
}

.pixel-cart-float:active {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3);
}

.cart-float-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 255, 255, 0.5));
    position: relative;
    z-index: 2;
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cart-float-icon i {
    line-height: 1;
    pointer-events: none;
}

.cart-float-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    background: #00ffff;
    color: #001122;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #001122;
    box-shadow: 
        0 2px 6px rgba(0, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-float-badge:not(:empty):not([data-count="0"]) {
    display: flex;
}

.cart-float-badge:empty {
    display: none;
}

.cart-float-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes cartIconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

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

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

/* ============================================
   CART MODAL
   ============================================ */
#cartModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cartModal.show {
    opacity: 1;
}

.cart-modal {
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    background: linear-gradient(135deg, #0A1929 0%, #0F2440 100%);
    border: 4px solid var(--pixel-cyan);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 255, 255, 0.4),
        inset 0 2px 0 rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.cart-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 2px,
            rgba(0, 255, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.pixel-modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-bottom: 3px solid var(--pixel-cyan);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.pixel-modal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: var(--pixel-cyan);
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.8),
        2px 2px 0 rgba(0, 100, 100, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.title-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.title-icon i {
    line-height: 1;
}

.pixel-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(0, 17, 34, 0.9);
    border: 2px solid #ff0050;
    color: #ff0050;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 0 10px rgba(255, 0, 80, 0.3),
        inset 0 0 0 1px rgba(255, 0, 80, 0.2);
}

.pixel-modal-close::before,
.pixel-modal-close::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 2px;
    background: #ff0050;
    transition: all 0.3s ease;
}

.pixel-modal-close::before {
    transform: rotate(45deg);
}

.pixel-modal-close::after {
    transform: rotate(-45deg);
}

.pixel-modal-close:hover {
    background: rgba(255, 0, 80, 0.3);
    border-color: #ff0050;
    box-shadow: 
        0 0 25px rgba(255, 0, 80, 0.8),
        inset 0 0 0 1px rgba(255, 0, 80, 0.5),
        2px 2px 0 rgba(255, 0, 80, 0.4),
        -2px -2px 0 rgba(0, 255, 255, 0.3);
    transform: scale(1.15);
    animation: pixelGlitch 0.3s ease-in-out;
}

.pixel-modal-close:hover::before,
.pixel-modal-close:hover::after {
    width: 16px;
    background: #ff0050;
    box-shadow: 
        0 0 10px rgba(255, 0, 80, 1),
        1px 1px 0 rgba(0, 255, 255, 0.6);
}

.pixel-modal-close:active {
    transform: scale(1.05);
    animation: none;
}

.pixel-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.cart-modal-body {
    background: rgba(0, 0, 0, 0.2);
    max-height: 50vh;
}

.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pixel-modal-footer {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-top: 3px solid var(--pixel-cyan);
    padding: 20px 25px;
    position: relative;
    z-index: 2;
}

.cart-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-total-section {
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 15px 20px;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cart-total-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--pixel-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.cart-total-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: #fff;
    text-shadow: 
        0 0 15px rgba(0, 255, 255, 0.8),
        2px 2px 0 rgba(0, 150, 150, 0.5);
}

.cart-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-actions .pixel-btn {
    flex: 1;
    min-width: 140px;
}

/* Mobile Cart Modal - Полноэкранная версия */
.mobile-cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0A1929 0%, #0F2440 100%);
    z-index: 100005;
    flex-direction: column;
    animation: slideInFromBottom 0.3s ease-out;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-cart-modal.closing {
    animation: slideOutToBottom 0.3s ease-out;
}

@keyframes slideOutToBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.mobile-cart-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-bottom: 3px solid #00ffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.mobile-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ffff;
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.mobile-cart-title i {
    font-size: 18px;
}

.mobile-cart-close {
    background: transparent;
    border: 2px solid #ff4757;
    color: #ff4757;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-cart-close:active {
    background: rgba(255, 71, 87, 0.2);
    transform: scale(0.95);
}

.mobile-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
}

.mobile-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-cart-footer {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border-top: 3px solid #00ffff;
    padding: 15px 20px;
    flex-shrink: 0;
}

.mobile-cart-total {
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-total-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    color: #00ffff;
    letter-spacing: 1px;
}

.mobile-total-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 800;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.mobile-cart-actions {
    display: flex;
    gap: 10px;
}

.mobile-btn-clear,
.mobile-btn-checkout {
    flex: 1;
    padding: 16px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-btn-clear {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
}

.mobile-btn-clear:active {
    background: rgba(0, 255, 255, 0.1);
    transform: scale(0.98);
}

.mobile-btn-checkout {
    background: #00ffff;
    color: #001122;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.mobile-btn-checkout:disabled {
    background: rgba(0, 255, 255, 0.3);
    color: rgba(0, 17, 34, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

.mobile-btn-checkout:not(:disabled):active {
    transform: scale(0.98);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

/* ============================================
   УЛУЧШЕННЫЙ ДИЗАЙН ТОВАРОВ В КОРЗИНЕ (МОБИЛЬНАЯ)
   ============================================ */

.mobile-cart-items .cart-item {
    background: linear-gradient(135deg, rgba(0, 30, 50, 0.95), rgba(0, 50, 70, 0.95));
    border: 3px solid rgba(0, 255, 255, 0.4);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Анимированная сканлиния для мобильных */
.mobile-cart-items .cart-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.15), transparent);
    animation: cartItemScan 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.mobile-cart-items .cart-item.selected {
    border-color: #00ffff;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 200, 200, 0.15));
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        0 0 35px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.15);
    transform: scale(1.01);
}

/* Верхняя секция с чекбоксом и названием */
.mobile-cart-items .cart-item-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.mobile-cart-items .cart-item-checkbox {
    width: 32px;
    height: 32px;
    border: 3px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.mobile-cart-items .cart-item-checkbox:checked {
    background: linear-gradient(135deg, #00ffff, #00cccc);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    transform: scale(1.1);
}

.mobile-cart-items .cart-item-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 20px;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.mobile-cart-items .cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.mobile-cart-items .cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-cart-items .cart-item-name {
    font-family: var(--pixel-font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.mobile-cart-items .cart-item-price {
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: 800;
    color: #ffa500;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.25), rgba(255, 140, 0, 0.15));
    padding: 8px 14px;
    border: 3px solid rgba(255, 165, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

/* Нижняя секция с управлением количеством */
.mobile-cart-items .cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.mobile-cart-items .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-cart-items .cart-item-quantity button {
    background: linear-gradient(135deg, #00ffff, #00cccc);
    border: 3px solid #00ffff;
    color: #000;
    width: 48px;
    height: 48px;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.mobile-cart-items .cart-item-quantity button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.mobile-cart-items .cart-item-quantity button:active::before {
    width: 100px;
    height: 100px;
}

.mobile-cart-items .cart-item-quantity button:active {
    background: linear-gradient(135deg, #00cccc, #009999);
    transform: scale(0.92);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.mobile-cart-items .cart-item-quantity input {
    width: 65px;
    height: 48px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 200, 0.1));
    border: 3px solid rgba(0, 255, 255, 0.5);
    color: #fff;
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.mobile-cart-items .cart-item-total {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: #00ff00;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.25), rgba(0, 200, 0, 0.15));
    padding: 10px 16px;
    border: 3px solid rgba(0, 255, 0, 0.5);
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    letter-spacing: 1px;
}

.mobile-cart-items .empty-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.mobile-cart-items .empty-cart-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 30px;
}

/* Простая иконка пустой корзины */
.empty-icon {
    font-size: 64px;
    color: #00ffff;
    margin: 0 auto;
    display: block;
    text-align: center;
    opacity: 0.6;
    animation: gentlePulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.empty-icon::before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

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

/* Для боковой панели - меньший размер */
.cart-items .empty-icon {
    font-size: 48px;
}

.mobile-cart-items .empty-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 16px;
    color: #00ffff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.mobile-cart-items .empty-subtext {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(0, 255, 255, 0.7);
    line-height: 1.6;
}

/* Анимация появления элементов */
@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-cart-items .cart-item {
    animation: itemSlideIn 0.4s ease-out;
}

/* Анимация при изменении количества */
@keyframes quantityChange {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        color: #ffffff;
        text-shadow: 0 0 15px rgba(0, 255, 255, 1);
    }
}

/* Mobile Responsive - скрываем десктопную корзину на мобильных */
@media (max-width: 768px) {
    .desktop-cart {
        display: none !important;
    }
    
    .pixel-cart-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
        z-index: 100002;
    }
    
    .cart-float-icon {
        font-size: 24px;
    }
    
    .cart-float-icon i {
        font-size: 24px;
    }
    
    .cart-float-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
    
    .pixel-modal-header {
        padding: 15px 18px;
    }
    
    .pixel-modal-title {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .pixel-modal-body {
        padding: 15px;
    }
    
    .cart-modal-body {
        max-height: 55vh;
    }
    
    .cart-item {
        padding: 12px;
        border-width: 2px;
    }
    
    .cart-item-name {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .cart-item-price {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .cart-item-quantity button {
        min-width: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .cart-item-quantity input {
        width: 45px;
        font-size: 13px;
        height: 32px;
    }
    
    .cart-item-remove {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .cart-item-total {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .cart-total-section {
        padding: 12px 15px;
    }
    
    .cart-total-label {
        font-size: 12px;
    }
    
    .cart-total-value {
        font-size: 16px;
    }
    
    .pixel-modal-footer {
        padding: 15px 18px;
    }
    
    .cart-actions .pixel-btn {
        min-width: 0;
        padding: 12px 18px;
        font-size: 12px;
    }
    
    .btn-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .pixel-cart-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        z-index: 100002;
    }
    
    .cart-float-icon {
        font-size: 20px;
    }
    
    .cart-float-icon i {
        font-size: 20px;
    }
    
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .pixel-cart-float {
        width: 50px;
        height: 50px;
        bottom: 12px;
        right: 12px;
    }
    
    /* Адаптация мобильной корзины для маленьких экранов */
    .mobile-cart-items .cart-item {
        padding: 14px;
        gap: 12px;
    }
    
    .mobile-cart-items .cart-item-name {
        font-size: 13px;
    }
    
    .mobile-cart-items .cart-item-price {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .mobile-cart-items .cart-item-quantity button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .mobile-cart-items .cart-item-quantity input {
        width: 55px;
        height: 40px;
        font-size: 15px;
    }
    
    .mobile-cart-items .cart-item-total {
        font-size: 10px;
        padding: 7px 12px;
    }
}

/* Ландшафтная ориентация для мобильных - используется мобильная корзина */

/* Touch-friendly стили для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
    /* Улучшенные touch-области для мобильной корзины */
    .mobile-cart-items .cart-item-checkbox {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-cart-items .cart-item-quantity button {
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    .mobile-cart-items .cart-item-quantity input {
        min-height: 48px;
    }
    
    /* Увеличиваем область нажатия для всех интерактивных элементов */
    .cart-item-checkbox {
        min-width: 20px;
        min-height: 20px;
        margin: 4px;
    }
    
    .cart-item-remove {
        min-width: 36px;
        min-height: 36px;
        padding: 8px;
    }
    
    .cart-item-quantity button {
        min-width: 40px;
        min-height: 40px;
        touch-action: manipulation;
    }
    
    .pixel-modal-close {
        min-width: 40px;
        min-height: 40px;
        padding: 10px;
    }
    
    .cart-actions .pixel-btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Убираем hover эффекты для сенсорных устройств */
    .cart-item:hover {
        background: rgba(0, 0, 0, 0.8);
        border-color: var(--pixel-gray);
    }
    
    .cart-item:active {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--pixel-cyan);
    }
    
    /* Улучшенная прокрутка */
    .cart-modal-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Предотвращаем случайные зумы */
    .cart-item-quantity input {
        font-size: 16px !important;
    }
}

.atri-guide {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9998;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
    max-width: 500px;
    animation: atriSlideIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
}

@keyframes atriSlideIn {
    0% {
        transform: translateX(-150%) translateY(50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

.atri-character {
    position: relative;
    flex-shrink: 0;
    animation: atriFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 255, 255, 0.3));
}

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

.atri-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    animation: atriPulse 2s ease-in-out infinite;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

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

@keyframes atriPixelDissolve {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px) brightness(1);
    }
    30% {
        filter: blur(0px) brightness(1.2);
    }
    60% {
        opacity: 0.7;
        transform: scale(0.98);
        filter: blur(1px) brightness(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(3px) brightness(1.3);
    }
}

.atri-pixel {
    will-change: transform, opacity;
    border-radius: 1px;
}

.atri-pixel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

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

.atri-bubble {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.98) 0%, rgba(0, 40, 60, 0.98) 100%);
    border: 2px solid var(--pixel-cyan);
    border-radius: 16px;
    padding: 16px 18px;
    max-width: 350px;
    flex: 1;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 30px rgba(0, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.6);
    animation: bubbleAppear 0.5s ease-out 0.3s backwards;
    position: relative;
    overflow: hidden;
}

@keyframes bubbleAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Пиксельная текстура для облачка */
.atri-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 3px
        );
    pointer-events: none;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(8px);
    }
}

/* Пиксельная анимация краев */
.atri-bubble::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid transparent;
    border-radius: 12px;
    background: 
        linear-gradient(90deg, var(--pixel-cyan), transparent, var(--pixel-cyan)) border-box,
        linear-gradient(0deg, var(--pixel-cyan), transparent, var(--pixel-cyan)) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.3;
    animation: borderGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.bubble-arrow {
    position: absolute;
    bottom: 20px;
    left: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--pixel-cyan) transparent transparent;
    filter: drop-shadow(-2px 0 0 var(--pixel-cyan));
}

.bubble-arrow::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent rgba(0, 30, 50, 0.98) transparent transparent;
}

.bubble-content {
    position: relative;
    z-index: 1;
}

.bubble-text {
    font-family: var(--pixel-font);
    font-size: 12px;
    line-height: 1.5;
    color: var(--pixel-cyan);
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.bubble-text.small {
    font-size: 10px;
    color: rgba(0, 255, 255, 0.75);
    margin-bottom: 12px;
}

.atri-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 150, 150, 0.2) 100%);
    border: 2px solid var(--pixel-cyan);
    border-radius: 8px;
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.8px;
}

.atri-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3) 0%, rgba(0, 200, 200, 0.3) 100%);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.4),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.btn-pixel-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.btn-pixel-border::before,
.btn-pixel-border::after {
    content: '';
    position: absolute;
    background: var(--pixel-cyan);
    animation: pixelBorderMove 2s linear infinite;
}

.btn-pixel-border::before {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
}

.btn-pixel-border::after {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
}

@keyframes pixelBorderMove {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.btn-text {
    position: relative;
    z-index: 1;
}

.atri-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 4px;
    color: var(--pixel-cyan);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--pixel-font);
    z-index: 2;
}

.atri-close:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(0, 200, 200, 0.3));
    border-color: var(--pixel-cyan);
    transform: scale(1.15);
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.6),
        inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.atri-close:active {
    transform: scale(0.95);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.4),
        inset 0 0 8px rgba(0, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .atri-guide {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: calc(100vw - 40px);
        gap: 12px;
    }
    
    .atri-image {
        width: 60px;
        height: 60px;
    }
    
    .atri-pixel-glow {
        width: 70px;
        height: 70px;
    }
    
    .atri-bubble {
        padding: 14px 16px;
        max-width: 100%;
    }
    
    .bubble-arrow {
        bottom: 15px;
        left: -12px;
        border-width: 8px 12px 8px 0;
    }
    
    .bubble-arrow::after {
        border-width: 6px 10px 6px 0;
    }
    
    .bubble-text {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .bubble-text.small {
        font-size: 9px;
        margin-bottom: 10px;
    }
    
    .atri-btn {
        padding: 9px 14px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .atri-guide {
        bottom: 15px;
        left: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .atri-image {
        width: 50px;
        height: 50px;
    }
    
    .atri-pixel-glow {
        width: 60px;
        height: 60px;
    }
    
    .atri-bubble {
        padding: 12px 14px;
    }
    
    .bubble-arrow {
        bottom: 12px;
        left: -10px;
        border-width: 6px 10px 6px 0;
    }
    
    .bubble-arrow::after {
        border-width: 5px 8px 5px 0;
    }
    
    .bubble-text {
        font-size: 10px;
        margin-bottom: 5px;
    }
    
    .bubble-text.small {
        font-size: 8px;
        margin-bottom: 8px;
    }
    
    .atri-btn {
        padding: 8px 12px;
        font-size: 9px;
    }
}

/* ================================
   RESPONSIVE CAPTCHA STYLES
   ================================ */

/* Tablet and smaller */
@media (max-width: 768px) {
    .challenge-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 480px;
        gap: 10px;
        padding: 10px;
    }
    
    .captcha-image {
        min-height: 120px;
        border-width: 2px;
    }
}

/* Mobile devices */
@media (max-width: 600px) {
    .challenge-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 8px;
        padding: 8px;
    }
    
    .captcha-image {
        min-height: 100px;
        border-width: 2px;
        border-radius: 6px;
    }
    
    .captcha-image.selected::before {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Small mobile devices */
@media (max-width: 400px) {
    .challenge-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 6px;
        padding: 6px;
    }
    
    .captcha-image {
        min-height: 90px;
        border-width: 2px;
    }
}

/* ========================================
   ANNOUNCEMENTS CAROUSEL
   ======================================== */

.announcements-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px;
    padding: 0 15px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.03), rgba(0, 170, 255, 0.03));
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 255, 255, 0.1),
        inset 0 0 15px rgba(0, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.clickable {
    cursor: pointer;
    transition: all 0.4s ease;
}

.carousel-slide.clickable:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.carousel-slide.clickable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.08), 
        rgba(0, 170, 255, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 14px;
    pointer-events: none;
}

.carousel-slide.clickable:hover::after {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 20, 40, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: rgba(0, 255, 255, 0.85);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    opacity: 0.9;
}

.carousel-nav:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.7);
    color: rgba(0, 255, 255, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    opacity: 1;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: rgba(0, 255, 255, 0.9);
    border-color: rgba(0, 255, 255, 1);
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .announcements-carousel {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .carousel-container {
        height: 140px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicator.active {
        width: 22px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 120px;
    }
    
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

