* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary: #a855f7;
    --accent: #ec4899;
    --accent-purple: #c084fc;
    --accent-blue: #3b82f6;
    --accent-magenta: #f472b6;
    --bg-dark: #000000;
    --bg-card: rgba(15, 15, 30, 0.4);
    --bg-card-hover: rgba(25, 25, 50, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #b4b4d4;
    --border: rgba(139, 92, 246, 0.2);
    --glow: rgba(139, 92, 246, 0.6);
    --glow-purple: rgba(192, 132, 252, 0.5);
    --glow-blue: rgba(59, 130, 246, 0.5);
    --glow-magenta: rgba(244, 114, 182, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Оптимизация производительности */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ultra-Premium Cyber Background */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Animated Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0));
    bottom: -300px;
    right: -300px;
    animation-delay: 7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.8), rgba(244, 114, 182, 0));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.6;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.5;
    }
}

/* Energy Waves */
.energy-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(59, 130, 246, 0.1) 50%, transparent 100%);
    background-size: 200% 200%;
    animation: waveFlow 15s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes waveFlow {
    0%, 100% {
        background-position: 0% 0%, 0% 0%;
    }
    50% {
        background-position: 100% 100%, 100% 100%;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(139, 92, 246, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(59, 130, 246, 0.3), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(244, 114, 182, 0.3), transparent),
        radial-gradient(1px 1px at 90% 50%, rgba(192, 132, 252, 0.3), transparent);
    background-size: 200% 200%, 150% 150%, 180% 180%, 120% 120%, 160% 160%;
    animation: particleFloat 30s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    25% {
        background-position: 50% 25%, 30% 50%, 70% 30%, 20% 60%, 80% 20%;
    }
    50% {
        background-position: 100% 50%, 60% 100%, 100% 60%, 40% 100%, 100% 40%;
    }
    75% {
        background-position: 50% 75%, 30% 50%, 70% 70%, 20% 40%, 80% 80%;
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 0 -20px 30px -20px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 30, 0.3);
    border-radius: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.1) inset;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Premium VOID Emblem - Animated Circle with Orbit */
.void-emblem {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(139, 92, 246, 0.15),
        rgba(59, 130, 246, 0.1),
        transparent 70%
    );
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 8px rgba(139, 92, 246, 0.3),
        inset 0 0 12px rgba(139, 92, 246, 0.1);
}

.emblem-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-top-color: rgba(139, 92, 246, 0.6);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
    animation: orbitRotate 8s linear infinite;
    transform-origin: center;
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.emblem-core {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.9),
        rgba(139, 92, 246, 0.8)
    );
    box-shadow: 
        0 0 6px rgba(139, 92, 246, 0.6),
        0 0 12px rgba(139, 92, 246, 0.4);
    position: relative;
}

.emblem-core::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 8px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(139, 92, 246, 0.6),
        transparent
    );
    border-radius: 1px;
}

.logo-title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, 
        #ffffff 0%,
        rgba(255, 255, 255, 0.95) 25%,
        var(--primary) 50%,
        var(--accent-purple) 75%,
        var(--accent-blue) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.logo-title::before {
    content: 'VOID';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(12px);
    opacity: 0.7;
    z-index: -1;
    animation: titleGlowBack 4s ease-in-out infinite;
}

.logo-title::after {
    content: 'VOID';
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(139, 92, 246, 0.3);
    text-shadow: 
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: -2;
    filter: blur(2px);
}

@keyframes titleGlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.2) drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
    }
}

@keyframes titleGlowBack {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.balance-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Three-Dot Menu Icon */
.menu-trigger {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
}

.menu-icon span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 
        0 0 8px rgba(139, 92, 246, 0.6),
        0 0 16px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    animation: dotPulse 2s ease-in-out infinite;
}

.menu-icon span:nth-child(1) {
    animation-delay: 0s;
}

.menu-icon span:nth-child(2) {
    animation-delay: 0.2s;
}

.menu-icon span:nth-child(3) {
    animation-delay: 0.4s;
}

.menu-trigger:hover .menu-icon span {
    background: var(--primary);
    box-shadow: 
        0 0 12px rgba(139, 92, 246, 0.8),
        0 0 24px rgba(139, 92, 246, 0.6);
    transform: scale(1.2);
}

