:root {
    --purple-primary: #8B5CF6;
    --purple-dark: #6D28D9;
    --purple-light: #A78BFA;
    --yellow-primary: #FCD34D;
    --yellow-dark: #F59E0B;
    --yellow-light: #FEF3C7;
    --bg-dark: #0a0a0f;
    --bg-medium: #1a1a2e;
    --bg-light: #2a2a3e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Плавный динамический фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(252, 211, 77, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    z-index: -1;
    animation: smoothGlow 25s ease-in-out infinite;
}

@keyframes smoothGlow {
    0%, 100% { 
        opacity: 0.7;
    }
    50% { 
        opacity: 0.9;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--purple-primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-primary), var(--yellow-primary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-auth {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-black-door {
    padding: 0.7rem 1.5rem;
    background: #000;
    border: 2px solid var(--yellow-primary);
    border-radius: 8px;
    color: var(--yellow-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-black-door:hover {
    background: var(--yellow-primary);
    color: #000;
    box-shadow: 0 0 30px rgba(252, 211, 77, 0.5);
}

/* Main Content */
.main-content {
    margin-top: 100px;
    padding: 3rem;
}

/* Анимация стекающей краски */

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
}

.hero-title {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #FFE66D, #A8E6CF, #FF6B9D);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brightGradient 12s ease infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-weight: 300;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0 5rem 0;
    padding: 0 2rem;
}

.stat-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card::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;
}

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

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--purple-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.stat-number {
    font-family: 'Teko', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--yellow-primary), var(--purple-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
    animation: countUp 2s ease-out;
    letter-spacing: 1px;
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    font-family: 'Orbitron', monospace;
}

/* Features Section */
.features-section {
    padding: 3rem 2rem;
}

.section-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--purple-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.9), rgba(30, 30, 45, 0.7));
    border-left: 3px solid var(--purple-primary);
    border-radius: 8px;
    padding: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

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

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.15), transparent);
    border-radius: 0 0 0 100%;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.feature-card:hover::after {
    width: 120px;
    height: 120px;
    opacity: 1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-8px) translateX(5px);
    border-left-color: var(--yellow-primary);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 2px 8px rgba(252, 211, 77, 0.4));
}

.feature-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--yellow-primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: #CCFF00;
    transform: scale(1.05);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--yellow-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple-primary);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.4);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #CCFF00;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--purple-light);
    font-weight: 900;
}

.pricing-price {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--yellow-primary), var(--purple-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price.free {
    font-size: 2.25rem;
    font-family: 'Teko', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.free-text {
    font-family: 'Rubik', 'Rajdhani', sans-serif;
    font-weight: 700;
}

.pricing-price .currency {
    font-size: 1.5rem;
}

.pricing-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.7rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.9rem;
}

/* Apply Orbitron font to feature items containing numbers */
.pricing-features li,
.feature-description,
.step-text,
.hero-subtitle,
.wow-cases-intro {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.pricing-features li::before {
    content: '✓';
    color: var(--yellow-primary);
    margin-right: 0.8rem;
    font-weight: 900;
}

.btn-pricing {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.btn-pricing:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
}

.pricing-card.featured .btn-pricing {
    background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-primary));
    color: #000;
}

