/* ============================================
   ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ
   ============================================ */

.profile-image,
.social-link-button,
.theme-toggle,
.visitor-counter,
.season-animations > *,
.cinematic-stage,
.particles span {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.97);
    --card-text: #333333;
    --shadow-color: rgba(0, 100, 150, 0.2);
    --overlay-color: rgba(0, 50, 100, 0.3);
}

body.dark-theme {
    --text-color: #ffffff;
    --card-bg: rgba(30, 30, 30, 0.95);
    --card-text: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --overlay-color: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Arial', 'Segoe UI', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    transition: background 1s ease-in-out;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================
   СЕЗОННЫЕ ГРАДИЕНТЫ
   ============================================ */

body.winter.morning { background: linear-gradient(135deg, #E0F7FF 0%, #A8DAFF 50%, #FFE5B4 100%); }
body.winter.day { background: linear-gradient(135deg, #D4F1FF 0%, #87CEEB 50%, #FFFFFF 100%); }
body.winter.evening { background: linear-gradient(135deg, #4A5F8C 0%, #8B7DAF 50%, #D4A5D4 100%); }
body.winter.night { background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 50%, #415A77 100%); }

body.spring.morning { background: linear-gradient(135deg, #FFE5E5 0%, #FFC8DD 50%, #A8E6CF 100%); }
body.spring.day { background: linear-gradient(135deg, #C1FFC1 0%, #7FD8BE 50%, #FFD6E8 100%); }
body.spring.evening { background: linear-gradient(135deg, #FFAFCC 0%, #FFC8A8 50%, #FFDAB9 100%); }
body.spring.night { background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%); }

body.summer.morning { background: linear-gradient(135deg, #FFF4A3 0%, #FFD700 50%, #87CEEB 100%); }
body.summer.day { background: linear-gradient(135deg, #87CEEB 0%, #00BFFF 50%, #FFD700 100%); }
body.summer.evening { background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFA07A 100%); }
body.summer.night { background: linear-gradient(135deg, #0A1828 0%, #1E3A5F 50%, #2E5F8F 100%); }

body.autumn.morning { background: linear-gradient(135deg, #FFD89B 0%, #FFB366 50%, #FFA07A 100%); }
body.autumn.day { background: linear-gradient(135deg, #FFB84D 0%, #FF9F1C 50%, #D66853 100%); }
body.autumn.evening { background: linear-gradient(135deg, #E63946 0%, #F77F00 50%, #FCBF49 100%); }
body.autumn.night { background: linear-gradient(135deg, #2C1810 0%, #4A2511 50%, #6B3410 100%); }

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--overlay-color) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   PRELOADER
   ============================================ */

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

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.cinematic-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.cinematic-stage.active {
    opacity: 1;
}

.stage-1 { background: #000000; }

.flash {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    animation: flash-burst 2s ease-out;
}

@keyframes flash-burst {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(3); }
}

.stage-2 {
    background: radial-gradient(ellipse at center, #1a0033 0%, #000000 100%);
}

.stars-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff, 0 0 15px #ffffff;
    animation: star-twinkle 2s ease-in-out infinite;
}

.star:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; width: 2px; height: 2px; }
.star:nth-child(2) { top: 40%; left: 70%; animation-delay: 0.3s; width: 3px; height: 3px; }
.star:nth-child(3) { top: 60%; left: 20%; animation-delay: 0.6s; width: 2px; height: 2px; }
.star:nth-child(4) { top: 80%; left: 50%; animation-delay: 0.9s; width: 4px; height: 4px; }
.star:nth-child(5) { top: 30%; left: 80%; animation-delay: 1.2s; width: 2px; height: 2px; }
.star:nth-child(6) { top: 70%; left: 60%; animation-delay: 1.5s; width: 3px; height: 3px; }
.star:nth-child(7) { top: 50%; left: 40%; animation-delay: 1.8s; width: 5px; height: 5px; }
.star:nth-child(8) { top: 10%; left: 50%; animation-delay: 2.1s; width: 2px; height: 2px; }

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.stage-3 { background: #000033; }

.hyperspace {
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.1) 40px, rgba(255,255,255,0.1) 80px),
        repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.1) 40px, rgba(255,255,255,0.1) 80px);
    animation: hyperspace-zoom 2s linear infinite;
    transform-origin: center;
}

@keyframes hyperspace-zoom {
    0% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    100% { transform: scale(3) rotate(360deg); opacity: 0; }
}

.stage-4 {
    background: radial-gradient(ellipse at center, #000033 0%, #000000 100%);
}

.planet {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 
        inset -30px -30px 50px rgba(0,0,0,0.5),
        0 0 80px rgba(102, 126, 234, 0.8),
        0 0 120px rgba(118, 75, 162, 0.6);
    animation: planet-approach 2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
    animation: glow-pulse 2s ease-in-out infinite;
}

.planet-text {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

@keyframes planet-approach {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stage-5 {
    background: radial-gradient(ellipse at center, #667eea 0%, #000000 100%);
}

.logo-explosion {
    position: relative;
    text-align: center;
}

.epic-logo {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(90deg, #00dbde, #fc00ff, #00dbde);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-burst 1.5s ease-out, rainbow-flow 3s linear infinite;
    filter: drop-shadow(0 0 30px rgba(252, 0, 255, 0.8));
}

@keyframes logo-burst {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

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

.particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.particles span {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffffff, transparent);
    border-radius: 50%;
}

.particles span:nth-child(1) { animation: particle-1 2s ease-out infinite; }
.particles span:nth-child(2) { animation: particle-2 2s ease-out infinite; }
.particles span:nth-child(3) { animation: particle-3 2s ease-out infinite; }
.particles span:nth-child(4) { animation: particle-4 2s ease-out infinite; }
.particles span:nth-child(5) { animation: particle-5 2s ease-out infinite; }
.particles span:nth-child(6) { animation: particle-6 2s ease-out infinite; }
.particles span:nth-child(7) { animation: particle-7 2s ease-out infinite; }
.particles span:nth-child(8) { animation: particle-8 2s ease-out infinite; }
.particles span:nth-child(9) { animation: particle-9 2s ease-out infinite; }
.particles span:nth-child(10) { animation: particle-10 2s ease-out infinite; }
.particles span:nth-child(11) { animation: particle-11 2s ease-out infinite; }
.particles span:nth-child(12) { animation: particle-12 2s ease-out infinite; }

@keyframes particle-1 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(150px, -150px); opacity: 0; } }
@keyframes particle-2 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-150px, -150px); opacity: 0; } }
@keyframes particle-3 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(150px, 150px); opacity: 0; } }
@keyframes particle-4 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-150px, 150px); opacity: 0; } }
@keyframes particle-5 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(200px, 0); opacity: 0; } }
@keyframes particle-6 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-200px, 0); opacity: 0; } }
@keyframes particle-7 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, 200px); opacity: 0; } }
@keyframes particle-8 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, -200px); opacity: 0; } }
@keyframes particle-9 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(100px, -180px); opacity: 0; } }
@keyframes particle-10 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-100px, 180px); opacity: 0; } }
@keyframes particle-11 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(180px, 100px); opacity: 0; } }
@keyframes particle-12 { 0% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(-180px, -100px); opacity: 0; } }