.menu-trigger:hover {
    background: rgba(139, 92, 246, 0.1);
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Holographic Dropdown Menu */
.holographic-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.2) inset,
        0 0 40px rgba(139, 92, 246, 0.3);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.holographic-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.holographic-menu::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple), var(--accent-blue), var(--accent-magenta));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: -1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.menu-icon-item {
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.menu-item span:last-child {
    font-weight: 500;
    font-size: 15px;
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.balance-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

/* Dashboard */
.balance-card {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.12), rgba(59, 130, 246, 0.08));
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.25) inset;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.8),
        rgba(59, 130, 246, 0.8),
        rgba(244, 114, 182, 0.8),
        transparent
    );
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.balance-info h2 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
}

.balance-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: nowrap;
}

.balance-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .balance-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .balance-info h2 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .balance-amount {
        font-size: 18px;
        margin: 3px 0;
    }
    
    .balance-actions {
        gap: 8px;
        margin-top: 12px;
    }
    
    .balance-actions .btn {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Premium Feature List for Why Us */
.feature-list-enhanced {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list-enhanced li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(15, 15, 30, 0.7),
        rgba(20, 20, 40, 0.6)
    );
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.2) inset,
        0 0 30px rgba(139, 92, 246, 0.15);
}

.feature-list-enhanced li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-list-enhanced li:hover::before {
    left: 100%;
}

.feature-list-enhanced li:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 
        0 8px 30px rgba(139, 92, 246, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.4) inset,
        0 0 50px rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, 
        rgba(20, 20, 40, 0.8),
        rgba(25, 25, 50, 0.7)
    );
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2),
        rgba(192, 132, 252, 0.2),
        rgba(59, 130, 246, 0.2)
    );
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.4),
        inset 0 0 15px rgba(139, 92, 246, 0.1);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: iconShine 3s ease-in-out infinite;
}

.feature-list-enhanced li:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(139, 92, 246, 0.6),
        inset 0 0 20px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
}

@keyframes iconShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.feature-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 400;
    padding-top: 4px;
}

.feature-text strong {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple), var(--accent-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientShift 3s ease-in-out infinite;
}

@keyframes textGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Premium Why Us View Background */
.why-us-view {
    position: relative;
    min-height: 100vh;
}

.why-us-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
        #000000;
    z-index: -1;
    animation: backgroundShift 10s ease-in-out infinite;
}

.why-us-view::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

/* Premium Why Us Card */
.why-us-card-full {
    background: linear-gradient(135deg, 
        rgba(15, 15, 30, 0.6),
        rgba(20, 20, 40, 0.5)
    );
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.why-us-card-full::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation: cardGlowSoft 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardGlowSoft {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.7;
    }
}

.why-us-card-full .card-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    text-align: center;
}

.why-us-card-full .card-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, 
        #ffffff,
        var(--primary),
        var(--accent-purple),
        var(--accent-blue)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    position: relative;
    display: inline-block;
}

.why-us-card-full .card-title::after {
    content: 'Почему мы?';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.why-us-card-full .card-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Server Status View */
.server-status-view {
    position: relative;
    min-height: 100vh;
}

.server-status-view::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top left, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
        #000000;
    z-index: -1;
}

.server-status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.server-status-message {
    background: linear-gradient(135deg, 
        rgba(15, 15, 30, 0.7),
        rgba(20, 20, 40, 0.6)
    );
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 60px 40px;
    backdrop-filter: blur(30px);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.server-status-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    animation: cardGlowSoft 8s ease-in-out infinite;
    pointer-events: none;
}

.status-icon {
    font-size: 64px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.7));
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.server-status-message h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, 
        #ffffff,
        var(--primary),
        var(--accent-purple)
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.server-status-message p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
}

/* Server Popup (fallback) */
.server-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.server-popup.active {
    opacity: 1;
    pointer-events: all;
}

.server-popup-content {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 40px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 60px rgba(139, 92, 246, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-popup.active .server-popup-content {
    transform: scale(1) translateY(0);
}

.popup-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
}

.server-popup-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.server-popup-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}


.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -200%);
    background: rgba(15, 15, 25, 0.9);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(10px);
    font-size: 14px;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 999;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.faq-image-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.faq-image {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.action-card {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease-out backwards;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.25) inset;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }
