@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

* {
    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);
    --glass-bg: rgba(19, 20, 38, 0.56);
    --glass-border: rgba(180, 142, 255, 0.28);
    --glass-border-strong: rgba(172, 120, 255, 0.52);
    --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(170, 128, 255, 0.16) inset;
    --font-ui: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Space Grotesk', sans-serif;
    --void-glow-purple: rgba(139, 92, 246, 0.45);
    --void-glow-blue: rgba(59, 130, 246, 0.4);
    --void-glow-cyan: rgba(34, 211, 238, 0.28);
}

body {
    font-family: var(--font-ui);
    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;
    background:
        radial-gradient(1200px 600px at 6% -8%, rgba(87, 104, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at 92% 14%, rgba(162, 84, 255, 0.22), transparent 58%),
        radial-gradient(1000px 560px at 55% 110%, rgba(70, 142, 255, 0.15), transparent 62%),
        #04050d;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 42vw;
    height: 42vw;
    border-radius: 999px;
    filter: blur(120px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

body::before {
    top: -18vw;
    left: -14vw;
    background: radial-gradient(circle, rgba(112, 86, 255, 0.52), transparent 65%);
}

body::after {
    right: -16vw;
    bottom: -20vw;
    background: radial-gradient(circle, rgba(76, 156, 255, 0.44), transparent 65%);
}

/* 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;
}

/* Minimalistic Black Hole Icon - Futuristic UI Style */
.void-emblem {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.emblem-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Black Hole Center - Чистый круглый центр */
.emblem-core {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 1) 50%,
        #000000 100%
    );
    position: absolute;
    z-index: 5;
    box-shadow: 
        inset 0 0 6px rgba(0, 0, 0, 1),
        0 0 12px rgba(59, 130, 246, 0.3);
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Glowing Blue Accretion Ring - Минималистичное светящееся синее кольцо */
.emblem-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(59, 130, 246, 0.6) 0deg,
        rgba(96, 165, 250, 0.8) 45deg,
        rgba(147, 197, 253, 0.9) 90deg,
        rgba(96, 165, 250, 0.8) 135deg,
        rgba(59, 130, 246, 0.6) 180deg,
        rgba(96, 165, 250, 0.5) 225deg,
        rgba(147, 197, 253, 0.6) 270deg,
        rgba(96, 165, 250, 0.7) 315deg,
        rgba(59, 130, 246, 0.6) 360deg
    );
    mask: radial-gradient(
        circle,
        transparent 38%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 1) 42%,
        rgba(0, 0, 0, 1) 48%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 52%
    );
    -webkit-mask: radial-gradient(
        circle,
        transparent 38%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 1) 42%,
        rgba(0, 0, 0, 1) 48%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 52%
    );
    animation: blueRingRotate 4s linear infinite;
    transform-origin: center;
    filter: blur(1px);
    z-index: 3;
}

/* Soft Light Streaks - Мягкие размытые световые полосы */
.emblem-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 90deg,
        transparent 0deg,
        rgba(96, 165, 250, 0.4) 30deg,
        rgba(147, 197, 253, 0.5) 60deg,
        rgba(96, 165, 250, 0.3) 90deg,
        transparent 120deg,
        rgba(59, 130, 246, 0.3) 150deg,
        rgba(96, 165, 250, 0.4) 180deg,
        transparent 210deg,
        rgba(147, 197, 253, 0.3) 240deg,
        rgba(96, 165, 250, 0.2) 270deg,
        transparent 300deg,
        rgba(59, 130, 246, 0.25) 330deg,
        transparent 360deg
    );
    mask: radial-gradient(
        circle,
        transparent 42%,
        rgba(0, 0, 0, 0.3) 44%,
        rgba(0, 0, 0, 0.8) 46%,
        rgba(0, 0, 0, 1) 48%,
        rgba(0, 0, 0, 1) 52%,
        rgba(0, 0, 0, 0.7) 54%,
        transparent 56%
    );
    -webkit-mask: radial-gradient(
        circle,
        transparent 42%,
        rgba(0, 0, 0, 0.3) 44%,
        rgba(0, 0, 0, 0.8) 46%,
        rgba(0, 0, 0, 1) 48%,
        rgba(0, 0, 0, 1) 52%,
        rgba(0, 0, 0, 0.7) 54%,
        transparent 56%
    );
    animation: lightStreaksBlur 5s linear infinite;
    transform-origin: center;
    filter: blur(2px);
    z-index: 2;
}

/* Soft Neon Halo - Мягкое неоновое гало */
.emblem-circle::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 40%,
        rgba(59, 130, 246, 0.15) 45%,
        rgba(96, 165, 250, 0.1) 50%,
        rgba(147, 197, 253, 0.08) 55%,
        transparent 65%
    );
    animation: softHaloGlow 3s ease-in-out infinite;
    z-index: 1;
    filter: blur(1.5px);
}

/* Glossy Shimmer Highlights - Глянцевые блики, движущиеся вокруг кольца */
.emblem-core::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 60deg,
        rgba(255, 255, 255, 0.3) 90deg,
        rgba(255, 255, 255, 0.4) 100deg,
        rgba(255, 255, 255, 0.3) 110deg,
        transparent 140deg,
        transparent 360deg
    );
    mask: radial-gradient(
        circle,
        transparent 38%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 1) 42%,
        rgba(0, 0, 0, 1) 48%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 52%
    );
    -webkit-mask: radial-gradient(
        circle,
        transparent 38%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 1) 42%,
        rgba(0, 0, 0, 1) 48%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 52%
    );
    animation: shimmerMove 3s linear infinite;
    transform-origin: center;
    z-index: 4;
    filter: blur(0.5px);
}

/* Clean Gradient Background - Чистый градиентный фон */
.emblem-core::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 30%,
        rgba(59, 130, 246, 0.08) 40%,
        rgba(96, 165, 250, 0.05) 50%,
        transparent 70%
    );
    z-index: 0;
    filter: blur(2px);
}

.emblem-dust {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.emblem-dust::before,
.emblem-dust::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(168, 211, 255, 0.9);
    box-shadow:
        0 0 8px rgba(127, 192, 255, 0.75),
        0 0 16px rgba(127, 192, 255, 0.45);
}

.dust-a::before { top: 6px; left: 18px; }
.dust-a::after { top: 34px; left: 10px; }
.dust-b::before { top: 14px; right: 8px; }
.dust-b::after { top: 30px; right: 15px; }

/* Animations */
@keyframes blueRingRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes lightStreaksBlur {
    from {
        transform: rotate(0deg);
        filter: blur(2px);
        opacity: 0.7;
    }
    50% {
        filter: blur(2.5px);
        opacity: 0.9;
    }
    to {
        transform: rotate(360deg);
        filter: blur(2px);
        opacity: 0.7;
    }
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 
            inset 0 0 6px rgba(0, 0, 0, 1),
            0 0 12px rgba(59, 130, 246, 0.3),
            0 0 20px rgba(59, 130, 246, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            inset 0 0 8px rgba(0, 0, 0, 1),
            0 0 16px rgba(96, 165, 250, 0.4),
            0 0 28px rgba(59, 130, 246, 0.2);
        transform: scale(1.01);
    }
}

@keyframes softHaloGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes shimmerMove {
    from {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    to {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

.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 {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 16px;
    border: 1px solid rgba(166, 124, 255, 0.4);
    background: linear-gradient(145deg, rgba(89, 115, 255, 0.24), rgba(149, 84, 255, 0.2));
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.45));
}

.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);
}

.singularity-hero {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 140px;
    margin: 0;
    border-radius: 18px;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    --px: var(--parallax-x, 0px);
    --py: var(--parallax-y, 0px);
}

.singularity-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(140% 120% at 2% 0%, rgba(112, 168, 255, 0.2), transparent 56%),
        radial-gradient(120% 120% at 86% 4%, rgba(176, 118, 255, 0.16), transparent 60%),
        linear-gradient(90deg, rgba(93, 138, 255, 0.06), rgba(176, 118, 255, 0.05) 45%, transparent 75%);
    transform: translate(calc(var(--px) * 0.15), calc(var(--py) * 0.15));
}

.singularity-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 42% 50%, rgba(118, 163, 255, 0.09), transparent 54%);
    filter: blur(14px);
}

.singularity-lens,
.singularity-disk,
.singularity-core {
    position: absolute;
    left: 14%;
    top: 54%;
    transform: translate(calc(-50% + var(--px) * 0.35), calc(-50% + var(--py) * 0.35));
}

.singularity-lens {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 44% 42%, rgba(88, 143, 255, 0.32), rgba(88, 143, 255, 0.09) 34%, transparent 66%),
        radial-gradient(circle at 62% 64%, rgba(201, 126, 255, 0.22), transparent 68%);
    filter: blur(9px);
    opacity: 0.72;
}

.singularity-disk {
    width: 220px;
    height: 92px;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.disk-back {
    background: conic-gradient(from 18deg, rgba(86, 138, 255, 0.2), rgba(177, 112, 255, 0.48), rgba(255, 160, 102, 0.24), rgba(86, 138, 255, 0.2));
    filter: blur(6px);
    opacity: 0.65;
}

.disk-front {
    width: 180px;
    height: 74px;
    background: conic-gradient(from 192deg, rgba(255, 168, 108, 0.18), rgba(193, 121, 255, 0.56), rgba(108, 158, 255, 0.3), rgba(255, 168, 108, 0.18));
    filter: blur(3px);
    opacity: 0.78;
}

.singularity-core {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(223, 186, 255, 0.95), rgba(174, 109, 255, 0.66) 32%, rgba(76, 124, 255, 0.42) 58%, rgba(10, 12, 25, 0.22) 90%),
        radial-gradient(circle, rgba(92, 138, 255, 0.55), transparent 70%);
    box-shadow:
        0 0 26px rgba(168, 107, 255, 0.54),
        0 0 50px rgba(87, 138, 255, 0.42),
        inset 0 0 10px rgba(255, 255, 255, 0.28);
}