.cinematic-progress {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    text-align: center;
}

.progress-bar-cinematic {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(252, 0, 255, 0.8);
}

.progress-percent-cinematic {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
                            }

/* ============================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================ */

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(20deg);
}

.theme-toggle i {
    font-size: 22px;
    color: #fff;
}

.visitor-counter {
    position: fixed;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.visitor-counter i {
    font-size: 18px;
    color: #fff;
}

.visitor-counter span {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.container {
    max-width: 650px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 20px 50px var(--shadow-color));
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-section {
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
    animation: fadeInDown 0.8s ease-out;
}

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

.profile-image {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #40BFDF 0%, #60D5F5 100%);
    border: 5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 8px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 12px 30px var(--shadow-color);
}

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

.username {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.animated-signature {
    display: inline-block;
    background: linear-gradient(90deg, #00dbde, #fc00ff, #00dbde);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-flow 3s linear infinite, signature-draw 2s ease-out;
}

@keyframes signature-draw {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.star-icon {
    display: inline-block;
    animation: star-appear 0.5s ease-out 1.8s backwards;
}

@keyframes star-appear {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.bio {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 450px;
    margin: 0 auto 25px;
    padding: 0 20px;
    text-shadow: 1px 1px 5px rgba(0, 100, 150, 0.4);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 2px 2px 8px rgba(0, 150, 200, 0.6);
}

.stat-label {
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 5px;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.social-link-button {
    background: var(--card-bg);
    color: var(--card-text);
    padding: 22px 28px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.social-link-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.social-link-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.1s ease;
}

.arrow {
    font-size: 24px;
    color: var(--card-text);
    opacity: 0.6;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.social-link-button:hover .arrow {
    transform: translateX(5px);
}

/* ============================================
   ЦВЕТНЫЕ РАМКИ КНОПОК
   ============================================ */

.telegram-btn { border: 2px solid rgba(54, 174, 226, 0.6) !important; }
.instagram-btn { border: 2px solid rgba(221, 42, 123, 0.6) !important; }
.tiktok-btn { border: 2px solid rgba(0, 242, 234, 0.6) !important; }
.youtube-btn { border: 2px solid rgba(255, 0, 0, 0.6) !important; }
.twitter-btn { border: 2px solid rgba(29, 161, 242, 0.6) !important; }
.discord-btn { border: 2px solid rgba(88, 101, 242, 0.6) !important; }
.spotify-btn { border: 2px solid rgba(29, 185, 84, 0.6) !important; }
.funpay-btn { border: 2px solid rgba(255, 107, 53, 0.6) !important; }
.donate-btn { border: 2px solid rgba(255, 61, 61, 0.7) !important; }

.telegram-btn .icon-wrapper { background: linear-gradient(135deg, #36aee2, #0088cc); }
.instagram-btn .icon-wrapper { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.tiktok-btn .icon-wrapper { background: linear-gradient(135deg, #00f2ea, #ff0050); }
.youtube-btn .icon-wrapper { background: linear-gradient(135deg, #ff0000, #cc0000); }
.twitter-btn .icon-wrapper { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.discord-btn .icon-wrapper { background: linear-gradient(135deg, #5865F2, #404EED); }
.spotify-btn .icon-wrapper { background: linear-gradient(135deg, #1DB954, #1ED760); }
.funpay-btn .icon-wrapper { background: linear-gradient(135deg, #FF6B35, #FF8C42, #FFA07A); }

.donate-btn .icon-wrapper {
    background: linear-gradient(135deg, #FF6B6B, #FF3D3D, #FF0000);
    animation: donate-pulse 2s ease-in-out infinite;
}

@keyframes donate-pulse {
    0%, 100% { box-shadow: 0 4px 10px rgba(255, 61, 61, 0.3); transform: scale(1); }
    50% { box-shadow: 0 4px 20px rgba(255, 61, 61, 0.6); transform: scale(1.05); }
}

.donate-btn:hover .icon-wrapper i {
    animation: heart-beat-donate 0.8s ease-in-out;
}

@keyframes heart-beat-donate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
}

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

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

.donate-btn .platform-name {
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* Свечение при наведении */
.telegram-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(54, 174, 226, 0.4); }
.instagram-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(221, 42, 123, 0.4); }
.tiktok-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(0, 242, 234, 0.4); }
.youtube-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(255, 0, 0, 0.4); }
.twitter-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(29, 161, 242, 0.4); }
.discord-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(88, 101, 242, 0.4); }
.spotify-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(29, 185, 84, 0.4); }
.funpay-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 20px rgba(255, 107, 53, 0.4); }
.donate-btn:hover { box-shadow: 0 10px 30px var(--shadow-color), 0 0 25px rgba(255, 61, 61, 0.6); }

/* Анимации иконок */
.telegram-btn:hover .icon-wrapper i { animation: telegram-fly 0.6s ease-in-out; }
@keyframes telegram-fly {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.instagram-btn:hover .icon-wrapper i { animation: instagram-heart 0.8s ease-in-out; }
@keyframes instagram-heart {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

.tiktok-btn:hover .icon-wrapper i { animation: tiktok-dance 0.6s ease-in-out; }
@keyframes tiktok-dance {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.youtube-btn:hover .icon-wrapper i { animation: youtube-spin 0.5s ease-in-out; }
@keyframes youtube-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.twitter-btn:hover .icon-wrapper i { animation: twitter-flap 0.5s ease-in-out; }
@keyframes twitter-flap {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    75% { transform: translateY(-3px); }
}

.discord-btn:hover .icon-wrapper i { animation: discord-swing 0.6s ease-in-out; }
@keyframes discord-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

.spotify-btn:hover .icon-wrapper i { animation: spotify-pulse 0.8s ease-in-out infinite; }
@keyframes spotify-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.funpay-btn:hover .icon-wrapper i { animation: funpay-bounce 0.6s ease-in-out; }
@keyframes funpay-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.social-link-button:hover .icon-wrapper {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.social-link-button .icon-wrapper i {
    transition: transform 0.2s ease;
}

.disabled-btn {
    background: rgba(180, 180, 180, 0.6);
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.disabled-btn .icon-wrapper {
    background: linear-gradient(135deg, #999999, #666666);
}

.countdown-timer {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: flex-start;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    min-width: 60px;
}

.timer-value {
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    line-height: 1;
}

.timer-label {
    font-size: 11px;
    color: #666666;
    margin-top: 5px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.link-content {
    flex: 1;
    text-align: left;
}

.platform-name {
    font-size: 19px;
    font-weight: bold;
    color: var(--card-text);
    margin-bottom: 4px;
}

.link-subtitle {
    font-size: 14px;
    color: var(--card-text);
    opacity: 0.7;
}

.footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    opacity: 0.85;
    font-size: 14px;
}

.footer-sub {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================
   ЛЕГЕНДАРНАЯ КНОПКА ???
   ============================================ */

.legendary-btn {
    position: relative;
    border: 3px solid transparent !important;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(90deg, #FFD700, #FF6B00, #FF1493, #9400D3, #00D4FF, #FFD700) border-box !important;
    background-size: 200% 100%;
    animation: legendary-border 3s linear infinite, legendary-glow 2s ease-in-out infinite;
    overflow: visible !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 20, 147, 0.4),
        0 5px 20px var(--shadow-color) !important;
    cursor: default;
    pointer-events: none;
}

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

@keyframes legendary-glow {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 20, 147, 0.4),
            0 5px 20px var(--shadow-color);
    }
    50% { 
        box-shadow: 
            0 0 50px rgba(255, 215, 0, 0.9),
            0 0 90px rgba(255, 20, 147, 0.7),
            0 10px 40px var(--shadow-color);
    }
}

.legendary-btn:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.9),
        0 0 100px rgba(255, 20, 147, 0.8),
        0 15px 50px var(--shadow-color) !important;
}

.legendary-icon {
    background: linear-gradient(135deg, #FFD700, #FF6B00, #FF1493, #9400D3) !important;
    background-size: 200% 200%;
    animation: legendary-icon-gradient 3s ease infinite, legendary-icon-pulse 1.5s ease-in-out infinite;
    position: relative;
    overflow: visible;
}

@keyframes legendary-icon-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.legendary-icon::before {
    content: '✨';
    position: absolute;
    top: -15px;
    left: -15px;
    font-size: 20px;
    animation: legendary-sparkle-1 2s ease-in-out infinite;
}

.legendary-icon::after {
    content: '⭐';
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 20px;
    animation: legendary-sparkle-2 2s ease-in-out infinite 0.5s;
}

@keyframes legendary-sparkle-1 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

@keyframes legendary-sparkle-2 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(-180deg); opacity: 0.7; }
}

.legendary-btn .icon-wrapper i {
    animation: legendary-icon-rotate 4s linear infinite, legendary-icon-bounce 1s ease-in-out infinite;
}

@keyframes legendary-icon-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes legendary-icon-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.15); }
}

.legendary-btn .platform-name {
    background: linear-gradient(90deg, #FFD700, #FF6B00, #FF1493, #9400D3, #00D4FF, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: legendary-text-flow 3s linear infinite;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
}

@keyframes legendary-text-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.legendary-timer {
    margin-top: 15px !important;
}

.legendary-timer-block {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 20, 147, 0.3)) !important;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.2);
    animation: legendary-timer-pulse 2s ease-in-out infinite;
}

@keyframes legendary-timer-pulse {
    0%, 100% { 
        transform: scale(1);
        border-color: rgba(255, 215, 0, 0.5);
    }
    50% { 
        transform: scale(1.05);
        border-color: rgba(255, 20, 147, 0.7);
    }
}

.legendary-timer-block .timer-value {
    background: linear-gradient(90deg, #FFD700, #FF1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.legendary-timer-block .timer-label {
    color: #FFD700;
    font-weight: bold;
    text-transform: uppercase;
}

.legendary-btn::before {
    content: '✨ ⭐ 💎 ✨';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    white-space: nowrap;
    animation: legendary-particles-top 3s ease-in-out infinite;
    pointer-events: none;
}

.legendary-btn::after {
    content: '💫 🌟 💎 💫';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    white-space: nowrap;
    animation: legendary-particles-bottom 3s ease-in-out infinite 1.5s;
    pointer-events: none;
}

@keyframes legendary-particles-top {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) translateY(-5px) scale(1.1); opacity: 1; }
}

@keyframes legendary-particles-bottom {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) translateY(5px) scale(1.1); opacity: 1; }
}

.legendary-btn:hover .legendary-icon {
    animation: legendary-icon-gradient 3s ease infinite, 
               legendary-icon-pulse 1.5s ease-in-out infinite, 
               legendary-hover-shake 0.5s ease-in-out;
}

@keyframes legendary-hover-shake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* ============================================
   СЕЗОННЫЕ АНИМАЦИИ
   ============================================ */

.season-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: #ffffff;
    font-size: 1.5em;
    opacity: 0.8;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% { top: -10%; opacity: 0.8; }
    100% { top: 110%; opacity: 0.3; }
}

.petal {
    position: absolute;
    top: -10%;
    font-size: 1.2em;
    opacity: 0.7;
    animation: petalfall linear infinite;
}

@keyframes petalfall {
    0% { top: -10%; opacity: 0.7; transform: rotate(0deg); }
    100% { top: 110%; opacity: 0.2; transform: rotate(360deg); }
}

.light-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 150, 0.9), transparent);
    border-radius: 50%;
    animation: float-light 12s infinite ease-in-out;
}

@keyframes float-light {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-80vh) translateX(30px); opacity: 0; }
}

.leaf {
    position: absolute;
    top: -10%;
    font-size: 1.3em;
    opacity: 0.8;
    animation: leaffall linear infinite;
}

@keyframes leaffall {
    0% { top: -10%; opacity: 0.8; transform: rotate(0deg) translateX(0); }
    50% { transform: translateX(50px); }
    100% { top: 110%; opacity: 0.3; transform: rotate(720deg) translateX(-30px); }
}

/* ============================================
   СЕЗОННЫЕ УКРАШЕНИЯ ПРОФИЛЯ
   ============================================ */

body.winter .profile-image::before { 
    content: '🎅'; 
    position: absolute; 
    top: -15px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 45px; 
    z-index: 10; 
    animation: bounce 2s ease-in-out infinite; 
}

body.winter .profile-image::after { 
    content: '❄️'; 
    position: absolute; 
    bottom: -20px; 
    right: -20px; 
    font-size: 35px; 
    animation: snowflake-spin 3s linear infinite; 
}

body.spring .profile-image::before { 
    content: '🌸'; 
    position: absolute; 
    top: -10px; 
    left: -10px; 
    font-size: 35px; 
    z-index: 10; 
    animation: float-flower 3s ease-in-out infinite; 
}

body.spring .profile-image::after { 
    content: '🦋'; 
    position: absolute; 
    top: -20px; 
    right: -20px; 
    font-size: 30px; 
    animation: flutter 4s ease-in-out infinite; 
}

body.summer .profile-image::before { 
    content: '😎'; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 80px; 
    z-index: 10; 
    opacity: 0.3; 
    pointer-events: none; 
}

body.summer .profile-image::after { 
    content: '☀️'; 
    position: absolute; 
    top: -25px; 
    right: -25px; 
    font-size: 40px; 
    animation: rotate-sun 8s linear infinite; 
}

body.autumn .profile-image::before { 
    content: '🍂'; 
    position: absolute; 
    top: -15px; 
    left: -15px; 
    font-size: 35px; 
    z-index: 10; 
    animation: leaf-fall 3s ease-in-out infinite; 
}

body.autumn .profile-image::after { 
    content: '🎃'; 
    position: absolute; 
    bottom: -20px; 
    right: -20px; 
    font-size: 35px; 
    animation: pumpkin-glow 2s ease-in-out infinite; 
}

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

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

@keyframes float-flower { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    50% { transform: translateY(-8px) rotate(15deg); } 
}

@keyframes flutter { 
    0%, 100% { transform: translate(0, 0); } 
    25% { transform: translate(5px, -5px); } 
    75% { transform: translate(-5px, 5px); } 
}

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

@keyframes leaf-fall { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    50% { transform: translateY(10px) rotate(20deg); } 
}

@keyframes pumpkin-glow { 
    0%, 100% { transform: scale(1); filter: brightness(1); } 
    50% { transform: scale(1.1); filter: brightness(1.3); } 
}

body.winter .profile-image { 
    border-color: #A8DAFF; 
    box-shadow: 0 0 30px rgba(168, 218, 255, 0.6), 0 8px 20px rgba(168, 218, 255, 0.4); 
}

body.spring .profile-image { 
    border-color: #FFC8DD; 
    box-shadow: 0 0 30px rgba(255, 200, 221, 0.6), 0 8px 20px rgba(255, 200, 221, 0.4); 
}

body.summer .profile-image { 
    border-color: #FFD700; 
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.4); 
}

body.autumn .profile-image { 
    border-color: #FF9F1C; 
    box-shadow: 0 0 30px rgba(255, 159, 28, 0.6), 0 8px 20px rgba(255, 159, 28, 0.4); 
}

/* ============================================
   СПЕЦИАЛЬНЫЕ СОБЫТИЯ
   ============================================ */

body.special-newyear .profile-image::before { 
    content: '🎄'; 
    position: absolute; 
    top: -20px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 50px; 
    z-index: 10; 
    animation: christmas-tree 3s ease-in-out infinite; 
}

body.special-newyear .profile-image::after { 
    content: '🎆'; 
    position: absolute; 
    top: -25px; 
    right: -25px; 
    font-size: 35px; 
    animation: fireworks 2s ease-in-out infinite; 
}

body.special-halloween .profile-image::before { 
    content: '🎃'; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 90px; 
    z-index: 10; 
    opacity: 0.4; 
    animation: spooky-glow 2s ease-in-out infinite; 
}

body.special-halloween .profile-image::after { 
    content: '🦇'; 
    position: absolute; 
    top: -30px; 
    right: -30px; 
    font-size: 35px; 
    animation: bat-fly 3s ease-in-out infinite; 
}

body.special-valentine .profile-image::before { 
    content: '💘'; 
    position: absolute; 
    top: -20px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 45px; 
    z-index: 10; 
    animation: heart-beat 1.5s ease-in-out infinite; 
}

body.special-valentine .profile-image::after { 
    content: '💕'; 
    position: absolute; 
    bottom: -20px; 
    right: -20px; 
    font-size: 35px; 
    animation: float-hearts 3s ease-in-out infinite; 
}

body.special-birthday .profile-image::before { 
    content: '🎂'; 
    position: absolute; 
    top: -25px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 50px; 
    z-index: 10; 
    animation: cake-celebrate 2s ease-in-out infinite; 
}

body.special-birthday .profile-image::after { 
    content: '🎉'; 
    position: absolute; 
    top: -30px; 
    right: -30px; 
    font-size: 40px; 
    animation: party-confetti 1.5s ease-in-out infinite; 
}

@keyframes christmas-tree { 
    0%, 100% { transform: translateX(-50%) scale(1); } 
    50% { transform: translateX(-50%) scale(1.1); } 
}

@keyframes fireworks { 
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; } 
}

@keyframes spooky-glow { 
    0%, 100% { opacity: 0.3; filter: brightness(1); } 
    50% { opacity: 0.6; filter: brightness(1.5) hue-rotate(20deg); } 
}

@keyframes bat-fly { 
    0%, 100% { transform: translateX(0) rotate(0deg); } 
    50% { transform: translateX(-15px) rotate(-15deg); } 
}

@keyframes heart-beat { 
    0%, 100% { transform: translateX(-50%) scale(1); } 
    50% { transform: translateX(-50%) scale(1.2); } 
}

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

@keyframes cake-celebrate { 
    0%, 100% { transform: translateX(-50%) rotate(0deg); } 
    25% { transform: translateX(-50%) rotate(-10deg); } 
    75% { transform: translateX(-50%) rotate(10deg); } 
}

@keyframes party-confetti { 
    0%, 100% { transform: rotate(0deg) scale(1); } 
    50% { transform: rotate(180deg) scale(1.2); } 
}

body.special-newyear .profile-image { 
    border-color: #FFD700; 
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 8px 25px rgba(255, 0, 0, 0.5); 
}

body.special-halloween .profile-image { 
    border-color: #FF6B00; 
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.8), 0 8px 25px rgba(138, 43, 226, 0.5); 
}