.action-card:nth-child(5) { animation-delay: 0.5s; }
.action-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset;
    background: var(--bg-card-hover);
}

.action-card:active {
    transform: scale(0.99);
    opacity: 0.9;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: iconPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.action-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.action-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Onboarding - Lightweight Mobile-Optimized Styles */
.onboarding-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-overflow-scrolling: touch;
}

.onboarding-container {
    width: 100%;
    max-width: 500px;
    padding: 30px 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.onboarding-guide-content {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Welcome Message */
.onboarding-welcome {
    margin-bottom: 32px;
    text-align: center;
    width: 100%;
}

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.welcome-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.6),
        rgba(59, 130, 246, 0.6),
        transparent
    );
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.4);
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 90%;
    margin: 0 auto;
    margin-top: 8px;
}

/* Download Buttons Container */
.download-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
}

/* Lightweight Download Button */
.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    min-height: 64px;
}

.download-btn:active {
    opacity: 0.8;
    transform: scale(0.99);
}

.download-btn-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.15);
    position: relative;
    line-height: 0;
}

.platform-icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    margin-top: 8px;
}

.download-btn-googleplay .platform-icon {
    margin-left: 2px;
}

.download-btn-content {
    flex: 1;
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-btn-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.download-btn-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.75;
    line-height: 1.3;
}

/* Platform-specific colors (static, no hover on mobile) */
.download-btn-appstore-ru,
.download-btn-appstore-us {
    border-color: rgba(139, 92, 246, 0.3);
}

.download-btn-googleplay {
    border-color: rgba(59, 130, 246, 0.3);
}

.download-btn-windows {
    border-color: rgba(139, 92, 246, 0.3);
}

/* Next Button */
.onboarding-action {
    width: 100%;
    text-align: center;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.btn-next {
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    letter-spacing: 0.4px;
}

.btn-next:active {
    opacity: 0.8;
    transform: scale(0.99);
}

/* Desktop hover (only on desktop) */
@media (hover: hover) and (pointer: fine) {
    .download-btn:hover {
        border-color: rgba(139, 92, 246, 0.45);
        background: rgba(20, 20, 40, 0.5);
        opacity: 0.95;
    }
    
    .download-btn-appstore-ru:hover,
    .download-btn-appstore-us:hover {
        border-color: rgba(139, 92, 246, 0.45);
    }
    
    .download-btn-googleplay:hover {
        border-color: rgba(59, 130, 246, 0.45);
    }
    
    .download-btn-windows:hover {
        border-color: rgba(139, 92, 246, 0.45);
    }
    
    .btn-next:hover {
        border-color: rgba(139, 92, 246, 0.5);
        background: rgba(20, 20, 40, 0.5);
        opacity: 0.95;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .onboarding-container {
        padding: 24px 16px;
    }
    
    .onboarding-welcome {
        margin-bottom: 26px;
    }
    
    .welcome-title {
        font-size: 22px;
        margin-bottom: 8px;
        letter-spacing: 0.6px;
    }
    
    .welcome-title::after {
        width: 50px;
        height: 1.5px;
    }
    
    .welcome-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .download-buttons-container {
        gap: 10px;
        margin-bottom: 24px;
    }
    
    .download-btn {
        padding: 12px 14px;
        gap: 12px;
        min-height: 60px;
    }
    
    .download-btn-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        line-height: 0;
    }
    
    .platform-icon {
        width: 22px;
        height: 22px;
        line-height: 0;
    }
    
    .download-btn-title {
        font-size: 15px;
    }
    
    .download-btn-subtitle {
        font-size: 12px;
    }
    
    .btn-next {
        padding: 12px 20px;
        font-size: 15px;
    }
}

.view {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.back-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.view-header h2 {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subscription List */
.subscriptions-list, .servers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscription-item, .server-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    backdrop-filter: blur(12px);
    animation: itemFadeIn 0.4s ease-out backwards;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.15) inset;
}

.subscription-item:nth-child(1) { animation-delay: 0.1s; }
.subscription-item:nth-child(2) { animation-delay: 0.2s; }
.subscription-item:nth-child(3) { animation-delay: 0.3s; }
.subscription-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subscription-item::before, .server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s;
}