.energy-link {
    position: absolute;
    left: 16%;
    width: 54%;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(174, 113, 255, 0.55), rgba(132, 179, 255, 0.34) 40%, rgba(132, 179, 255, 0));
    transform-origin: left center;
    opacity: 0.38;
    filter: blur(0.35px);
}

.link-1 {
    top: 34%;
    transform: rotate(8deg) translateX(calc(var(--px) * 0.2));
}

.link-2 {
    top: 52%;
    transform: rotate(2deg) translateX(calc(var(--px) * 0.16));
}

.link-3 {
    top: 70%;
    transform: rotate(-7deg) translateX(calc(var(--px) * 0.12));
}

@keyframes singularitySpinBack {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes singularitySpinFront {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes singularityCorePulse {
    0%, 100% { transform: translate(calc(-50% + var(--px) * 0.35), calc(-50% + var(--py) * 0.35)) scale(1); }
    50% { transform: translate(calc(-50% + var(--px) * 0.35), calc(-50% + var(--py) * 0.35)) scale(1.06); }
}

@keyframes singularityLensDrift {
    0%, 100% { transform: translate(calc(-50% + var(--px) * 0.35), calc(-50% + var(--py) * 0.35)) scale(1); opacity: 0.62; }
    50% { transform: translate(calc(-50% + var(--px) * 0.35), calc(-50% + var(--py) * 0.35)) scale(1.05); opacity: 0.86; }
}

@keyframes energyFlow {
    0%, 100% { opacity: 0.24; }
    50% { opacity: 0.52; }
}

/* Dashboard */
.dashboard {
    position: relative;
    --parallax-x: 0px;
    --parallax-y: 0px;
}

.dashboard > *:not(.singularity-hero) {
    position: relative;
    z-index: 1;
}

.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 16px 40px rgba(12, 9, 28, 0.48),
        0 0 0 1px rgba(139, 92, 246, 0.28) inset,
        0 0 36px rgba(139, 92, 246, 0.2);
}

.balance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(143, 169, 255, 0.45), rgba(173, 122, 255, 0.55), rgba(81, 205, 255, 0.42));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}

.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: 12px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: nowrap;
}

.balance-actions .btn {
    flex: 0 1 auto !important;
    min-width: 0;
    padding: 11px 14px;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.balance-actions .btn-primary {
    min-width: 188px;
    justify-content: center;
    box-shadow:
        0 14px 26px rgba(139, 92, 246, 0.34),
        0 0 28px rgba(139, 92, 246, 0.26);
}

.balance-actions .btn-outline {
    min-width: 150px;
    justify-content: center;
}

@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: 28px;
    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 12px 28px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(139, 92, 246, 0.22) inset,
        0 0 34px rgba(139, 92, 246, 0.16);
    box-sizing: border-box;
}

.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: 28px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(84, 108, 255, 0.26), rgba(160, 83, 255, 0.22));
    border-radius: 14px;
    border: 1px solid rgba(168, 126, 255, 0.36);
    box-shadow: inset 0 0 18px rgba(139, 92, 246, 0.18), 0 4px 16px rgba(46, 18, 88, 0.4);
    filter: drop-shadow(0 0 14px rgba(136, 102, 255, 0.28));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.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(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 24px;
    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: var(--card-shadow);
}

.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(-4px) scale(1.02);
    border-color: var(--glass-border-strong);
    box-shadow:
        0 18px 34px rgba(137, 84, 255, 0.26),
        0 0 0 1px rgba(162, 120, 255, 0.32) inset,
        0 0 36px rgba(124, 99, 255, 0.22);
    background: var(--bg-card-hover);
    filter: brightness(1.06);
}

.action-card:active {
    transform: scale(0.99);
    opacity: 0.9;
}

.card-icon {
    font-size: 30px;
    margin: 0 auto 14px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(171, 126, 255, 0.44);
    background: linear-gradient(145deg, rgba(85, 119, 255, 0.28), rgba(159, 89, 255, 0.2));
    box-shadow: inset 0 0 20px rgba(133, 89, 255, 0.2), 0 6px 20px rgba(72, 35, 128, 0.45);
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(142, 104, 255, 0.35));
}

@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: transparent;
    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: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.welcome-title-text {
    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;
}

.welcome-title-rocket {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
    margin-left: 8px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 90%;
    margin: 0 auto;
    margin-top: 8px;
    font-weight: 400;
}

/* Happ Info Block */
.happ-info-block {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15),
        rgba(59, 130, 246, 0.12),
        rgba(192, 132, 252, 0.1)
    );
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.25) inset,
        0 0 30px rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}


.info-block-icon {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.info-block-content {
    flex: 1;
    text-align: left;
}

.info-block-main {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 500;
}

.info-block-main strong {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.info-block-secondary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Download Platforms Grid */
.download-platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
}

/* Platform Card */
.platform-card {
    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: 16px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.25) inset;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.platform-card::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.6s ease;
}

.platform-card:hover::before,
.platform-card:active::before {
    left: 100%;
}

.platform-card:hover {
    transform: translateY(-4px) scale(1.02);
    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)
    );
}

.platform-card:active {
    transform: translateY(-2px) scale(1.01);
}

.platform-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    border: none;
    box-shadow: none;
    filter: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.platform-card:hover .platform-card-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);
}

.platform-card-content {
    text-align: center;
    width: 100%;
}

.platform-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.platform-card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Platform-specific accent colors */
.platform-card-ios-ru:hover,
.platform-card-ios-us:hover {
    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);
}

.platform-card-android:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.3),
        0 0 0 1px rgba(59, 130, 246, 0.4) inset,
        0 0 50px rgba(59, 130, 246, 0.25);
}

.platform-card-windows:hover {
    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);
}

/* Download Buttons Container (legacy, kept for compatibility) */
.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: 32px;
    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);
}

/* Premium Next Button */
.btn-next-premium {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-purple));
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3);
    animation: gradientShift 3s ease-in-out infinite;
}

.btn-next-premium::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.6s, height 0.6s;
}

.btn-next-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-next-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-next-premium:hover::after {
    transform: translateX(100%);
}

.btn-next-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 35px rgba(139, 92, 246, 0.5),
        0 0 50px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    background-position: 100% 50%;
}

.btn-next-premium:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 25px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3);
}

/* 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: 24px;
    }
    
    .welcome-title {
        font-size: 26px;
        margin-bottom: 10px;
        letter-spacing: 0.8px;
    }
    
    .welcome-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .happ-info-block {
        padding: 16px;
        margin-bottom: 24px;
        gap: 12px;
    }
    
    .info-block-icon {
        font-size: 28px;
    }
    
    .info-block-main {
        font-size: 15px;
    }
    
    .info-block-secondary {
        font-size: 13px;
    }
    
    .download-platforms-grid {
        gap: 12px;
        margin-bottom: 28px;
    }
    
    .platform-card {
        padding: 16px;
        gap: 10px;
    }
    
    .platform-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .platform-card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .platform-card-title {
        font-size: 15px;
    }
    
    .platform-card-subtitle {
        font-size: 12px;
    }
    
    .btn-next-premium {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    /* Legacy download buttons (for compatibility) */
    .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(--glass-bg);
    border: 1px solid var(--glass-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: var(--card-shadow);
}

.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%;
}

.action-card::after,
.subscription-item::after, .server-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(115, 158, 255, 0.34), rgba(182, 113, 255, 0.46), rgba(90, 205, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.action-card:hover::after,
.subscription-item:hover::after, .server-item:hover::after {
    opacity: 0.9;
}

.subscription-item:hover, .server-item:hover {
    transform: translateX(6px) scale(1.015);
    border-color: var(--glass-border-strong);
    box-shadow:
        0 16px 30px rgba(139, 92, 246, 0.24),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 30px rgba(93, 142, 255, 0.2);
    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;
}

.subscription-item-modern {
    padding: 18px 18px 14px;
}

.subscription-topline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(157, 105, 255, 0.35), rgba(79, 148, 255, 0.25));
    border: 1px solid rgba(173, 129, 255, 0.45);
    box-shadow: 0 6px 16px rgba(74, 40, 122, 0.28);
    flex-shrink: 0;
}

.subscription-title-group {
    min-width: 0;
    flex: 1;
}

.subscription-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.subscription-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.92;
}

.subscription-status-pill {
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.subscription-status-pill.active {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.42);
}

.subscription-status-pill.expired {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

.subscription-meta-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.subscription-meta-chip {
    border-radius: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(140, 115, 220, 0.4);
    background: linear-gradient(160deg, rgba(39, 24, 73, 0.55), rgba(15, 18, 43, 0.48));
}

.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(202, 182, 255, 0.88);
}

.meta-value {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #f5f3ff;
}

.subscription-progress {
    margin-top: 12px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(132, 107, 224, 0.2);
    border: 1px solid rgba(132, 107, 224, 0.33);
}

.subscription-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa 45%, #60a5fa 100%);
    box-shadow: 0 0 20px rgba(118, 96, 255, 0.36);
    transition: width 0.45s ease;
}

.subscription-progress.is-expired .subscription-progress-fill {
    background: linear-gradient(90deg, #7f1d1d, #b91c1c 60%, #ef4444 100%);
    box-shadow: none;
}

.subscription-variant-fast .subscription-icon-badge {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.34), rgba(249, 115, 22, 0.25));
    border-color: rgba(251, 191, 36, 0.45);
}

.subscription-variant-trial .subscription-icon-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(14, 165, 233, 0.24));
    border-color: rgba(74, 222, 128, 0.42);
}

.subscription-variant-home .subscription-icon-badge {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(248, 113, 113, 0.24));
    border-color: rgba(244, 114, 182, 0.45);
}

