* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden !important;
    background-color: #0f0f0f; 
}

.waiting-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform: translateZ(0);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform;
}

.blob-1 {
    width: 350px;
    height: 350px;
    /* Имитация размытия градиентом */
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: float 8s infinite ease-in-out, pulse-blob 4s infinite ease-in-out;
}

.blob-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    bottom: -50px;
    right: -80px;
    animation: float 10s infinite ease-in-out reverse, pulse-blob 5s infinite ease-in-out 1s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: float 7s infinite ease-in-out, pulse-blob 3s infinite ease-in-out 0.5s;
}

.blob-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-purple-light) 0%, transparent 70%);
    bottom: 30%;
    left: -50px;
    animation: float 9s infinite ease-in-out reverse, pulse-blob 4s infinite ease-in-out 2s;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(20px, 20px, 0); }
}

@keyframes pulse-blob {
    0%, 100% { opacity: 0.5; transform: scale(1) translateZ(0); }
    50% { opacity: 0.8; transform: scale(1.1) translateZ(0); }
}

.logo-container {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
    will-change: transform, opacity;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-purple) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 20px var(--accent-purple-glow);
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.loader-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    will-change: transform, opacity;
}

.outer-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-purple);
    border-right-color: var(--primary-purple);
    animation: spin 1.5s linear infinite;
    will-change: transform;
}

.middle-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple-soft);
    animation: pulse-ring 2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.inner-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--accent-purple-light);
    border-left-color: #14F195;
    animation: spin 1s linear infinite reverse;
    will-change: transform;
}

.center-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-purple-light), var(--primary-purple), var(--primary-dark));
    box-shadow: 0 0 30px var(--accent-purple-glow);
}

.center-orb::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: inherit;
    box-shadow: 0 0 60px var(--accent-purple-glow);
    opacity: 0.5;
    animation: glow-opacity 2s ease-in-out infinite;
    will-change: opacity;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glow-opacity {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.particles {
    position: absolute;
    width: 200px;
    height: 200px;
    animation: spin 8s linear infinite;
    will-change: transform;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14F195;
    box-shadow: 0 0 8px rgba(20, 241, 149, 0.4);
}

.particle:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.particle:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); background: #9945FF; box-shadow: 0 0 8px rgba(153, 69, 255, 0.4); }
.particle:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); background: #7a3fb0; box-shadow: 0 0 8px rgba(122, 63, 176, 0.4); }
.particle:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

.text-section {
    margin-top: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    will-change: transform, opacity;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7a3fb0;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translate3d(0, 0, 0); opacity: 0.5; }
    40% { transform: translate3d(0, -12px, 0); opacity: 1; }
}

.loading-subtext {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.progress-container {
    width: 200px;
    height: 4px;
    background: rgba(107, 33, 168, 0.2);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a1580, #7a3fb0, #9945FF, #14F195);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progress 1.5s ease-out forwards, gradient-shift 1s linear infinite;
    will-change: width, background-position;
}

@keyframes progress {
    to { width: 100%; }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(122, 63, 176, 0.6);
    border-radius: 50%;
    animation: float-up 8s linear infinite;
    will-change: transform, opacity;
}

.floating-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 6s; }
.floating-particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 8s; }
.floating-particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 7s; }
.floating-particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 9s; }
.floating-particle:nth-child(5) { left: 60%; animation-delay: 2.5s; animation-duration: 8s; }
.floating-particle:nth-child(6) { left: 80%; animation-delay: 1.8s; animation-duration: 9s; }

@keyframes float-up {
    0% {
        transform: translate3d(0, 100vh, 0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate3d(0, 90vh, 0) scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate3d(0, -10vh, 0) scale(0.5);
        opacity: 0;
    }
}

.version-tag {
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
    left: auto !important;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 99999 !important;
    font-family: system-ui, -apple-system, sans-serif;
    pointer-events: none;
    padding: 6px 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    letter-spacing: 0.5px;
    transform: none !important;
}