.subscription-item:hover::before, .server-item:hover::before {
    left: 100%;
}

.subscription-item:hover, .server-item:hover {
    transform: translateX(4px) scale(1.01);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset;
    background: var(--bg-card-hover);
}

.subscription-item:active, .server-item:active {
    transform: scale(0.99);
    opacity: 0.9;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.subscription-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-status {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Plans */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--glow);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.plan-duration {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-purple));
    background-size: 200% 200%;
    color: white;
    box-shadow: 
        0 4px 15px var(--glow),
        0 0 20px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease-in-out infinite;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 30px var(--glow),
        0 0 40px rgba(139, 92, 246, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    background-position: 100% 50%;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 20px var(--glow),
        0 0 30px rgba(139, 92, 246, 0.4);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* Premium Outline Button with Neon Effects */
.btn-outline {
    background: rgba(15, 15, 30, 0.4);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple), var(--accent-blue), var(--accent-magenta));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.2),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    background: rgba(25, 25, 50, 0.6);
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 0 15px rgba(139, 92, 246, 0.15);
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Special animation for Referrals and Trial buttons */
.balance-actions .btn-outline[onclick*="showReferral"],
.subscription-actions .btn-outline[onclick*="requestTrial"] {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(139, 92, 246, 0.3),
            0 0 10px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(139, 92, 246, 0.6),
            0 0 25px rgba(139, 92, 246, 0.4),
            0 0 35px rgba(139, 92, 246, 0.2);
    }
}

.payment-btn {
    width: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    animation: buttonSlideIn 0.5s ease-out backwards;
}

.payment-btn:nth-child(1) { animation-delay: 0.1s; }
.payment-btn:nth-child(2) { animation-delay: 0.2s; }

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.5s;
}

.payment-btn:hover::before {
    left: 100%;
}

.payment-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--glow);
    transform: translateY(-4px) scale(1.02);
    background: var(--bg-card-hover);
}

.payment-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.payment-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(139, 92, 246, 0.3);
}

.payment-btn-disabled:hover {
    transform: none;
    box-shadow: 0 5px 20px var(--glow);
    border-color: var(--border);
}

.btn-icon {
    font-size: 24px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s ease;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.2) inset,
        0 0 80px rgba(139, 92, 246, 0.3);
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content h3 {
    margin: 0;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FAQ */
.faq-platforms {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.faq-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--glow);
}

.faq-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.faq-card h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.faq-details {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.faq-text {
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-line;
}


.balance-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balance-label-large {
    font-size: 14px;
    color: var(--text-secondary);
}

.balance-amount-large {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: amountShine 3s ease-in-out infinite;
    position: relative;
}

@keyframes amountShine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* Copy Link Button */
.copy-link-btn {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

/* Referral View */
.referral-content {
    padding: 20px 0;
}

.referral-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.referral-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 4px 20px var(--glow);
}

/* Enhanced Referral Card Styles */
.referral-card-enhanced {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.referral-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: referralGlow 4s ease-in-out infinite;
}

@keyframes referralGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

.referral-header-enhanced {
    text-align: center;
    margin-bottom: 30px;
}

.referral-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.referral-header-enhanced h3 {
    font-size: 28px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referral-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.referral-stats-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--glow);
}

.stat-card.highlight {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(99, 102, 241, 0.2));
    border-color: var(--accent);
}