@media (max-width: 768px) {
    .subscription-item-modern {
        padding: 14px 14px 12px;
    }

    .subscription-topline {
        align-items: flex-start;
        gap: 10px;
    }

    .subscription-title {
        font-size: 15px;
    }

    .subscription-subtitle {
        font-size: 11px;
    }

    .subscription-icon-badge {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 17px;
    }

    .subscription-status-pill {
        padding: 5px 8px;
        font-size: 10px;
    }

    .subscription-meta-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* 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-card-disabled {
    cursor: not-allowed;
    pointer-events: none;
    border-color: rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.42), rgba(51, 65, 85, 0.32));
    opacity: 0.86;
}
.plan-card-disabled:hover {
    transform: none;
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: none;
}
.plan-card-disabled .plan-price {
    color: #9ca3af;
}

.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-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.plan-price-old {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.plan-duration {
    color: var(--text-secondary);
    font-size: 14px;
}
.plan-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.plan-details p {
    margin: 0;
}
.plan-subtitle-hero {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.26), rgba(29, 78, 216, 0.2));
    color: #f5f3ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    box-shadow: inset 0 0 12px rgba(124, 58, 237, 0.16);
}

/* 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(-2px) scale(1.03);
    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;
}

.quick-test-modal-content {
    width: min(92vw, 520px);
    border: 1px solid rgba(139, 92, 246, 0.42);
    background:
        radial-gradient(120% 180% at 0% 100%, rgba(98, 145, 255, 0.14), transparent 58%),
        linear-gradient(145deg, rgba(20, 18, 40, 0.97), rgba(14, 12, 30, 0.98));
}

.quick-test-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.quick-test-modal-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.22);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.quick-test-modal-title {
    margin: 0;
}

.quick-test-modal-body p {
    margin: 0 0 8px 0;
}

.quick-test-alert {
    margin: 0 0 12px 0 !important;
    padding: 10px 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(236, 72, 153, 0.28));
    border: 1px solid rgba(251, 191, 36, 0.6);
    box-shadow:
        0 0 16px rgba(251, 191, 36, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.quick-test-note {
    color: #d8b4fe;
}

.quick-test-modal-actions {
    justify-content: stretch;
}

.quick-test-btn {
    flex: 1;
    min-height: 44px;
}

.quick-test-btn-confirm {
    font-weight: 700;
}

/* 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;
    align-items: center;
}

.referral-card-upgraded {
    position: relative;
    overflow: hidden;
}

.referral-progress-wrap {
    margin: 10px 0 20px;
    padding: 12px 14px;
    border: 1px solid rgba(140, 180, 255, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(18, 32, 68, 0.45), rgba(24, 18, 48, 0.42));
}

.referral-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: rgba(225, 238, 255, 0.92);
    margin-bottom: 8px;
}

.referral-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.referral-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5a8cff 0%, #63d6ff 60%, #85f1d0 100%);
    box-shadow: 0 0 14px rgba(99, 214, 255, 0.35);
}

.referral-progress-foot {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(211, 226, 255, 0.76);
}

.referral-stats-grid-upgraded {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-card-balance {
    border-color: rgba(78, 209, 175, 0.45);
    background: linear-gradient(150deg, rgba(18, 44, 40, 0.5), rgba(26, 32, 56, 0.46));
}

.referral-cta-row {
    display: flex;
    gap: 8px;
}

.btn-share-ref {
    min-width: 146px;
    border-color: rgba(103, 219, 255, 0.6);
    color: #d6f8ff;
    background: linear-gradient(135deg, rgba(26, 70, 92, 0.46), rgba(22, 45, 72, 0.42));
}

.btn-share-ref:hover {
    border-color: rgba(130, 235, 255, 0.9);
    box-shadow: 0 0 16px rgba(99, 214, 255, 0.28);
    transform: translateY(-1px);
}

@media (max-width: 980px) {
    .referral-stats-grid-upgraded {
        grid-template-columns: 1fr;
    }

    .referral-cta-row {
        flex-direction: column;
    }

    .referral-cta-row .btn {
        width: 100%;
    }
}

.subscription-actions .btn {
    flex: 1;
}
.subscription-actions .btn-subscribe-main {
    background: linear-gradient(135deg, #4f7cff 0%, #7b61ff 55%, #9b6bff 100%);
    border: 1px solid rgba(132, 165, 255, 0.6);
    box-shadow:
        0 14px 28px rgba(79, 124, 255, 0.35),
        0 0 22px rgba(123, 97, 255, 0.25);
    font-weight: 700;
}
.subscription-actions .btn-subscribe-main:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 34px rgba(79, 124, 255, 0.42),
        0 0 28px rgba(123, 97, 255, 0.3);
}
.subscription-actions .btn-trial-main {
    border-color: rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg, rgba(79, 59, 16, 0.45), rgba(29, 21, 8, 0.78));
    color: #fde68a;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.2);
    font-weight: 700;
}
.subscription-actions .btn-trial-main:hover {
    border-color: rgba(245, 158, 11, 0.9);
    color: #fff7cc;
}
.subscriptions-settings-btn {
    flex: 0 0 auto !important;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.subscriptions-settings-btn::before,
.subscriptions-settings-btn::after {
    display: none !important;
}
.subscriptions-settings-btn:hover {
    transform: translateY(-1px);
}
.subscriptions-filter-panel {
    margin: -8px 20px 16px;
    padding: 12px 14px;
    border: 1px solid rgba(139, 92, 246, 0.32);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 18, 36, 0.88), rgba(13, 12, 27, 0.92));
}
.subscriptions-filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    justify-content: flex-end;
}
.subscriptions-filter-text {
    margin-right: auto;
}
.subscriptions-switch {
    position: relative;
    width: 46px;
    height: 26px;
    display: inline-flex;
    align-items: center;
}
.subscriptions-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.subscriptions-switch-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(44, 36, 79, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}
.subscriptions-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: #c4b5fd;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s ease, background 0.2s ease;
}
.subscriptions-switch input:checked + .subscriptions-switch-slider {
    background: rgba(15, 118, 110, 0.35);
    border-color: rgba(45, 212, 191, 0.55);
}
.subscriptions-switch input:checked + .subscriptions-switch-slider::before {
    transform: translateX(20px);
    background: #5eead4;
}
.subscriptions-switch-state {
    min-width: 34px;
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
    .subscription-actions {
        padding: 0 14px;
        gap: 8px;
    }
    .subscription-actions .btn {
        font-size: 13px;
        padding: 10px 8px;
    }
    .subscriptions-settings-btn {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }
    .subscriptions-filter-panel {
        margin: -6px 14px 12px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-card-full {
        padding: 25px;
    }
    
    .feature-list-enhanced li {
        padding: 16px;
        gap: 14px;
    }
    
    .feature-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    
    .feature-text {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .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.6;
    }
    
    /* Упрощаем фоновые эффекты */
    .gradient-orb {
        filter: blur(50px);
        opacity: 0.25;
    }
    
    .energy-waves, .particles {
        display: none;
    }
    
    /* Отключаем тяжелые анимации */
    .logo-title::before, .logo-title::after {
        animation: none !important;
    }
    
    /* Минималистичная анимация черной дыры - оптимизированная для мобильных */
    .emblem-orbit {
        animation: blueRingRotate 4s linear infinite !important;
    }
    
    .emblem-circle::before {
        animation: lightStreaksBlur 5s linear infinite !important;
    }
    
    .emblem-circle::after {
        animation: softHaloGlow 3s ease-in-out infinite !important;
    }
    
    .emblem-core {
        animation: subtlePulse 3s ease-in-out infinite !important;
    }
    
    .emblem-core::before {
        animation: shimmerMove 3s linear infinite !important;
    }
    
    /* Отключаем анимации на иконках */
    .card-icon, .feature-icon::before, .menu-icon span {
        animation: none !important;
    }
    
    /* Упрощаем переходы */
    .action-card, .subscription-item, .server-item, .btn,
    .platform-card, .download-btn, .menu-item {
        transition: opacity 0.2s ease, transform 0.15s ease !important;
    }
    
    /* Убираем hover эффекты на мобильных (работает только tap) */
    .action-card:hover, .subscription-item:hover, .server-item:hover,
    .platform-card:hover, .menu-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Active состояния для тапов */
    .action-card:active, .subscription-item:active, .server-item:active {
        opacity: 0.7;
        transform: scale(0.98) !important;
    }
    
    /* Минимальный backdrop-filter */
    .header, .balance-card, .action-card, .subscription-item, 
    .referral-card-enhanced, .modal-content, .why-us-card-full {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    /* Упрощаем box-shadow */
    .action-card, .subscription-item, .server-item,
    .balance-card, .header {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    }
    
    /* Отключаем сложные ::before/::after анимации */
    .btn-primary::before, .btn-primary::after,
    .payment-btn::before, .payment-btn::after,
    .action-card::before, .subscription-item::before,
    .menu-item::before, .feature-list-enhanced li::before,
    .btn-outline::before, .btn-outline::after,
    .btn-next-premium::before, .btn-next-premium::after,
    .why-us-card-full::before, .why-us-view::before, .why-us-view::after {
        display: none !important;
    }
    
    /* Упрощаем градиенты кнопок (но оставляем цвет) */
    .btn-primary, .btn-next-premium {
        background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
        animation: none !important;
    }
    
    /* Убираем тяжелые тени и свечения, но оставляем базовые */
    .feature-icon, .card-icon, .status-icon {
        text-shadow: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    
    /* Убираем фоны у иконок (убираем фиолетовые квадраты) */
    .feature-icon, .card-icon {
        background: transparent !important;
        border: none !important;
    }
    
    /* Планетка остается с анимацией - она не тяжелая */
    
    /* ВАЖНО: Оставляем градиенты для текста - они не тяжелые! */
    .logo-title {
        background: linear-gradient(135deg, 
            #ffffff 0%,
            rgba(255, 255, 255, 0.95) 25%,
            var(--primary) 50%,
            var(--accent-purple) 75%,
            var(--accent-blue) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: none !important;
    }
    
    .subscription-title-text, .welcome-title-text {
        background: linear-gradient(135deg, 
            #ffffff 0%,
            rgba(255, 255, 255, 0.95) 25%,
            var(--primary) 50%,
            var(--accent-purple) 75%,
            var(--accent-blue) 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: none !important;
    }
    
    /* Отключаем GPU-ускорение где не нужно */
    * {
        will-change: auto !important;
    }
    
    /* Только для активно взаимодействующих элементов */
    .btn:active, .action-card:active {
        will-change: transform;
    }
    
    /* Оптимизация для раскрытия ключа на мобильных - мгновенное переключение */
    .key-content-collapsed {
        display: none !important;
    }
    
    .key-content-expanded {
        display: block !important;
        max-height: none !important;
        padding: 16px 0 0 0 !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Убираем все transition для ключа на мобильных */
    .key-section-collapsible {
        will-change: auto !important;
    }
    
    /* Упрощаем кнопку переключения */
    .key-toggle-btn {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 15, 30, 0.95) !important;
        transition: opacity 0.2s ease !important;
    }
    
    .key-toggle-arrow {
        transition: none !important;
    }
    
    /* Убираем тяжелые эффекты у input */
    .key-input-new {
        transition: border-color 0.2s ease !important;
    }
}

/* Оптимизация для планшетов и средних устройств */
@media (min-width: 481px) and (max-width: 768px) {
    /* Частичная оптимизация - убираем самые тяжелые эффекты */
    .gradient-orb {
        filter: blur(70px);
        opacity: 0.35;
    }
    
    .energy-waves {
        opacity: 0.5;
    }
    
    .particles {
        opacity: 0.6;
    }
    
    .header, .balance-card, .action-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Для десктопов оставляем все эффекты */
@media (min-width: 769px) {
    /* Полные эффекты на десктопе */
    
    /* Возвращаем красивые иконки с эффектами */
    .feature-icon {
        background: linear-gradient(135deg, 
            rgba(139, 92, 246, 0.2),
            rgba(192, 132, 252, 0.2),
            rgba(59, 130, 246, 0.2)
        ) !important;
        border: 1px solid rgba(139, 92, 246, 0.4) !important;
        box-shadow: 
            0 0 20px rgba(139, 92, 246, 0.4),
            inset 0 0 15px rgba(139, 92, 246, 0.1) !important;
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6)) !important;
    }
    
    .platform-card-icon {
        background: linear-gradient(135deg, 
            rgba(139, 92, 246, 0.2),
            rgba(192, 132, 252, 0.2),
            rgba(59, 130, 246, 0.2)
        ) !important;
        border: 1px solid rgba(139, 92, 246, 0.4) !important;
        box-shadow: 
            0 0 20px rgba(139, 92, 246, 0.4),
            inset 0 0 15px rgba(139, 92, 246, 0.1) !important;
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6)) !important;
    }
    
    /* Возвращаем анимации */
    .logo-title {
        animation: titleGlow 4s ease-in-out infinite !important;
    }
    
    .card-icon {
        animation: iconPulse 2s ease-in-out infinite !important;
    }
    
    /* Возвращаем hover эффекты */
    .action-card:hover, .subscription-item:hover, .server-item:hover {
        transform: translateY(-2px) scale(1.01) !important;
        box-shadow: 
            0 4px 16px rgba(139, 92, 246, 0.25),
            0 0 0 1px rgba(139, 92, 246, 0.3) inset !important;
    }
    
    /* Возвращаем backdrop-filter */
    .header, .balance-card, .action-card, .subscription-item, 
    .referral-card-enhanced, .modal-content, .why-us-card-full {
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }
    
    /* Возвращаем анимированные элементы */
    .btn-primary::before, .btn-primary::after,
    .action-card::before, .subscription-item::before,
    .menu-item::before, .feature-list-enhanced li::before {
        display: block !important;
    }
    
    /* Возвращаем полный градиент для кнопок */
    .btn-primary, .btn-next-premium {
        background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-purple)) !important;
        background-size: 200% 200% !important;
        animation: gradientShift 3s ease-in-out infinite !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;
    }
}

