:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #60a5fa;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --darker: #020617;
    --light: #1e293b;
    --lighter: #334155;
    --text: #f1f5f9;
    --text-dim: #94a3b8;
    --border: #334155;
    --card-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scroll animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Auth loader */
.auth-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-content p {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Блокировка контента для неавторизованных */
body.auth-required .hero,
body.auth-required .services,
body.auth-required .catalog,
body.auth-required .advantages,
body.auth-required .contact,
body.auth-required .footer {
    display: none;
}

body.auth-required .navbar {
    background: transparent;
    border-bottom: none;
}

body.auth-required .nav-menu,
body.auth-required .cart-btn,
body.auth-required .navbar .logo {
    display: none;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Минималистичный фон */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
    z-index: 0;
    pointer-events: none;
}

.particles-bg {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Навигация */
.navbar {
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-icon {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    transform: scale(1.1);
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

.logo span {
    color: var(--text);
}

.logo .accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.15));
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--primary);
    transform: translateY(-2px) scale(1.1);
    font-size: 0.95rem;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-btn {
    background: transparent;
    border: 2px solid rgba(37, 99, 235, 0.5);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.auth-btn.login-btn {
    background: transparent;
    border: 2px solid rgba(37, 99, 235, 0.6);
    color: #3b82f6;
}

.auth-btn.login-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-btn.signup-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: 2px solid transparent;
    color: white;
}

.auth-btn.signup-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.user-menu {
    display: flex;
    gap: 0.5rem;
}

.cart-btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cart-btn::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;
}

.cart-btn:hover::before {
    left: 100%;
}

.cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text);
    animation: glitchText 3s ease-in-out infinite, floatTitle 6s ease-in-out infinite;
}

@keyframes glitchText {
    0%, 90%, 100% {
        text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    }
    95% {
        text-shadow: -2px 0 rgba(59, 130, 246, 0.8), 2px 0 rgba(14, 165, 233, 0.8);
    }
}

@keyframes floatTitle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    animation: fadeInUp 1s ease-out both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.4s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.6s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.8s;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cyber {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--primary);
    color: white;
    padding: 20px 50px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.5s ease-out 1s both;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cyber:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cyber:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
}

.btn-cyber i {
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Services Section */
.services {
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.services.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 4rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInDown 0.8s ease-out both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    max-width: 200px;
    animation: lineExpand 1.2s ease-out both;
}

@keyframes lineExpand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out both;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}

.service-card.featured {
    border-color: var(--primary);
    background: var(--light);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.service-icon i {
    font-size: 3rem;
    color: white;
    animation: iconPulse 2s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-card > p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text);
}

.service-features i {
    color: var(--primary);
    margin-right: 10px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Catalog Section */
.catalog {
    padding: 100px 20px;
    background: rgba(26, 31, 58, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.catalog.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--light);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--text);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 165, 233, 0.2));
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.products-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-title i {
    color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 400px));
    gap: 2rem;
    justify-content: center;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: scaleIn 0.6s ease-out both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.8s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-badge.hot {
    background: var(--accent);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.flag {
    font-size: 2.5rem;
}

.product-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
}

.product-info {
    margin-bottom: 1.5rem;
}

.product-desc {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-specs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-specs span {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid var(--border);
}

.product-specs i {
    color: var(--primary);
    margin-right: 5px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-block {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-add::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-add:hover::before {
    width: 150px;
    height: 150px;
}

.btn-add:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-add:active {
    transform: scale(0.98);
}

/* Виртуальные карты */
.product-card.premium {
    background: var(--card-bg);
}

.card-visual {
    margin-bottom: 1.5rem;
}

.virtual-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-5px) rotateY(5deg);
    }
}