body.special-valentine .profile-image { 
    border-color: #FF69B4; 
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.8), 0 8px 25px rgba(255, 20, 147, 0.5); 
}

body.special-birthday .profile-image { 
    border-color: #FF1493; 
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.8), 0 8px 25px rgba(255, 215, 0, 0.5); 
}

/* ============================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ============================================ */

@media (max-width: 768px) {
    .theme-toggle { 
        top: 20px; 
        right: 20px; 
        width: 45px; 
        height: 45px; 
    }
    
    .visitor-counter { 
        top: 20px; 
        left: 20px; 
        padding: 10px 16px; 
        font-size: 14px; 
    }
    
    .container { 
        padding: 30px 15px; 
    }
    
    .profile-image {
        width: 110px;
        height: 110px;
    }
    
    .username { 
        font-size: 26px; 
    }
    
    .bio { 
        font-size: 14px; 
    }
    
    .stats { 
        gap: 20px; 
    }
    
    .stat-number { 
        font-size: 24px; 
    }
    
    .social-link-button { 
        padding: 18px 20px;
        gap: 15px;
    }
    
    .icon-wrapper { 
        width: 55px; 
        height: 55px; 
        font-size: 26px; 
    }
    
    .platform-name { 
        font-size: 17px; 
    }
    
    .link-subtitle { 
        font-size: 13px; 
    }
    
    .arrow { 
        font-size: 20px; 
    }
    
    .countdown-timer { 
        gap: 8px; 
        flex-wrap: wrap;
    }
    
    .timer-block { 
        padding: 8px 10px; 
        min-width: 50px; 
    }
    
    .timer-value { 
        font-size: 18px; 
    }
    
    .timer-label { 
        font-size: 10px; 
    }
    
    .planet { 
        width: 200px; 
        height: 200px; 
    }
    
    .planet-text { 
        font-size: 32px; 
    }
    
    .epic-logo { 
        font-size: 60px; 
    }
    
    .cinematic-progress { 
        width: 85%;
        bottom: 30px;
    }
    
    .progress-percent-cinematic {
        font-size: 16px;
    }
    
    /* Легендарная кнопка на мобильных */
    .legendary-btn::before,
    .legendary-btn::after {
        font-size: 14px;
    }
    
    .legendary-timer {
        gap: 8px;
    }
    
    .legendary-timer-block {
        min-width: 45px;
        padding: 6px 8px;
    }
    
    .legendary-btn .platform-name {
        font-size: 18px;
    }
    
    /* Уменьшаем эмодзи на мобильных */
    body.winter .profile-image::before,
    body.spring .profile-image::before,
    body.summer .profile-image::after,
    body.autumn .profile-image::before {
        font-size: 28px;
    }
    
    body.autumn .profile-image::after,
    body.winter .profile-image::after,
    body.spring .profile-image::after {
        font-size: 28px;
    }
    
    /* Отключаем падающие анимации на мобильных */
    .season-animations {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 10px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .username {
        font-size: 24px;
    }
    
    .social-link-button {
        padding: 16px 18px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .platform-name {
        font-size: 16px;
    }
    
    .footer {
        font-size: 13px;
    }
    
    .legendary-btn .platform-name {
        font-size: 16px;
    }
}

/* Оптимизация для медленных устройств */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