/* New Subscription Details Design */
.subscription-details-card-new {
    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: 24px;
    padding: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.25) inset,
        0 0 40px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.subscription-details-card-new::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%);
    pointer-events: none;
}

/* Header */
.subscription-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}
.subscription-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auto-renew-chip {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(20, 16, 38, 0.8);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auto-renew-chip:hover {
    transform: translateY(-1px);
}
.auto-renew-chip.is-on {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(22, 101, 52, 0.28);
    color: #86efac;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}
.auto-renew-chip.is-off {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

.subscription-title-new {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subscription-title-text {
    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;
}

.subscription-title-emojis {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.status-badge {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.status-badge.status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

/* Info Grid */
.subscription-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-item-compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.info-item-compact:hover {
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.12);
}
.info-item-icon {
    font-size: 18px;
    margin-bottom: 4px;
    display: block;
}

.info-item-traffic {
    background: linear-gradient(145deg, rgba(12, 28, 50, 0.55), rgba(18, 12, 40, 0.58));
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.traffic-chip {
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(12, 74, 110, 0.32);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.traffic-mini-track {
    margin-top: 2px;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.24);
    background: rgba(10, 16, 30, 0.72);
    overflow: hidden;
}

.traffic-mini-fill {
    height: 100%;
    width: 0%;
    transition: width 0.35s ease;
}

.traffic-mini-fill.is-normal {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.95), rgba(16, 185, 129, 0.9));
}

.traffic-mini-fill.is-medium {
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.95), rgba(245, 158, 11, 0.9));
}

.traffic-mini-fill.is-high {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.9));
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}
.info-subvalue {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.92;
}
.info-item-tools {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.btn-traffic-refresh {
    height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    background: rgba(20, 42, 90, 0.45);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-traffic-refresh:hover {
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.28);
}
.btn-traffic-refresh:disabled {
    opacity: 0.6;
    cursor: wait;
}
.btn-upgrade-cta {
    min-height: 40px;
    height: auto;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.65);
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.45), rgba(234, 179, 8, 0.32));
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15) inset, 0 10px 28px rgba(251, 191, 36, 0.2);
}
.btn-upgrade-cta:hover {
    border-color: rgba(252, 211, 77, 0.95);
    box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.32) inset, 0 14px 30px rgba(252, 211, 77, 0.33);
    transform: translateY(-1px);
}

.upgrade-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(4, 6, 16, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.upgrade-confirm-card {
    width: min(520px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: linear-gradient(145deg, rgba(25, 17, 45, 0.96), rgba(14, 12, 32, 0.95));
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 42px rgba(251, 191, 36, 0.2);
    padding: 18px 18px 16px;
}

.upgrade-confirm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.upgrade-confirm-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-size: 17px;
}

.upgrade-confirm-head h3 {
    margin: 0;
    font-size: 22px;
    color: #fde68a;
    font-weight: 800;
}

.upgrade-confirm-text {
    margin: 8px 0;
    color: #e9d5ff;
    line-height: 1.45;
    font-size: 15px;
}

.upgrade-confirm-price {
    margin-top: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    font-size: 14px;
    font-weight: 700;
}

.upgrade-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-upgrade-cancel,
.btn-upgrade-approve {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.btn-upgrade-cancel {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.btn-upgrade-approve {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.8), rgba(245, 158, 11, 0.78));
    border-color: rgba(251, 191, 36, 0.65);
    color: #fff8dc;
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.24);
}
.device-dots {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}
.device-dot {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.7);
}
.device-dot.active {
    color: #a78bfa;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.65);
}
.expiry-progress-card {
    margin: 0 0 18px 0;
    padding: 12px 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(255,255,255,0.02);
}
.expiry-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.expiry-progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.expiry-progress-value {
    font-size: 13px;
    font-weight: 700;
    color: #ddd6fe;
}
.expiry-progress-track {
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
.expiry-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a855f7 0%, #8b5cf6 45%, #6366f1 100%);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
    transition: width 0.35s ease;
}
.expiry-progress-fill.is-critical {
    background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

/* Collapsible Key Section */
.key-section-collapsible {
    margin-bottom: 24px;
}

.key-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.key-toggle-btn:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(20, 20, 40, 0.5);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.key-toggle-icon {
    font-size: 18px;
    margin-right: 10px;
}

.key-toggle-text {
    flex: 1;
    text-align: left;
}

.key-toggle-arrow {
    font-size: 12px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.key-content-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    will-change: max-height, opacity, transform;
}

.key-content-expanded {
    max-height: 500px;
    padding: 16px 0 0 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: translateY(0);
    will-change: max-height, opacity, transform;
}

.key-display-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-input-new {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    outline: none;
    transition: all 0.3s ease;
}

.key-input-new:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.btn-copy-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-key:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.key-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Единый блок ключей и подключения */
.keys-connect-block {
    margin-top: 20px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(28, 28, 48, 0.95), rgba(18, 18, 36, 0.99));
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

@media (max-width: 700px) {
    .balance-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .balance-actions .btn-primary,
    .balance-actions .btn-outline {
        width: 100%;
        min-width: 0;
    }
}

@keyframes horizonRingSpin {
    from { transform: rotate(0deg); opacity: 0.35; }
    50% { opacity: 0.8; }
    to { transform: rotate(360deg); opacity: 0.35; }
}

@keyframes coreBreath {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            inset 0 0 6px rgba(0, 0, 0, 1),
            0 0 12px rgba(59, 130, 246, 0.32),
            0 0 24px rgba(59, 130, 246, 0.18);
    }
    50% {
        transform: scale(1.045);
        box-shadow:
            inset 0 0 8px rgba(0, 0, 0, 1),
            0 0 20px rgba(97, 183, 255, 0.48),
            0 0 34px rgba(76, 171, 255, 0.22);
    }
}