.product-card:hover .virtual-card {
    transform: scale(1.05) rotateY(10deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.virtual-card.mastercard {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.virtual-card.premium-card {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.card-number {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.card-holder {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: 900;
    opacity: 0.8;
}

/* SMM продукты */
.product-card.smm {
    background: linear-gradient(135deg, var(--light) 0%, rgba(255, 0, 128, 0.05) 100%);
}

.smm-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
}

.smm-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.smm-icon.youtube {
    background: #ff0000;
    color: white;
}

.smm-icon.tiktok {
    background: #000;
    color: white;
}

.smm-icon.telegram {
    background: #0088cc;
    color: white;
}

/* Преимущества */
.advantages {
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.advantages.visible {
    opacity: 1;
    transform: translateY(0);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--light);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.advantage-card p {
    color: var(--text-dim);
}

/* Контакты */
.contact {
    padding: 100px 20px;
    background: rgba(26, 31, 58, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.contact.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.contact-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.contact-card:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

.contact-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.contact-card:hover h4 {
    color: var(--primary);
}

.contact-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.contact-card:hover p {
    color: var(--accent);
}

/* Корзина */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 450px;
    height: 100vh;
    background: var(--dark);
    border-left: 1px solid var(--border);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.close-cart:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-dim);
    padding: 3rem 0;
    font-size: 1.1rem;
}

.cart-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.cart-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 800;
}

.remove-item {
    background: var(--accent);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.remove-item:hover {
    transform: scale(1.1);
    background: #0ea56e;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.total-price {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 60px 20px 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
}

/* Адаптивность */

/* Планшеты и маленькие ноутбуки (до 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .glitch {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, minmax(280px, 350px));
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Планшеты (до 768px) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .header-content {
        padding: 0 15px;
    }

    .glitch {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-stats {
        gap: 2rem;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .title-line {
        display: none;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card {
        max-width: 100%;
    }

    .cart-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .category-filter {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .auth-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
        gap: 5px;
    }
    
    .cart-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .purchase-details {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .btn-cyber {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* Мобильные телефоны (до 480px) */
@media (max-width: 480px) {
    .container {
        max-width: 95%;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .glitch {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2.5rem;
    }
    
    .product-header h4 {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .cart-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .balance-amount {
        font-size: 2.5rem;
    }
    
    .balance-card {
        padding: 2rem;
    }
    
    .user-panel-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .tab-btn.active {
        border-bottom: 3px solid var(--primary);
    }
    
    .btn-cyber {
        padding: 12px 25px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon i {
        font-size: 1.8rem;
    }
}

/* Модальные окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1419 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    overflow: hidden;
    padding: 20px;
    animation: modalFadeIn 0.4s ease-out;
}

/* Animated glowing orbs */
.modal::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    left: -300px;
    animation: orbFloat1 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.modal::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -250px;
    right: -250px;
    animation: orbFloat2 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Animated background circles */
.animated-bg-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.animated-bg-circles::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    top: 10%;
    right: -150px;
    animation: pulseCircle1 8s ease-in-out infinite;
}

.animated-bg-circles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: pulseCircle2 10s ease-in-out infinite;
}

/* Animated background lines - replaced with small flying orbs */
.animated-bg-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.animated-bg-lines::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 15%;
    animation: orbFly1 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.animated-bg-lines::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.8) 0%, rgba(96, 165, 250, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    top: 60%;
    right: 20%;
    animation: orbFly2 10s ease-in-out infinite 1s;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

@keyframes orbFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translate(100px, 100px) scale(1.2);
        opacity: 1;
    }
    66% {
        transform: translate(-50px, 150px) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes orbFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translate(-80px, -80px) scale(1.1) rotate(180deg);
        opacity: 1;
    }
}

@keyframes pulseCircle1 {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3) translateY(50px);
        opacity: 0.6;
    }
}

@keyframes pulseCircle2 {
    0%, 100% {
        transform: scale(1) translateX(0);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.2) translateX(30px);
        opacity: 0.5;
    }
}

@keyframes orbFly1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(150px, -100px) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: translate(300px, 50px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(150px, 200px) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@keyframes orbFly2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(-120px, 80px) scale(1.4);
        opacity: 0.9;
    }
    50% {
        transform: translate(-250px, -60px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translate(-100px, -150px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: auto;
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.6), rgba(37, 99, 235, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Modal logo */
.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.modal-logo i {
    color: var(--primary);
    font-size: 2.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.modal-logo span {
    color: var(--text);
}

.modal-logo .accent {
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    animation: slideInDown 0.6s ease-out 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 2px;
}

.modal-header h3 i {
    font-size: 2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.close-modal {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Show close button for Privacy Policy modal */
#privacyModal .close-modal {
    display: flex;
}

/* Show close button for Purchase modal */
#purchaseModal .close-modal {
    display: flex;
}

/* Show close button for Trust Wallet modal */
#trustWalletModal .close-modal {
    display: flex;
}

/* Show close button for User Panel modal */
#userPanelModal .close-modal {
    display: flex;
}

/* Скрыть кнопку закрытия для Login и Register модалей */
#loginModal .close-modal,
#registerModal .close-modal {
    display: none !important;
}

/* Login Success Animations */
.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.98), rgba(26, 31, 53, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px;
}

.welcome-overlay.active {
    opacity: 1;
    transform: scale(1);
}

.welcome-overlay.fade-out {
    opacity: 0;
    transform: scale(1.1);
}

.welcome-content {
    text-align: center;
    padding: 2rem;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #10b981;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 3px solid #10b981;
}

.icon-line {
    height: 3px;
    background-color: #10b981;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 40px;
    left: 18px;
    width: 20px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
    top: 35px;
    right: 12px;
    width: 35px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.icon-circle {
    top: -3px;
    left: -3px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 3px solid rgba(16, 185, 129, 0.5);
}

.icon-fix {
    top: 6px;
    width: 5px;
    left: 28px;
    z-index: 1;
    height: 75px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #0a0e1a;
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 30px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 20px;
        left: 18px;
        top: 40px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0;
        top: 35px;
    }
    100% {
        width: 35px;
        right: 12px;
        top: 35px;
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 50px #10b981;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    animation: slideInUp 0.6s ease-out 0.7s both;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Success Particles */
.success-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-burst 1s ease-out forwards;
}

@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Shake animation for errors */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.form-group {
    margin-bottom: 1.8rem;
    animation: fadeInUp 0.6s ease-out both;
}

.form-group:nth-child(1) {
    animation-delay: 0.3s;
}

.form-group:nth-child(2) {
    animation-delay: 0.4s;
}

.form-group:nth-child(3) {
    animation-delay: 0.5s;
}

.form-group:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.form-group label i {
    color: #3b82f6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group:hover label i {
    transform: scale(1.2) rotate(5deg);
    color: #60a5fa;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Убрать крестик в Chrome, Edge, Safari */
.form-group input::-webkit-search-decoration,
.form-group input::-webkit-search-cancel-button,
.form-group input::-webkit-search-results-button,
.form-group input::-webkit-search-results-decoration,
.form-group input::-ms-clear,
.form-group input::-ms-reveal {
    display: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Убрать крестик для email и password */
input[type="email"]::-webkit-contacts-auto-fill-button,
input[type="email"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
}

/* Убрать все встроенные кнопки браузера */
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button,
input::-webkit-clear-button,
input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Специально для IE/Edge */
input::-ms-clear,
input::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.4);
    transition: all 0.3s ease;
}

.form-group input:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15),
                0 8px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

.form-group input:focus::placeholder {
    transform: translateX(5px);
    opacity: 0.6;
}

.form-group small {
    display: block;
    margin-top: 0.6rem;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.4;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 2rem;
    padding: 18px;
    font-size: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5),
                0 0 20px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.submit-btn span,
.submit-btn i {
    position: relative;
    z-index: 1;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.form-footer {
    text-align: center;
    margin-top: 1.8rem;
    color: #94a3b8;
    font-size: 0.9rem;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.form-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
}

.form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.3s ease;
}

.form-footer a:hover::after {
    width: 100%;
}

.form-footer a:hover {
    color: #60a5fa;
    transform: translateX(2px);
}

/* Панель пользователя */
.user-panel-content {
    max-width: 800px;
    width: 95%;
}

.user-panel-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Информация пользователя */
.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.info-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Покупки */
.purchases-list {
    max-height: 500px;
    overflow-y: auto;
}

.purchase-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.purchase-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* Empty states */
.empty-cart {
    text-align: center;
    color: var(--text-dim);
    padding: 3rem 0;
    font-size: 1.1rem;
}

.empty-purchases {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
}

.empty-purchases i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-history {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
}

.empty-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Покупки */
.purchases-list {
    max-height: 500px;
    overflow-y: auto;
}

.purchase-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.purchase-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.purchase-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.purchase-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.purchase-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.purchase-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.purchase-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.purchase-detail {
    display: flex;
    flex-direction: column;
}

.purchase-detail strong {
    color: var(--text);
    margin-bottom: 0.3rem;
}

.purchase-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

/* Purchase Modal Specific Styles */
.purchase-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.purchase-product {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-product h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.purchase-product .purchase-price {
    font-size: 1.8rem;
}

/* Баланс */
.balance-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
}

.balance-card h4 {
    color: white;
    opacity: 0.9;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 900;
    color: white;
}

.balance-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.balance-history h4 {
    margin-bottom: 1rem;
    color: var(--text);
    text-transform: uppercase;
}

.empty-history {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
}

.empty-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.history-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.history-icon.plus {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent);
}