.stat-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-card.highlight .stat-value {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.referral-link-section-enhanced {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-link-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.link-icon {
    font-size: 20px;
}

.referral-link-container-enhanced {
    display: flex;
    gap: 10px;
    align-items: center;
}

.referral-link-input-enhanced {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.referral-link-input-enhanced:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.referral-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.referral-card.premium {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.referral-header h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.referral-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.stat-value.highlight {
    color: var(--accent);
}

.premium-badge {
    color: var(--accent);
    background: rgba(236, 72, 153, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.referral-message {
    margin-top: 15px;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.referral-message p {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.referral-link-card,
.referral-code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.referral-link-card h4,
.referral-code-card h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.referral-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.referral-link-input {
    flex: 1;
    padding: 12px;
    background: rgba(15, 15, 25, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: monospace;
}

.referral-link-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.referral-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.referral-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.server-info {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Connection Guide */
.platforms-grid, .apps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.platform-card, .app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.platform-card:hover, .app-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--glow);
    background: var(--bg-card-hover);
}

.platform-icon, .app-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.platform-name, .app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.instruction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-content p {
    margin: 0;
    margin-bottom: 10px;
}

.step-content a {
    color: var(--primary);
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

/* Topup Form */
.topup-form {
    margin-top: 30px;
}

.topup-form h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amounts .btn,
.quick-amount-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
}

@media (max-width: 480px) {
    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-amounts .btn,
    .quick-amount-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}

.amount-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.amount-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.amount-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.amount-hint {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* History List */
.history-list {
    margin-top: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.history-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
}

.history-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.history-status {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.history-date {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Subscription Actions */
.subscription-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.subscription-actions .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-card-full {
        padding: 25px;
    }
    
    .feature-list-enhanced li {
        padding: 15px 0;
    }
    
    .feature-icon {
        font-size: 20px;
    }
    
    .feature-text {
        font-size: 14px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .balance-amount {
        font-size: 24px;
    }
    
    .balance-actions {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .balance-actions .btn {
        max-width: none;
        flex: 1;
    }
    
    .referral-link-container {
        flex-direction: column;
    }
    
    .referral-link-input {
        width: 100%;
    }
    
    .platforms-grid, .apps-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Referral stats mobile fixes */
    .referral-stats-enhanced {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
        gap: 12px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }
    
    .stat-card .stat-label {
        font-size: 13px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .stat-content {
        min-width: 0;
        overflow: hidden;
    }
    
    .referral-link-container-enhanced {
        flex-direction: column;
        gap: 10px;
    }
    
    .referral-link-input-enhanced {
        width: 100%;
        font-size: 12px;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
    
    .referral-card-enhanced {
        padding: 20px 15px;
    }
    
    .referral-header-enhanced h3 {
        font-size: 22px;
    }
    
    .referral-icon {
        font-size: 48px;
    }
    
    /* Оптимизация производительности на мобильных */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Упрощаем анимации на мобильных для лучшей производительности */
    .cyber-background {
        opacity: 0.8;
    }
    
    .gradient-orb {
        filter: blur(60px);
        opacity: 0.3;
    }
    
    .energy-waves {
        opacity: 0.4;
    }
    
    .particles {
        opacity: 0.5;
    }
    
    .action-card, .subscription-item, .server-item {
        transition: transform 0.2s ease, border-color 0.2s ease !important;
    }
    
    .action-card:hover, .subscription-item:hover, .server-item:hover {
        transform: translateY(-2px) !important;
    }
    
    .logo-emblem {
        animation-duration: 6s;
    }
    
    .logo-title {
        animation-duration: 4s;
    }
    
    .btn-outline {
        animation-duration: 3s;
    }
    
    .balance-card {
        animation-duration: 8s;
    }
    
    /* Упрощаем backdrop-filter на мобильных (может быть медленным) */
    .header, .balance-card, .action-card, .subscription-item, 
    .referral-card-enhanced, .modal-content {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    /* Упрощаем box-shadow для лучшей производительности */
    .action-card:hover, .subscription-item:hover, .server-item:hover {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    }
    
    /* GPU ускорение для критичных элементов */
    .action-card, .subscription-item, .server-item, .btn {
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Отключаем сложные градиенты на hover для мобильных */
    .btn-primary::before {
        display: none !important;
    }
    
    .payment-btn::before {
        display: none !important;
    }
}

/* Subscription Details Styles */
.subscription-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.subscription-details-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.active {
    color: #22c55e;
}

.detail-value.expired {
    color: #ef4444;
}

.key-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.key-container {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.key-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.key-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.subscription-actions-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.subscription-actions-row .btn {
    flex: 1;
    min-width: 0; /* Позволяет кнопкам сжиматься */
}

.subscription-actions-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.subscription-actions-details .btn {
    width: 100%;
}

/* Убеждаемся, что на мобильных кнопки тоже в одну строку */
@media (max-width: 480px) {
    .subscription-actions-row {
        flex-direction: row;
        gap: 8px;
    }
    
    .subscription-actions-row .btn {
        flex: 1;
        font-size: 14px;
        padding: 10px 8px;
    }
}