@keyframes dustInfallA {
    0% { transform: translate3d(-8px, -10px, 0) scale(1.2); opacity: 0; }
    12% { opacity: 0.95; }
    55% { opacity: 0.8; }
    100% { transform: translate3d(8px, 10px, 0) scale(0.15); opacity: 0; }
}

@keyframes dustInfallB {
    0% { transform: translate3d(10px, 12px, 0) scale(1.1); opacity: 0; }
    15% { opacity: 0.92; }
    58% { opacity: 0.78; }
    100% { transform: translate3d(-10px, -12px, 0) scale(0.12); opacity: 0; }
}

@keyframes voidGlitch {
    0%, 94%, 100% { transform: translate3d(0, 0, 0); filter: brightness(1.06) drop-shadow(0 0 16px rgba(139, 92, 246, 0.56)); }
    95% { transform: translate3d(-0.6px, 0, 0); filter: brightness(1.24) drop-shadow(0 0 24px rgba(191, 126, 255, 0.78)); }
    96% { transform: translate3d(0.8px, 0, 0); }
    97% { transform: translate3d(-0.8px, 0, 0); }
    98% { transform: translate3d(0.5px, 0, 0); }
}

@keyframes titleSweep {
    0%, 82%, 100% { background-position: 0% 50%; }
    90% { background-position: 100% 50%; }
}
.keys-connect-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}
.keys-connect-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.45;
}
/* App picker — new design */
.app-picker-block {
    margin-bottom: 16px;
}
.app-picker-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(196,181,253,0.65);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.app-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.app-client-btn.app-picker-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 0;
    justify-content: flex-start;
}
.app-client-btn.app-picker-card:hover {
    border-color: rgba(139,92,246,0.5);
    background: rgba(139,92,246,0.08);
    transform: none;
    box-shadow: none;
}
.app-client-btn.app-picker-card.active {
    border-color: rgba(139,92,246,0.9);
    background: rgba(139,92,246,0.18);
    box-shadow: 0 0 0 1px rgba(139,92,246,0.35) inset, 0 4px 16px rgba(139,92,246,0.2);
}
.app-picker-icon-wrap {
    font-size: 22px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.app-picker-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.app-picker-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.app-picker-platform {
    font-size: 11px;
    color: rgba(196,181,253,0.55);
    font-weight: 500;
}
.app-picker-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}
.app-client-btn.app-picker-card.active .app-picker-check {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
/* keep old selectors working for JS toggles */
.app-client-btn { transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.app-client-btn-title { display: none; }
.keys-unified-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.key-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(14, 14, 28, 0.88), rgba(21, 21, 42, 0.85));
    border: 1px solid rgba(59, 130, 246, 0.24);
    border-radius: 12px;
}
.key-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.key-row-cta .btn-fast-inline {
    width: 100%;
    min-width: 0;
}
.key-select-row {
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.key-select-row:hover {
    border-color: rgba(139, 92, 246, 0.52);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.16);
}
.key-select-row.active {
    border-color: rgba(240, 210, 255, 0.95);
    background:
        linear-gradient(135deg, rgba(82, 40, 140, 0.5), rgba(38, 24, 74, 0.56)),
        radial-gradient(140% 140% at 0% 50%, rgba(165, 105, 255, 0.24), transparent 65%);
    box-shadow:
        0 12px 30px rgba(139, 92, 246, 0.36),
        0 0 0 1px rgba(225, 175, 255, 0.55) inset,
        0 0 0 2px rgba(185, 125, 255, 0.38);
    transform: translateY(-1px);
    animation: activeKeyPulse 1.8s ease-in-out infinite;
}
.key-select-row.active::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 6px;
    width: 4px;
    border-radius: 6px;
    background: linear-gradient(180deg, #d8b4fe, #a855f7);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.7);
}
.key-select-row.active::after {
    content: 'Выбран';
    position: absolute;
    top: -11px;
    right: 14px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f5e6ff;
    background: linear-gradient(135deg, rgba(177, 111, 255, 0.7), rgba(112, 66, 220, 0.72));
    border: 1px solid rgba(225, 190, 255, 0.6);
    box-shadow: 0 0 10px rgba(177, 111, 255, 0.45);
    pointer-events: none;
    z-index: 3;
}
.key-select-row.active .key-row-label {
    color: #ffffff;
    font-weight: 800;
}

@keyframes activeKeyPulse {
    0%, 100% {
        box-shadow:
            0 10px 26px rgba(139, 92, 246, 0.26),
            0 0 0 1px rgba(225, 175, 255, 0.5) inset,
            0 0 0 2px rgba(185, 125, 255, 0.3);
    }
    50% {
        box-shadow:
            0 14px 34px rgba(139, 92, 246, 0.44),
            0 0 0 1px rgba(236, 207, 255, 0.72) inset,
            0 0 0 2px rgba(203, 152, 255, 0.52);
    }
}
.key-row-disabled {
    opacity: 0.92;
}
.key-row-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.key-row-icon {
    font-size: 16px;
}
.key-row-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.key-input-unified {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    background: rgba(8, 8, 20, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.32);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.key-input-unified:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.btn-copy-small {
    position: relative;
    flex-shrink: 0;
    min-width: 110px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-copy-small:hover {
    background: rgba(59, 130, 246, 0.35);
    border-color: rgba(59, 130, 246, 0.5);
}
.btn-hysteria-refresh {
    flex-shrink: 0;
    min-width: 122px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, rgba(6, 78, 110, 0.42), rgba(8, 47, 73, 0.7));
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-hysteria-refresh:hover {
    border-color: rgba(14, 165, 233, 0.75);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.3);
    transform: translateY(-1px);
}
.btn-hysteria-refresh:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}
.btn-copy-small .copy-tooltip {
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #86efac;
    background: rgba(2, 6, 23, 0.92);
    border: 1px solid rgba(34, 197, 94, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    white-space: nowrap;
}
.btn-copy-small.copied .copy-tooltip {
    opacity: 1;
}
.key-row-create {
    align-items: center;
}
.key-row-controls-create {
    justify-content: space-between;
    gap: 12px;
}
.key-row-empty {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.95;
}
.btn-create-tcp-inline {
    min-height: 40px;
    padding: 9px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-create-tcp-inline:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.3));
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}
.btn-fast-inline {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    white-space: nowrap;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.62);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(245, 158, 11, 0.18));
    box-shadow:
        0 0 0 1px rgba(251, 191, 36, 0.22) inset,
        0 0 16px rgba(251, 191, 36, 0.35),
        0 0 34px rgba(245, 158, 11, 0.2);
    animation: fastCtaPulse 1.8s ease-in-out infinite;
}

.btn-fast-inline::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 18%,
        rgba(255, 255, 255, 0.22) 48%,
        rgba(255, 255, 255, 0) 78%
    );
    transform: translateX(-130%);
    pointer-events: none;
    animation: fastCtaSweep 2.7s ease-in-out infinite;
}

.btn-fast-inline:hover {
    border-color: rgba(252, 211, 77, 0.95);
    box-shadow:
        0 0 0 1px rgba(252, 211, 77, 0.32) inset,
        0 0 20px rgba(251, 191, 36, 0.5),
        0 0 44px rgba(245, 158, 11, 0.28);
    transform: translateY(-1px) scale(1.01);
}

.btn-fast-inline:active {
    transform: translateY(0) scale(0.995);
}

@keyframes fastCtaPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(251, 191, 36, 0.2) inset,
            0 0 14px rgba(251, 191, 36, 0.3),
            0 0 30px rgba(245, 158, 11, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(252, 211, 77, 0.34) inset,
            0 0 24px rgba(252, 211, 77, 0.62),
            0 0 52px rgba(251, 191, 36, 0.32);
    }
}