.history-icon.minus {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.history-text {
    display: flex;
    flex-direction: column;
}

.history-title {
    font-weight: 600;
    color: var(--text);
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.history-amount {
    font-size: 1.2rem;
    font-weight: 700;
}

.history-amount.plus {
    color: var(--accent);
}

.history-amount.minus {
    color: #ef4444;
}

/* Модальное окно политики конфиденциальности */
.privacy-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.privacy-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.privacy-body {
    overflow-y: auto;
    padding-right: 10px;
    max-height: calc(85vh - 150px);
}

.privacy-body::-webkit-scrollbar {
    width: 8px;
}

.privacy-body::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 10px;
}

.privacy-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.privacy-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.update-date {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-section h4 i {
    font-size: 1.2rem;
}

.privacy-section p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.privacy-section ul li {
    color: var(--text);
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.privacy-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

.privacy-section strong {
    color: var(--primary);
}

/* Top Up Modal */
.quick-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 70px;
    background: var(--light);
    border: 2px solid var(--border);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.payment-select {
    width: 100%;
    background: var(--light);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.payment-select option {
    background: var(--dark);
    color: var(--text);
}

/* Direct Payment Modal Styles */
.payment-details {
    display: none;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.payment-details.active {
    display: block;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.wallet-address {
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    word-break: break-all;
    margin: 1rem 0;
}

.copy-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    background: #3b82f6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.status-check {
    text-align: center;
    margin: 1.5rem 0;
}

.status-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty states */
.empty-cart {
    text-align: center;
    color: var(--text-dim);
    padding: 3rem 0;
    font-size: 1.1rem;
}

.empty-purchases {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
}

.empty-purchases i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-history {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-dim);
}

.empty-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive for privacy */
@media (max-width: 768px) {
    .privacy-modal-content {
        width: 98%;
        padding: 1.5rem;
        max-height: 90vh;
    }

    .privacy-body {
        max-height: calc(90vh - 120px);
    }

    .privacy-section h4 {
        font-size: 1.1rem;
    }

    .privacy-section p {
        font-size: 0.95rem;
    }
}