/* Integration service buttons */
.btn-integration {
    width: 200px;
    min-width: 200px;
    height: 56px;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.integration-check {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
}

.btn-integration:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Twitch - фиолетовый */
.btn-twitch {
    background: linear-gradient(135deg, #9146FF, #772CE8);
}

.btn-twitch:hover {
    box-shadow: 0 15px 30px rgba(145, 70, 255, 0.5);
}

/* DonationAlerts - желто-оранжевый */
.btn-donationalerts {
    background: linear-gradient(135deg, #F7A91D, #FF6B35);
}

.btn-donationalerts:hover {
    box-shadow: 0 15px 30px rgba(247, 169, 29, 0.5);
}

/* Donatex - синий */
.btn-donatex {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.btn-donatex:hover {
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

/* Telegram - голубой */
.btn-telegram {
    background: linear-gradient(135deg, #0088cc, #229ED9);
}

.btn-telegram:hover {
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.5);
}

/* ЯндексID - красный */
.btn-yandexid {
    background: linear-gradient(135deg, #FC3F1D, #FF0000);
}

.btn-yandexid:hover {
    box-shadow: 0 15px 30px rgba(252, 63, 29, 0.5);
}

/* Cancel subscription button */
.btn-cancel {
    width: auto;
    max-width: fit-content;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(150, 150, 150, 0.4);
    border-radius: 6px;
    color: rgba(160, 160, 176, 0.6);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-cancel:hover {
    background: rgba(120, 120, 120, 0.2);
    color: rgba(180, 180, 190, 0.9);
    border-color: rgba(150, 150, 150, 0.6);
}

/* Dashboard */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--yellow-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dashboard-nav {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-nav-item {
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.dashboard-nav-item:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-light);
    transform: translateY(-2px);
}

.dashboard-nav-item.active {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    color: white;
    border-color: var(--purple-primary);
}

.dashboard-content {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    min-height: 400px;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.empty-state .btn-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-help {
    max-width: 200px;
    width: 200px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.9);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 2.5rem 2rem 2rem;
    margin-top: 2rem;
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--purple-primary);
    transform: scale(1.2) rotate(5deg);
}

.footer-author {
    color: var(--purple-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-author a {
    color: #CCFF00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-author a:hover {
    color: #DDFF33;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.footer-version {
    color: #CCFF00;
    font-size: 0.87rem;
    font-weight: 600;
}

.btn-contact {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--yellow-dark), var(--yellow-primary));
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1.05rem;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(252, 211, 77, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .nav {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .btn-auth, .btn-black-door {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 3rem 1rem;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
        margin-top: 180px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-name {
        font-size: 1.8rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .pricing-price.free {
        font-size: 1.3rem;
    }
    
    .dashboard {
        padding: 1rem;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-nav {
        gap: 0.5rem;
    }
    
    .dashboard-nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .dashboard-content {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-auth, .btn-black-door, .btn-contact, .btn-pricing {
        width: 100%;
        text-align: center;
        max-width: 100%;
    }
    
    .nav {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .yandex-sticker {
        font-size: 0.9rem;
        padding: 1rem 1.5rem;
        max-width: 90%;
    }
    
    .yandex-sticker::before {
        font-size: 2.5rem;
    }
    
    .wow-cases-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        min-width: auto;
    }
}

/* Glitch effect */
.glitch {
    position: relative;
}

/* Universal number styling */
.number, 
.pricing-period,
.dashboard-content .empty-state-text,
.feature-description,
.pricing-features li,
.stat-label,
.hero-subtitle,
.step-text,
.wow-cases-intro,
.pricing-card,
.dashboard-nav-item,
.footer-author {
    font-variant-numeric: tabular-nums;
}

/* Apply Orbitron to all numbers - global rule */
* {
    font-variant-numeric: tabular-nums;
}

*:where(:has(> :is(time, data, var, output, kbd, samp))) {
    font-family: 'Orbitron', monospace;
}

/* Specific number elements */
.number,
.stat-number,
.pricing-price,
.step-number,
.dashboard-content h3,
time,
data,
var {
    font-family: 'Orbitron', monospace;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:hover::before {
    animation: glitch-1 0.3s infinite;
    color: var(--purple-primary);
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch-2 0.3s infinite;
    color: var(--yellow-primary);
    z-index: -2;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}

/* How it works section */
.how-it-works {
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.5rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    animation: slideInFromLeft 0.6s ease-out backwards;
}

.step-item:nth-child(odd) {
    animation-delay: calc(var(--step-index) * 0.1s);
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple-primary), var(--yellow-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1rem 1.3rem;
    transition: all 0.3s ease;
}

.step-content:hover {
    background: rgba(26, 26, 46, 0.6);
    border-color: var(--purple-primary);
    transform: translateX(10px);
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.step-arrow {
    font-size: 1.8rem;
    color: var(--yellow-primary);
    text-align: center;
    animation: arrowBounce 2s ease-in-out infinite;
    margin: 0.15rem 0;
}

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

/* Yandex Sticker */
.yandex-sticker {
    background: rgba(252, 211, 77, 0.15);
    color: var(--yellow-primary);
    padding: 1rem 1.5rem;
    text-align: left;
    margin: 3rem 0;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    max-width: fit-content;
    backdrop-filter: blur(10px);
}

.yandex-sticker-wrapper {
    text-align: right;
    margin: 2rem 2rem 0.15rem;
    padding-right: 3rem;
}

.yandex-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1.4;
}

.yandex-logo {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #FF0000;
    opacity: 1;
    transform: rotate(-15deg);
    flex-shrink: 0;
    line-height: 1;
    align-self: stretch;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.yandex-socket-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.yandex-socket-link:hover {
    color: white;
    border-bottom-color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* WOW Cases Page */
.wow-cases-section {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-medium);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

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

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: var(--purple-light);
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

/* Plan Purchase Modal */
.purchase-plan-info {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid var(--purple-primary);
}

.purchase-plan-name {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.purchase-plan-price {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.purchase-plan-period {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.purchase-agreement {
    margin-bottom: 2rem;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.agreement-checkbox:hover {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.15);
}

.agreement-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--purple-primary);
}

.agreement-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.agreement-link {
    color: var(--yellow-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.agreement-link:hover {
    color: var(--yellow-light);
    text-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
}

.btn-purchase {
    width: 100%;
    max-width: none !important;
    padding: 1.2rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-purchase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.3);
}

.btn-purchase:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Scenario Builder */
.scenario-builder {
    background: var(--bg-medium);
    border-radius: 16px;
    padding: 2rem;
    min-height: 600px;
}

.scenario-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.scenario-name-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.scenario-name-input:focus {
    outline: none;
    border-color: var(--purple-primary);
}

.scenario-builder-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    background: rgba(100, 100, 100, 0.3);
    border: 1px solid rgba(150, 150, 150, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(120, 120, 120, 0.4);
    color: var(--text-primary);
}

.scenario-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 12px;
    min-height: 400px;
}

.scenario-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.scenario-empty p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.scenario-hint {
    font-size: 1rem !important;
    color: var(--text-secondary);
    opacity: 0.7;
}

.scenario-node {
    width: 100%;
    max-width: 600px;
    background: var(--bg-light);
    border: 2px solid;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.scenario-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scenario-node-header {
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 700;
}

.scenario-node-type {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.scenario-node-remove {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.scenario-node-remove:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.scenario-node-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.scenario-node-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.scenario-node-info {
    flex: 1;
}

.scenario-node-service {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scenario-node-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.scenario-node-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.scenario-node-setting {
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(252, 61, 29, 0.1);
    border-left: 3px solid #FC3F1D;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.scenario-arrow {
    font-size: 2rem;
    color: var(--purple-primary);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

.scenario-add-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.btn-add-node {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px dashed;
    background: rgba(26, 26, 46, 0.4);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-add-trigger {
    border-color: var(--purple-primary);
}

.btn-add-trigger:hover {
    background: rgba(139, 92, 246, 0.1);
    border-style: solid;
}

.btn-add-action {
    border-color: var(--yellow-primary);
}

.btn-add-action:hover {
    background: rgba(252, 211, 77, 0.1);
    border-style: solid;
}

.btn-add-icon {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Service Selector Modal */
.service-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.service-selector {
    background: var(--bg-medium);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.service-selector-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-medium);
    z-index: 10;
}

.service-selector-header h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    color: var(--purple-light);
    margin: 0;
}

.service-selector-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-selector-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.service-list,
.trigger-list {
    padding: 2rem;
}

.service-list-hint,
.trigger-list-hint {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-card,
.trigger-card {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-light);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.service-card:hover,
.trigger-card:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.service-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trigger-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.trigger-card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.trigger-card-info {
    flex: 1;
}

.trigger-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trigger-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.btn-back {
    padding: 0.8rem 1.2rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid var(--purple-primary);
    border-radius: 8px;
    color: var(--purple-light);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Scenarios Section */
.scenarios-section {
    padding: 2rem;
}

.scenarios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.scenarios-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.scenarios-header-centered h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: var(--purple-light);
    margin: 0;
}

.scenarios-header-centered .btn-pricing {
    max-width: 300px;
}

.scenarios-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: var(--purple-light);
    margin: 0;
}

.scenarios-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.scenario-item {
    background: var(--bg-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.scenario-item:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.2);
}

.scenario-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.scenario-item-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scenario-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.scenario-item-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scenario-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.scenario-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.btn-power {
    background: rgba(60, 60, 60, 0.4);
    border: 2px solid rgba(100, 100, 100, 0.5);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.btn-power .power-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-power.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22C55E;
}

.btn-power.active .power-icon {
    color: #22C55E;
}

.btn-power:hover {
    transform: scale(1.1);
}

.btn-power.active:hover {
    background: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.btn-debug {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-debug:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: #FF6B35;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.btn-delete {
    background: rgba(255, 77, 77, 0.2);
    border: 2px solid rgba(255, 77, 77, 0.4);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: rgba(255, 77, 77, 0.3);
    border-color: #FF4D4D;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.scenario-item-flow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.scenario-mini-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.9rem;
}

.scenario-mini-icon {
    font-size: 1.2rem;
}

.scenario-mini-name {
    font-weight: 600;
}

.scenario-mini-arrow {
    color: var(--purple-primary);
    font-size: 1.2rem;
}

.scenario-item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scenario-status-active {
    color: var(--purple-primary);
    font-weight: 600;
}

.scenario-status-inactive {
    color: var(--text-secondary);
}

/* Новая сетка для статистики */
.stats-grid-redesigned {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card-wide {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.9) 0%, rgba(15, 15, 25, 0.95) 100%);
    border: 2px solid #555;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-card-wide:hover {
    border-color: #CCFF00;
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.2);
}

/* 1. КРУГОВАЯ ДИАГРАММА */
.stat-pie-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1rem 0;
}

.stat-pie-chart {
    width: 200px;
    height: 200px;
}

.stat-pie-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-pie-legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-pie-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-pie-label {
    color: #888;
    flex: 1;
    font-size: 0.95rem;
}

.stat-pie-value {
    color: #CCFF00;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

/* 2. БОЛЬШАЯ ЦИФРА С ПРОЦЕНТОМ */
.stat-big-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 2rem 0;
}

.stat-big-value {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    color: #CCFF00;
    line-height: 1;
    text-shadow: 0 0 30px rgba(204, 255, 0, 0.6);
}

.stat-big-percent {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #888;
    margin-left: 0.5rem;
}

.stat-progress-ring {
    width: 120px;
    margin: 0 auto;
}

.stat-progress-ring svg {
    width: 100%;
    height: auto;
}

/* 3. ВЕРТИКАЛЬНЫЙ БАР ГРАФИК */
.stat-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 160px;
    padding: 1.5rem 1rem 0.5rem;
    gap: 0.5rem;
}

.stat-bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.stat-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #CCFF00 0%, #88AA00 100%);
    border-radius: 6px 6px 0 0;
    position: relative;
    min-height: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.4rem;
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.5);
    animation: growUp 0.8s ease forwards;
    transform-origin: bottom;
}

.stat-bar-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
}

.stat-bar-day {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
}

/* 4. КАРТОЧКИ С ИКОНКАМИ */
.stat-icon-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.stat-icon-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(204, 255, 0, 0.05);
    border: 1px solid #CCFF00;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease forwards;
    opacity: 0;
}

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

.stat-icon-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

.stat-icon-rank {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #CCFF00;
    min-width: 40px;
}

.stat-icon-channel {
    flex: 1;
    color: #FFF;
    font-weight: 600;
    font-size: 1rem;
}

.stat-icon-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #CCFF00;
}

.stat-icon-unit {
    font-size: 0.8rem;
    color: #888;
    margin-left: 0.2rem;
}

/* 5. ДОСТИЖЕНИЯ */
.stat-achievements {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1rem 0;
}

.stat-achievement-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.stat-achievement-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-achievement-icon {
    font-size: 1.3rem;
}

.stat-achievement-name {
    flex: 1;
    color: #FFF;
    font-weight: 600;
}

.stat-achievement-count {
    font-family: 'Orbitron', monospace;
    color: #CCFF00;
    font-weight: 700;
}

.stat-achievement-bar {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.stat-achievement-fill {
    height: 100%;
    background: linear-gradient(90deg, #CCFF00 0%, #88AA00 100%);
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.6);
}

/* 6. МЕТРИКИ DASHBOARD */
.stat-metrics {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2rem 1rem;
}

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

.stat-metric-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.stat-metric-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #FFF;
}

.stat-metric-accent {
    color: #CCFF00;
    text-shadow: 0 0 15px rgba(204, 255, 0, 0.5);
}

.stat-metric-divider {
    width: 1px;
    height: 50px;
    background: #555;
}

/* 7. БОЛЬШИЕ КАРТОЧКИ */
.stat-big-cards {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.stat-big-card {
    flex: 1;
    background: rgba(204, 255, 0, 0.08);
    border: 2px solid #CCFF00;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-big-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

.stat-big-card-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.stat-big-card-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #CCFF00;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
}

.stat-big-card-unit {
    font-size: 0.85rem;
    color: #888;
}

/* 8. ПРОСТОЙ СПИСОК */
.stat-simple-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 0;
}

.stat-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-list-item:hover {
    background: rgba(204, 255, 0, 0.05);
    transform: translateX(5px);
}

.stat-list-rank {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #CCFF00;
    min-width: 35px;
}

.stat-list-name {
    flex: 1;
    color: #FFF;
    font-weight: 600;
}

.stat-list-value {
    font-family: 'Orbitron', monospace;
    color: #888;
    font-weight: 600;
}

/* Адаптив */
@media (max-width: 1600px) {
    .stats-grid-redesigned {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 1200px) {
    .stats-grid-redesigned {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .stats-grid-redesigned {
        grid-template-columns: 1fr;
    }
    .stat-card-wide {
        grid-column: span 1;
    }
}
}

.global-stats-title {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: #CCFF00;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1600px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.9) 0%, rgba(15, 15, 25, 0.95) 100%);
    border: 2px solid #555;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Все время - лаймовый */
.stat-card.period-all:hover {
    border-color: #CCFF00;
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.2);
    transform: translateY(-5px);
}

.stat-card.period-all .stat-card-title {
    color: #CCFF00;
}

.stat-card.period-all .stat-bar-fill {
    background: linear-gradient(90deg, #CCFF00, #DDFF33);
}

/* Год - фиолетовый */
.stat-card.period-year:hover {
    border-color: #8B5CF6;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.stat-card.period-year .stat-card-title {
    color: #8B5CF6;
}

.stat-card.period-year .stat-bar-fill {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

/* 30 дней - светло-серый */
.stat-card.period-30days:hover {
    border-color: #B0B0B0;
    box-shadow: 0 10px 40px rgba(176, 176, 176, 0.2);
    transform: translateY(-5px);
}

.stat-card.period-30days .stat-card-title {
    color: #B0B0B0;
}

.stat-card.period-30days .stat-bar-fill {
    background: linear-gradient(90deg, #B0B0B0, #D0D0D0);
}

.stat-card:hover {
    border-color: #CCFF00;
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.2);
    transform: translateY(-5px);
}

.stat-card-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #CCFF00;
    margin: 0 0 0.5rem 0;
}

.stat-card-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

/* Stat Bars */
.stat-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.stat-rank {
    color: #CCFF00;
    font-weight: 700;
    min-width: 30px;
}

/* Все время - лаймовый */
.stat-card.period-all .stat-rank,
.stat-card.period-all .stat-value {
    color: #CCFF00;
}

/* Год - фиолетовый */
.stat-card.period-year .stat-rank,
.stat-card.period-year .stat-value {
    color: #8B5CF6;
}

/* 30 дней - светло-серый */
.stat-card.period-30days .stat-rank,
.stat-card.period-30days .stat-value {
    color: #B0B0B0;
}

.stat-name {
    color: #FFF;
    flex: 1;
    margin: 0 1rem;
}

.stat-value {
    color: #CCFF00;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.stat-bar-track {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

/* Stat Highlights */
.stat-highlights {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.stat-highlight {
    text-align: center;
    position: relative;
}

.stat-highlight-number {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #CCFF00;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-highlight-label {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-highlight-fire {
    font-size: 2rem;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

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

/* Single Highlight */
.stat-highlight-single {
    text-align: center;
    padding: 2rem;
}

.stat-highlight-channel,
.stat-highlight-reward {
    font-size: 2rem;
    font-weight: 700;
    color: #CCFF00;
    margin-bottom: 1rem;
}

.stat-highlight-months,
.stat-highlight-count {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: #FFF;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.stat-highlight-icon {
    font-size: 4rem;
    filter: grayscale(100%) brightness(1.5);
}

/* Donut Charts */
.stat-donut-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    padding: 1rem;
}

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

.stat-donut {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.stat-donut-svg {
    width: 100%;
    height: 100%;
}

.stat-donut-bg {
    fill: none;
    stroke: #333;
    stroke-width: 10;
}

.stat-donut-fill {
    fill: none;
    stroke: #CCFF00;
    stroke-width: 10;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.6));
    transition: stroke-dasharray 1s ease;
}

.stat-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stat-donut-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #CCFF00;
}

.stat-donut-label {
    color: #888;
    font-size: 1.1rem;
}

.wow-cases-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wow-cases-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wow-cases-link {
    color: #CCFF00;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 2px solid #CCFF00;
}

.wow-cases-link:hover {
    color: #DDFF33;
    border-bottom-color: #DDFF33;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.clip-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.clip-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

/* Clip Player Modal */
.clip-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.clip-player-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.clip-player-container iframe {
    border-radius: 12px;
}

.clip-player-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(139, 92, 246, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.clip-player-close:hover {
    background: var(--purple-primary);
    transform: rotate(90deg) scale(1.1);
}

.clip-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.clip-container:hover {
    border-color: var(--purple-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
}

.clip-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.clip-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.clip-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.clip-play-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--purple-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.clip-container:hover .clip-play-button {
    transform: scale(1.1);
    background: #CCFF00;
    color: #000;
}

@media (max-width: 1200px) {
    .clips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .clips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .clips-grid {
        grid-template-columns: 1fr;
    }
}
/* Логотип */
.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

/* Кнопка рекомендаций */
.btn-recommendations {
    background: linear-gradient(135deg, #CCFF00, #88AA00);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(204, 255, 0, 0.3);
}

.btn-recommendations:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.5);
}

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

/* Адаптив для сценариев */
@media (max-width: 1024px) {
    .scenarios-list {
        grid-template-columns: 1fr;
    }
}
/* Увеличенная версия в footer */

/* Заголовок глобальной статистики с фильтром */
.global-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-period-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(26, 26, 46, 0.6);
    padding: 0.3rem;
    border-radius: 10px;
}

.period-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.period-btn:hover {
    color: #CCFF00;
}

.period-btn.active {
    background: #CCFF00;
    color: #000;
}

/* Scout - новые блоки */
.scout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.scout-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.available-badges-section {
    margin-bottom: 4rem;
}

.all-badges-section {
    margin-top: 4rem;
}

.badges-section-title {
    font-size: 1.8rem;
    color: #CCFF00;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.available-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.available-badge-card {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid #CCFF00;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.available-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
}

.available-badge-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.available-badge-info h4 {
    color: #FFF;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.available-badge-info p {
    color: var(--text-secondary);
    margin: 0 0 0.8rem 0;
    line-height: 1.5;
}

.available-badge-date {
    display: inline-block;
    background: rgba(204, 255, 0, 0.2);
    color: #CCFF00;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.all-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.simple-badge-card {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.simple-badge-card:hover {
    border-color: #CCFF00;
    transform: translateX(5px);
}

.simple-badge-icon {
    font-size: 1.5rem;
}

.simple-badge-name {
    flex: 1;
    color: #FFF;
    font-weight: 600;
    font-size: 0.9rem;
}

.simple-badge-year {
    color: #888;
    font-size: 0.75rem;
    font-family: 'Orbitron', monospace;
}

/* Сценарии - кнопка отладки фиолетовая */
.btn-debug {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-debug:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.scenario-action-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Шрифт Bovine-like для названий сценариев */
.scenario-item-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Rubik', 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

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

/* Страница рекомендаций */
.recommendations-page {
    padding: 2rem;
}

.recommendations-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}


.btn-back {
    background: rgba(139, 92, 246, 0.2);
    border: 2px solid var(--purple-primary);
    border-radius: 8px;
    color: var(--purple-light);
    padding: 0.8rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateX(-5px);
}

/* ========== MY TVS PAGE ========== */
.tvs-page {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tvs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tvs-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8B5CF6, #CCFF00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.tvs-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Карточка TVS */
.tvs-card-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.tvs-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(204, 255, 0, 0.05) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 24px;
    padding: 3rem 2rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.tvs-card:hover {
    transform: translateY(-10px);
    border-color: #CCFF00;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4), 0 0 40px rgba(204, 255, 0, 0.2);
}

/* Свечение карточки */
.tvs-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: rotateGlow 8s linear infinite;
    pointer-events: none;
}

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

.tvs-card-content {
    position: relative;
    z-index: 1;
}

/* Информация о пользователе */
.tvs-user-info {
    text-align: center;
    margin-bottom: 2rem;
}

.tvs-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.tvs-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(139, 92, 246, 0.5);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.tvs-avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 3px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6, #CCFF00) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotateBorder 3s linear infinite;
}

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

.tvs-username {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Счетчик рейтинга */
.tvs-score-wrapper {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.tvs-score-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.tvs-score-number {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #CCFF00, #FFE500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 40px rgba(204, 255, 0, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 20px rgba(204, 255, 0, 0.4));
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 40px rgba(204, 255, 0, 0.6));
    }
}

/* Частицы */
.tvs-score-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatParticle 3s ease-in-out infinite;
}

.particle-1 {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle-2 {
    right: 15%;
    top: 30%;
    animation-delay: 0.7s;
}

.particle-3 {
    left: 20%;
    bottom: 25%;
    animation-delay: 1.4s;
}

.particle-4 {
    right: 10%;
    bottom: 20%;
    animation-delay: 2.1s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* Бейдж ранга */
.tvs-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #FFD700;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
}

.tvs-rank-icon {
    font-size: 1.3rem;
    animation: crownSpin 4s linear infinite;
}

@keyframes crownSpin {
    0%, 90% { transform: rotate(0deg); }
    95% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.tvs-rank-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Адаптив */
@media (max-width: 768px) {
    .tvs-title {
        font-size: 2rem;
    }
    
    .tvs-description {
        font-size: 0.95rem;
    }
    
    .tvs-card {
        padding: 2rem 1.5rem;
    }
    
    .tvs-score-number {
        font-size: 3.5rem;
    }
    
    .tvs-avatar-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Схожесть с другими пользователями */
.tvs-similarity {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
}

.tvs-similarity-percent {
    color: #CCFF00;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Лидерборд */
.tvs-leaderboard {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tvs-leaderboard-title {
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.tvs-leaderboard-icon {
    font-size: 2rem;
    animation: trophyBounce 2s ease-in-out infinite;
}

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

.tvs-leaderboard-list {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.tvs-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.tvs-leaderboard-item:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(5px);
}

.tvs-leaderboard-item.top-three {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.tvs-leaderboard-item.top-three:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-color: rgba(255, 215, 0, 0.5);
}

.tvs-leaderboard-rank {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

.tvs-leaderboard-item.top-three .tvs-leaderboard-rank {
    font-size: 1.3rem;
}

.tvs-leaderboard-name {
    flex: 1;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tvs-leaderboard-score {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: #CCFF00;
}

.tvs-leaderboard-item.top-three .tvs-leaderboard-score {
    color: #FFD700;
    font-size: 1rem;
}

/* Адаптив для лидерборда */
@media (max-width: 768px) {
    .tvs-leaderboard-list {
        grid-template-columns: 1fr;
    }
    
    .tvs-leaderboard-title {
        font-size: 1.5rem;
    }
    
    .tvs-leaderboard-name {
        font-size: 0.85rem;
    }
}

/* ========== INTEGRATIONS GRID ========== */
.integrations-grid {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.integrations-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.integrations-warning {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    color: #FFC107;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* VKontakte button */
.btn-vk {
    background: linear-gradient(135deg, #0077FF, #005FDB);
}

.btn-vk:hover {
    background: linear-gradient(135deg, #0088FF, #006FEB);
    box-shadow: 0 5px 20px rgba(0, 119, 255, 0.4);
}

/* Steam button */
.btn-steam {
    background: linear-gradient(135deg, #171A21, #1B2838);
}

.btn-steam:hover {
    background: linear-gradient(135deg, #1B2838, #2A475E);
    box-shadow: 0 5px 20px rgba(102, 192, 244, 0.4);
}

/* Discord button */
.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #6875F3, #5663D4);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

/* Адаптив для интеграций */
@media (max-width: 968px) {
    .integrations-row {
        flex-wrap: wrap;
        max-width: 600px;
    }
    
    .btn-integration {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 140px;
    }
}

@media (max-width: 640px) {
    .integrations-row {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-integration {
        flex: 1;
        width: 100%;
    }
    
    .integrations-warning {
        font-size: 0.8rem;
        padding: 0.875rem 1rem;
    }
}