@keyframes fastCtaSweep {
    0%, 30% {
        transform: translateX(-130%);
        opacity: 0;
    }
    45% {
        opacity: 1;
    }
    60%, 100% {
        transform: translateX(130%);
        opacity: 0;
    }
}
.fast-test-panel {
    margin-top: 8px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(40, 28, 10, 0.58), rgba(34, 22, 8, 0.4));
}
.quick-key-warning {
    margin: 0 0 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.62);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.45), rgba(69, 10, 10, 0.35));
    color: #fecaca;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.quick-key-top-alert {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: max(72px, calc(env(safe-area-inset-top) + 58px));
    width: min(960px, calc(100vw - 24px));
    z-index: 1200;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.7);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(69, 10, 10, 0.9));
    color: #fee2e2;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(239, 68, 68, 0.35);
}
.fast-test-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
}
.fast-test-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fast-test-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}
.fast-test-value {
    font-size: 14px;
    font-weight: 700;
    color: #fde68a;
}
.fast-test-cell-action {
    align-items: flex-end;
    justify-content: flex-end;
}
.btn-cancel-test-inline {
    min-height: 44px;
    padding: 10px 16px;
    white-space: nowrap;
}
.fast-test-expired {
    color: #fda4af !important;
}
.keys-cta-row {
    margin-top: 10px;
    margin-bottom: 8px;
}
.keys-toolbar-meta {
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
}
.selected-key-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(185, 125, 255, 0.45);
    background: linear-gradient(135deg, rgba(50, 28, 85, 0.6), rgba(24, 22, 52, 0.66));
    color: #efe4ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.keys-connect-block .btn-cta-primary {
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}
.keys-connect-block .btn-cta-primary:hover {
    transform: translateY(-1px) scale(1.01);
}
.keys-cta-row-compact {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 10px;
    align-items: center;
}
.keys-cta-row-compact.single-action {
    grid-template-columns: 1fr;
}
.key-toggle-btn-inline {
    min-height: 52px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
    border-radius: 12px;
    border: 1px solid rgba(154, 122, 255, 0.38);
    background: linear-gradient(135deg, rgba(21, 20, 44, 0.92), rgba(12, 13, 30, 0.86));
    box-shadow: inset 0 0 0 1px rgba(143, 112, 255, 0.14);
}
.key-toggle-btn-inline:hover {
    border-color: rgba(186, 146, 255, 0.65);
    box-shadow:
        inset 0 0 0 1px rgba(199, 162, 255, 0.2),
        0 8px 22px rgba(99, 67, 214, 0.24);
}
.key-toggle-btn-inline span[id^="keyArrow_"] {
    font-size: 12px;
}
.keys-cta-row-compact .btn-cta-primary {
    min-height: 52px;
    font-size: 18px;
    letter-spacing: 0.02em;
    box-shadow:
        0 8px 28px rgba(139, 92, 246, 0.44),
        0 0 22px rgba(175, 112, 255, 0.24);
}
.keys-connect-hint {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .keys-connect-block {
        padding: 16px;
    }

    .app-picker-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .app-client-btn.app-picker-card {
        padding: 12px;
    }

    .key-row {
        padding: 12px;
    }

    .key-row-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .key-row-label {
        font-size: 13px;
    }
    .key-select-row.active::after {
        font-size: 10px;
        padding: 2px 7px;
        top: -10px;
        right: 10px;
    }

    .key-row-controls-create {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-create-tcp-inline {
        width: 100%;
    }

    .btn-copy-small,
    .btn-fast-inline,
    .btn-hysteria-refresh {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        font-size: 13px;
    }

    .fast-test-grid {
        grid-template-columns: 1fr;
    }
    .fast-test-cell-action {
        align-items: stretch;
    }
    .btn-cancel-test-inline {
        width: 100%;
    }
    .plan-subtitle-hero {
        font-size: 14px;
        padding: 9px 10px;
    }

    .keys-connect-block .btn-cta-primary {
        min-height: 48px;
        font-size: 17px;
        padding: 12px 16px;
    }
    .keys-toolbar-meta {
        margin-bottom: 12px;
    }
    .selected-key-pill {
        width: 100%;
        justify-content: center;
        font-size: 11px;
        padding: 6px 10px;
    }
    .keys-cta-row-compact {
        grid-template-columns: 1fr;
    }
    .key-toggle-btn-inline {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
    }

    .quick-test-modal-content {
        width: 94vw;
        padding: 20px 16px;
    }

    .quick-test-modal-actions {
        flex-direction: column;
    }

    .quick-test-btn {
        width: 100%;
    }
}

/* TCP Key Section (legacy / fallback) */
.tcp-key-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15),
        rgba(139, 92, 246, 0.12)
    );
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tcp-key-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tcp-key-icon {
    font-size: 24px;
    line-height: 1;
}

.tcp-key-info {
    flex: 1;
}

.tcp-key-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tcp-key-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tcp-key-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
}

.tcp-key-status-icon {
    font-size: 18px;
}

.tcp-key-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #4ade80;
}

.tcp-key-link-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.tcp-key-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(15, 15, 30, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.tcp-key-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-copy-tcp-key {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy-tcp-key:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.btn-create-tcp-key {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2),
        rgba(139, 92, 246, 0.15)
    );
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create-tcp-key:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.3),
        rgba(139, 92, 246, 0.25)
    );
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-create-tcp-key span:first-child {
    font-size: 20px;
}

/* Main CTA Block */
.cta-block-main {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.15),
        rgba(59, 130, 246, 0.12),
        rgba(192, 132, 252, 0.1)
    );
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.25) inset,
        0 0 50px rgba(139, 92, 246, 0.2);
}

.cta-block-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
    display: inline-block;
}

.cta-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-primary {
    width: 100%;
    max-width: 300px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-purple));
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 24px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.3);
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 0.5px;
}

.btn-cta-primary::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.6s, height 0.6s;
}

.btn-cta-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-primary:hover::after {
    transform: translateX(100%);
}

.btn-cta-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 40px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    background-position: 100% 50%;
}

.btn-cta-primary:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 30px rgba(139, 92, 246, 0.4),
        0 0 50px rgba(139, 92, 246, 0.3);
}

/* Secondary Info Block */
.secondary-info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(15, 15, 30, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.secondary-info-block:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.secondary-info-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
}

.secondary-info-content {
    flex: 1;
}

.secondary-info-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.secondary-info-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .subscription-details-card-new {
        padding: 20px;
        border-radius: 20px;
    }
    
    .subscription-header-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .subscription-header-right {
        width: 100%;
        justify-content: space-between;
    }
    .auto-renew-chip {
        max-width: 70%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .subscription-title-new {
        font-size: 20px;
    }
    .subscription-details-card-new {
        padding: 16px;
    }
    .subscription-header-new {
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }
    .app-picker-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .app-client-btn.app-picker-card {
        padding: 11px 12px;
    }
    
    .subscription-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .info-item-traffic {
        grid-column: 1 / -1;
    }
    
    .cta-block-main {
        padding: 24px 20px;
    }
    
    .cta-icon {
        font-size: 40px;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .cta-description {
        font-size: 14px;
    }
    
    .btn-cta-primary {
        padding: 16px 28px;
        font-size: 16px;
    }
}

/* Device-scoped VOID motion: enabled only on desktop and iPhone */
body.anim-void-enabled .emblem-orbit {
    animation: blueRingRotate 10.5s linear infinite, horizonRingSpin 6.8s ease-in-out infinite !important;
}

body.anim-void-enabled .emblem-core {
    animation: coreBreath 3.8s ease-in-out infinite !important;
}

body.anim-void-enabled .dust-a {
    animation: dustInfallA 4.7s ease-in-out infinite;
}

body.anim-void-enabled .dust-b {
    animation: dustInfallB 5.2s ease-in-out infinite 1.1s;
}

body.anim-void-enabled .logo-title {
    animation: titleGlow 8s ease-in-out infinite, titleSweep 8.8s ease-in-out infinite, voidGlitch 8.4s steps(2, end) infinite !important;
}

body.anim-void-enabled .logo-title::before {
    animation: titleGlowBack 8.2s ease-in-out infinite !important;
}

body.anim-void-enabled .singularity-lens {
    animation: singularityLensDrift 7.6s ease-in-out infinite;
}

body.anim-void-enabled .disk-back {
    animation: singularitySpinBack 22s linear infinite;
}

body.anim-void-enabled .disk-front {
    animation: singularitySpinFront 16s linear infinite;
}

body.anim-void-enabled .singularity-core {
    animation: singularityCorePulse 5.4s ease-in-out infinite;
}

body.anim-void-enabled .energy-link {
    animation: energyFlow 4.6s ease-in-out infinite;
}

body:not(.anim-void-enabled) .emblem-dust {
    display: none;
}

@media (max-width: 480px) {
    .singularity-hero {
        top: -3px;
        height: 92px;
    }

    .singularity-disk,
    .energy-link {
        display: none;
    }

    .singularity-lens {
        opacity: 0.42;
        filter: blur(10px);
    }

    .singularity-core {
        width: 42px;
        height: 42px;
        opacity: 0.82;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.anim-void-enabled .emblem-orbit,
    body.anim-void-enabled .emblem-core,
    body.anim-void-enabled .dust-a,
    body.anim-void-enabled .dust-b,
    body.anim-void-enabled .logo-title,
    body.anim-void-enabled .logo-title::before,
    body.anim-void-enabled .singularity-lens,
    body.anim-void-enabled .disk-back,
    body.anim-void-enabled .disk-front,
    body.anim-void-enabled .singularity-core {
        animation: none !important;
    }

    .btn-fast-inline,
    .btn-fast-inline::after {
        animation: none !important;
    }
    .key-select-row.active {
        animation: none !important;
    }
}


/* V2RayTun uses the same active styling as Happ */

@media (min-width: 769px) {
    .app-client-row {
        grid-template-columns: 1fr;
    }

    .app-client-label {
        display: none;
    }
}

/* 2026 VOID Showcase Overrides */
.cyber-background::before,
.cyber-background::after {
    content: '';
    position: absolute;
    inset: -10%;
    pointer-events: none;
}

.cyber-background::before {
    background:
        radial-gradient(48% 38% at 24% 18%, rgba(126, 87, 255, 0.23), transparent 66%),
        radial-gradient(42% 34% at 78% 76%, rgba(50, 122, 255, 0.2), transparent 68%),
        radial-gradient(32% 26% at 60% 22%, rgba(22, 211, 255, 0.13), transparent 70%);
    filter: blur(10px);
    animation: nebulaDrift 24s ease-in-out infinite;
}

.cyber-background::after {
    background-image:
        radial-gradient(1.2px 1.2px at 12% 22%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 44% 68%, rgba(188, 142, 255, 0.55), transparent),
        radial-gradient(1px 1px at 84% 34%, rgba(110, 176, 255, 0.42), transparent),
        radial-gradient(1px 1px at 74% 84%, rgba(255, 255, 255, 0.35), transparent);
    background-size: 180% 180%, 220% 220%, 200% 200%, 250% 250%;
    opacity: 0.65;
    animation: starDrift 52s linear infinite;
}

.header {
    background:
        linear-gradient(120deg, rgba(24, 17, 54, 0.62), rgba(11, 22, 50, 0.54)),
        rgba(8, 10, 22, 0.44);
    border: 1px solid rgba(156, 129, 255, 0.28);
    box-shadow:
        0 18px 40px rgba(2, 6, 18, 0.56),
        0 0 0 1px rgba(117, 92, 255, 0.22) inset,
        0 0 40px rgba(98, 79, 255, 0.18);
}

.logo-title {
    font-family: var(--font-display);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.void-emblem::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(68, 156, 255, 0.18), rgba(146, 92, 255, 0.12), transparent 72%);
    filter: blur(8px);
    opacity: 0.95;
    animation: portalHalo 5.2s ease-in-out infinite;
}

.emblem-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(118, 177, 255, 0.58);
    opacity: 0.42;
    box-shadow: 0 0 20px rgba(70, 149, 255, 0.32);
    animation: portalRing 6.4s linear infinite;
}

.balance-card,
.action-card,
.subscription-item,
.plan-card,
.subscription-details-card-new,
.keys-connect-block,
.modal-content,
.referral-card,
.server-status-message {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(17, 20, 46, 0.8), rgba(10, 14, 34, 0.68)),
        rgba(11, 16, 37, 0.58);
    border: 1px solid rgba(168, 140, 255, 0.24);
    box-shadow:
        0 16px 36px rgba(1, 3, 14, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.15) inset;
    backdrop-filter: blur(20px) saturate(132%);
}

.balance-card::before,
.action-card::before,
.plan-card::before,
.subscription-details-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(162, 118, 255, 0.13), transparent 45%, rgba(67, 147, 255, 0.1));
    mix-blend-mode: screen;
}

.btn-primary {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    background:
        linear-gradient(115deg, #8f5dff 0%, #6f8dff 42%, #38bdf8 100%);
    box-shadow:
        0 14px 30px rgba(82, 94, 255, 0.36),
        0 0 28px rgba(66, 153, 255, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 18px 34px rgba(74, 95, 255, 0.44),
        0 0 32px rgba(53, 175, 255, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.holographic-menu {
    background:
        linear-gradient(150deg, rgba(26, 21, 58, 0.94), rgba(12, 22, 48, 0.9));
    border: 1px solid rgba(154, 130, 255, 0.34);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.52),
        0 0 28px rgba(121, 92, 255, 0.28);
}

.singularity-hero::before {
    background:
        radial-gradient(140% 120% at 2% 0%, rgba(112, 168, 255, 0.22), transparent 56%),
        radial-gradient(120% 120% at 86% 4%, rgba(176, 118, 255, 0.2), transparent 60%),
        linear-gradient(90deg, rgba(93, 138, 255, 0.08), rgba(176, 118, 255, 0.06) 45%, transparent 75%);
}

.singularity-core {
    box-shadow:
        0 0 30px rgba(168, 107, 255, 0.58),
        0 0 56px rgba(87, 138, 255, 0.46),
        0 0 86px rgba(57, 198, 255, 0.22),
        inset 0 0 14px rgba(255, 255, 255, 0.3);
}

@keyframes nebulaDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
    50% { transform: translate3d(-1.8%, 1.2%, 0) scale(1.04); opacity: 1; }
}

@keyframes starDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-8%, -6%, 0); }
}

@keyframes portalHalo {
    0%, 100% { transform: scale(1); opacity: 0.86; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes portalRing {
    from { transform: rotate(0deg) scale(1); opacity: 0.48; }
    to { transform: rotate(360deg) scale(1.03); opacity: 0.32; }
}

@media (max-width: 768px) {
    .header {
        box-shadow:
            0 10px 26px rgba(2, 6, 18, 0.52),
            0 0 0 1px rgba(117, 92, 255, 0.16) inset;
    }

    .btn-primary {
        letter-spacing: 0;
    }

    .cyber-background::before,
    .cyber-background::after {
        opacity: 0.55;
        animation-duration: 32s;
    }
}

/* Tone + Mobile Stability Patch */

/* Reduce excessive blue tint: shift visual direction to deep violet */
body {
    background:
        radial-gradient(1200px 620px at 8% -10%, rgba(118, 83, 255, 0.2), transparent 60%),
        radial-gradient(900px 540px at 90% 12%, rgba(162, 84, 255, 0.2), transparent 58%),
        radial-gradient(1000px 560px at 55% 110%, rgba(126, 92, 255, 0.12), transparent 62%),
        #05040d;
}

.header {
    background:
        linear-gradient(120deg, rgba(26, 17, 54, 0.64), rgba(22, 14, 44, 0.56)),
        rgba(9, 10, 22, 0.44);
}

.balance-card,
.action-card,
.subscription-item,
.plan-card,
.subscription-details-card-new,
.keys-connect-block,
.modal-content,
.referral-card,
.server-status-message {
    background:
        linear-gradient(145deg, rgba(22, 16, 44, 0.82), rgba(14, 10, 33, 0.72)),
        rgba(11, 12, 28, 0.58);
}

.btn-primary {
    background: linear-gradient(115deg, #9a5eff 0%, #815bff 52%, #b168ff 100%);
}

.btn-primary:hover {
    box-shadow:
        0 18px 34px rgba(102, 70, 255, 0.42),
        0 0 28px rgba(167, 97, 255, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* Android/Telegram WebView fix:
   remove heavy fixed backgrounds + blur/animations in "Почему мы" on mobile. */
@media (max-width: 768px) {
    .why-us-view::before,
    .why-us-view::after {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        animation: none !important;
        background-attachment: scroll !important;
    }

    .why-us-view::after {
        opacity: 0.25 !important;
    }

    .why-us-card-full {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .why-us-card-full::before {
        display: none !important;
    }

    .feature-list-enhanced li {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        animation: none !important;
    }

    .feature-list-enhanced li::before {
        display: none !important;
    }

    .feature-icon,
    .feature-icon::before,
    .why-us-card-full .card-title,
    .why-us-card-full .card-title::after {
        animation: none !important;
        filter: none !important;
    }
}

/* Mobile stability for subscription details (Telegram WebView repaint fixes) */
@media (max-width: 768px) {
    #subscriptionDetailsView .subscription-details-card-new,
    #subscriptionDetailsView .keys-connect-block,
    #subscriptionDetailsView .app-client-row,
    #subscriptionDetailsView .key-row,
    #subscriptionDetailsView .key-input-unified {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    #subscriptionDetailsView .key-select-row,
    #subscriptionDetailsView .key-select-row.active,
    #subscriptionDetailsView .key-select-row:hover,
    #subscriptionDetailsView .btn-fast-inline,
    #subscriptionDetailsView .btn-fast-inline::after {
        animation: none !important;
        transform: none !important;
    }

    #subscriptionDetailsView .key-content-collapsed,
    #subscriptionDetailsView .key-content-expanded {
        transform: none !important;
        will-change: auto !important;
    }

    #subscriptionDetailsView .key-content-collapsed {
        transition: opacity 0.14s ease !important;
    }

    #subscriptionDetailsView .key-content-expanded {
        transition: opacity 0.16s ease !important;
    }

    .quick-key-top-alert {
        width: calc(100vw - 16px);
        top: max(66px, calc(env(safe-area-inset-top) + 52px));
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ============================================================
   VOID VISUAL UPGRADE — Premium Enhancement Layer
   ============================================================ */

/* Logo title gradient animation */
.logo-title {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #c4b5fd 30%,
        #818cf8 55%,
        #c084fc 80%,
        #ffffff 100%
    );
    background-size: 250% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 5s ease-in-out infinite;
    letter-spacing: 3px;
    font-family: var(--font-display);
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Balance amount — bigger, more impactful */
.balance-amount {
    font-size: 28px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #a78bfa, #818cf8, #c084fc);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
    text-shadow: none;
}

/* Balance card — stronger bottom accent line */
.balance-card::after {
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(129, 140, 248, 0.9),
        rgba(192, 132, 252, 1),
        rgba(129, 140, 248, 0.9),
        transparent
    ) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.7), 0 0 40px rgba(139, 92, 246, 0.3) !important;
}

/* Action cards — unique color accent per type */
.action-card[data-action="why-us"] {
    border-color: rgba(251, 191, 36, 0.25);
}
.action-card[data-action="why-us"]:hover {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow:
        0 18px 34px rgba(251, 191, 36, 0.18),
        0 0 0 1px rgba(251, 191, 36, 0.25) inset,
        0 0 30px rgba(251, 191, 36, 0.15);
}
.action-card[data-action="why-us"] .card-icon {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: inset 0 0 16px rgba(251, 191, 36, 0.15), 0 6px 18px rgba(180, 120, 0, 0.3);
}

.action-card[data-action="working-telegram"] {
    border-color: rgba(59, 130, 246, 0.25);
}
.action-card[data-action="working-telegram"]:hover {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow:
        0 18px 34px rgba(59, 130, 246, 0.18),
        0 0 0 1px rgba(59, 130, 246, 0.25) inset,
        0 0 30px rgba(59, 130, 246, 0.15);
}
.action-card[data-action="working-telegram"] .card-icon {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.26), rgba(37, 99, 235, 0.18));
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: inset 0 0 16px rgba(59, 130, 246, 0.18), 0 6px 18px rgba(29, 78, 216, 0.35);
}

.action-card[data-action="subscriptions"] {
    border-color: rgba(139, 92, 246, 0.3);
}
.action-card[data-action="subscriptions"]:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow:
        0 18px 34px rgba(139, 92, 246, 0.22),
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 36px rgba(139, 92, 246, 0.2);
}
.action-card[data-action="subscriptions"] .card-icon {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.32), rgba(109, 40, 217, 0.22));
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.25), 0 6px 20px rgba(109, 40, 217, 0.4);
}

.action-card[data-action="support"] {
    border-color: rgba(20, 184, 166, 0.22);
}
.action-card[data-action="support"]:hover {
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow:
        0 18px 34px rgba(20, 184, 166, 0.15),
        0 0 0 1px rgba(20, 184, 166, 0.2) inset,
        0 0 28px rgba(20, 184, 166, 0.12);
}
.action-card[data-action="support"] .card-icon {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(13, 148, 136, 0.15));
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: inset 0 0 16px rgba(20, 184, 166, 0.15), 0 6px 18px rgba(13, 148, 136, 0.28);
}

/* Card icon — stop the constant rotation, keep subtle pulse only */
.card-icon {
    animation: iconPulseClean 3s ease-in-out infinite !important;
}

@keyframes iconPulseClean {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(142, 104, 255, 0.3)); }
    50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(142, 104, 255, 0.5)); }
}

/* Action card title — slightly bigger */
.action-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
}

/* Subscription items — active glow for non-expired */
.subscription-item:not(.expired) {
    border-left: 3px solid rgba(139, 92, 246, 0.6);
}

/* Plan cards — cleaner price display */
.plan-price {
    background: linear-gradient(135deg, #c4b5fd, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Header — stronger glass effect */
.header {
    background: rgba(8, 8, 20, 0.55) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.18) !important;
}

/* Back button — more polished */
.back-btn {
    color: rgba(196, 181, 253, 0.9);
    transition: color 0.2s ease, transform 0.15s ease;
}
.back-btn:hover {
    color: #ffffff;
    transform: translateX(-3px);
}

/* View headers — gradient underline */
.view-header h2 {
    position: relative;
    display: inline-block;
}
.view-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* Buttons — stronger primary glow on hover */
.btn-primary:hover {
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.55),
        0 0 30px rgba(139, 92, 246, 0.35),
        0 0 60px rgba(139, 92, 246, 0.15) !important;
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: scale(0.98) translateY(0);
}

/* Toast — more polished */
.toast {
    border-radius: 14px !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
}

/* Singularity hero — enhance glow */
.singularity-core {
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(139, 92, 246, 0.3),
        0 0 100px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(192, 132, 252, 0.4) !important;
}

/* ============================================================
   VOID REFERRAL PAGE — Premium Redesign v2
   ============================================================ */

.referral-content { padding: 0 0 24px; }

.ref-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* HERO */
.ref-hero {
    position: relative;
    border-radius: 24px;
    padding: 36px 24px 32px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(99,102,241,0.18) 0%,
        rgba(139,92,246,0.22) 40%,
        rgba(236,72,153,0.16) 100%);
    border: 1px solid rgba(139,92,246,0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 40px rgba(139,92,246,0.18);
}
.ref-hero-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,92,246,0.28), transparent 70%);
    pointer-events: none;
}
.ref-hero-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    border: 1px solid var(--tier-color, #8b5cf6);
    background: rgba(0,0,0,0.3);
    font-size: 13px;
    font-weight: 600;
    color: var(--tier-color, #c4b5fd);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 16px rgba(139,92,246,0.25);
}
.ref-hero-tier-icon { font-size: 15px; }
.ref-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    font-family: var(--font-display);
    background: linear-gradient(135deg, #fff 20%, #c4b5fd 60%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px;
}
.ref-hero-sub {
    font-size: 15px;
    color: rgba(196,181,253,0.85);
    line-height: 1.5;
    margin: 0;
}
.ref-bonus-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    -webkit-text-fill-color: #fff;
}

/* STATS TRIO */
.ref-trio {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 10px;
}
.ref-trio-card {
    border-radius: 18px;
    padding: 18px 12px 14px;
    text-align: center;
    background: rgba(15,15,35,0.55);
    border: 1px solid rgba(139,92,246,0.22);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease;
}
.ref-trio-card:active { transform: scale(0.97); }
.ref-trio-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-display);
}
.ref-trio-lbl {
    font-size: 11px;
    color: rgba(180,180,212,0.8);
    letter-spacing: 0.2px;
}
.ref-trio-accent {
    background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(236,72,153,0.18));
    border-color: rgba(139,92,246,0.4);
    box-shadow: 0 8px 24px rgba(139,92,246,0.2);
}
.ref-trio-accent .ref-trio-num {
    background: linear-gradient(135deg, #c4b5fd, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* TIER PROGRESS */
.ref-tier-block {
    border-radius: 20px;
    padding: 20px;
    background: rgba(15,15,35,0.55);
    border: 1px solid rgba(139,92,246,0.22);
    backdrop-filter: blur(12px);
}
.ref-tier-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}
.ref-tier-cur-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.ref-tier-next-hint {
    font-size: 12px;
    color: rgba(180,180,212,0.75);
}
.ref-tier-maxed { color: #f59e0b !important; font-weight: 600; }
.ref-tier-bar-wrap { margin-bottom: 16px; }
.ref-tier-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
}
.ref-tier-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tier-color, #8b5cf6), rgba(236,72,153,0.8));
    position: relative;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 12px var(--tier-color, rgba(139,92,246,0.6));
}
.ref-tier-bar-shine {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
}
.ref-tier-dots-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ref-tier-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    opacity: 0.35;
    transition: opacity 0.3s, transform 0.3s;
    cursor: default;
}
.ref-tier-dot.reached { opacity: 0.7; }
.ref-tier-dot.current { opacity: 1; transform: scale(1.2); }
.ref-tier-dot span { font-size: 18px; }
.ref-tier-dot-label { font-size: 10px; color: rgba(180,180,212,0.7); }
.ref-tier-connector {
    flex: 1;
    height: 1px;
    background: rgba(139,92,246,0.2);
    margin: 0 4px;
    margin-bottom: 14px;
}

/* LINK BLOCK */
.ref-link-block {
    border-radius: 20px;
    padding: 20px;
    background: rgba(15,15,35,0.55);
    border: 1px solid rgba(139,92,246,0.28);
    backdrop-filter: blur(12px);
}
.ref-link-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(196,181,253,0.9);
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}
.ref-link-icon-wrap { font-size: 16px; }
.ref-link-input-row { margin-bottom: 12px; }
.ref-link-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 12px;
    color: rgba(196,181,253,0.9);
    font-size: 12px;
    font-family: monospace;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ref-link-input:focus { border-color: rgba(139,92,246,0.6); }
.ref-link-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ref-btn-copy, .ref-btn-share {
    padding: 12px 10px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.ref-btn-copy {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6, #a855f7);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
    animation: gradientShift 3s ease-in-out infinite;
}
.ref-btn-copy:active { transform: scale(0.97); opacity: 0.9; }
.ref-btn-copy.copied {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 6px 20px rgba(16,185,129,0.4) !important;
    animation: none !important;
}
.ref-btn-share {
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.35);
    color: rgba(196,181,253,0.95);
}
.ref-btn-share:active { transform: scale(0.97); opacity: 0.85; }

/* HOW IT WORKS */
.ref-how-block {
    border-radius: 20px;
    padding: 22px 18px 20px;
    background: rgba(12,12,28,0.5);
    border: 1px solid rgba(139,92,246,0.15);
    backdrop-filter: blur(16px);
}
.ref-how-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(139,92,246,0.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-align: center;
}
.ref-how-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ref-how-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    transition: background 0.2s;
}
.ref-how-card-accent {
    background: rgba(139,92,246,0.08);
    border-color: rgba(139,92,246,0.25);
}
.ref-how-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--card-color, #818cf8) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-color, #818cf8) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color, #818cf8);
    flex-shrink: 0;
}
.ref-how-card-body {
    flex: 1;
    min-width: 0;
}
.ref-how-card-step {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}
.ref-how-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 3px;
}
.ref-how-card-desc {
    font-size: 12px;
    color: rgba(180,180,212,0.6);
    line-height: 1.4;
}
.ref-how-reward {
    color: #f472b6;
    font-weight: 700;
}

@media (max-width: 380px) {
    .ref-trio { grid-template-columns: 1fr 1fr; }
    .ref-trio-balance { grid-column: 1 / -1; }
    .ref-hero-title { font-size: 26px; }
}

/* ── Beta badge ──────────────────────────────────────────── */
.beta-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #f472b6;
    background: rgba(244,114,182,0.12);
    border: 1px solid rgba(244,114,182,0.3);
    border-radius: 6px;
    padding: 1px 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* ── Proxy View ──────────────────────────────────────────── */
.proxy-hero {
    text-align: center;
    padding: 28px 16px 20px;
}
.proxy-hero-icon {
    font-size: 52px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 18px rgba(139,92,246,0.5));
}
.proxy-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}
.proxy-hero-sub {
    font-size: 13px;
    color: rgba(196,181,253,0.65);
    margin: 0;
    line-height: 1.5;
}

.proxy-status-badge {
    margin: 0 0 14px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.proxy-status-badge.active {
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.3);
    color: #34d399;
}

.proxy-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.proxy-benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}
.proxy-benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: color-mix(in srgb, var(--c, #818cf8) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, #818cf8) 28%, transparent);
}
.proxy-benefit-body { flex: 1; min-width: 0; }
.proxy-benefit-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.proxy-benefit-desc  { font-size: 11.5px; color: rgba(180,180,212,0.6); line-height: 1.4; }

.proxy-pricing {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
}
.proxy-pricing.free {
    background: rgba(52,211,153,0.07);
    border: 1px solid rgba(52,211,153,0.2);
}
.proxy-pricing.paid {
    background: rgba(251,191,36,0.07);
    border: 1px solid rgba(251,191,36,0.2);
}
.proxy-pricing-icon { font-size: 26px; flex-shrink: 0; }
.proxy-pricing-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.proxy-pricing-desc  { font-size: 12px; color: rgba(196,181,253,0.6); }

.proxy-connect-btn {
    width: 100%;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    margin-bottom: 10px;
}
.proxy-note {
    font-size: 11.5px;
    color: rgba(180,180,212,0.45);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ── Dashboard news banner ───────────────────────────────── */
.dash-news-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(244,114,182,0.08));
    border: 1px solid rgba(139,92,246,0.28);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.dash-news-banner:active { background: rgba(139,92,246,0.18); }
.dash-news-icon { font-size: 28px; flex-shrink: 0; }
.dash-news-body { flex: 1; min-width: 0; }
.dash-news-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.dash-news-desc  { font-size: 11.5px; color: rgba(196,181,253,0.65); line-height: 1.4; }
.dash-news-arrow { font-size: 22px; color: rgba(139,92,246,0.7); flex-shrink: 0; }

/* ── Proxy beta note ─────────────────────────────────────── */
.proxy-beta-note {
    margin-top: 6px;
    padding: 15px 16px;
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.18);
    border-radius: 14px;
    margin-bottom: 24px;
}
.proxy-beta-note-title {
    font-size: 13px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 6px;
}
.proxy-beta-note-text {
    font-size: 12px;
    color: rgba(196,181,253,0.65);
    line-height: 1.5;
    margin-bottom: 12px;
}
.proxy-beta-feedback-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 10px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
