:root {
    --primary: #00BFFF;
    --secondary: #8B00FF;
    --accent: #00FF7F;
    --dark-bg: #0a0a1a;
    --dark-surface: #12122a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --success: #00C853;
    --warning: #FFD600;
    --danger: #FF4500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Навигация */
.navbar {
    background-color: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 0, 255, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
}

/* 3D Сцена */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* Герой секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, var(--dark-bg) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    padding-top: 80px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Секции */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Категории */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--dark-surface);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Продукты */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-surface);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.2);
}

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
}

.product-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tag-popular {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--dark-bg);
}

.tag-recommended {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    color: white;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Реклама */
.ads {
    margin: 5rem 0;
}

.ad-banner {
    background: linear-gradient(45deg, var(--dark-surface), #1a1a2e);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--secondary);
}

.ad-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Поддержка */
.support {
    margin: 5rem 0;
}

.support-chat {
    background: var(--dark-surface);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(139, 0, 255, 0.3);
}

.chat-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 1rem 2rem;
}

.chat-header h3 {
    font-size: 1.3rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
}

.message.user {
    background: rgba(0, 191, 255, 0.1);
    margin-left: auto;
}

.message.admin {
    background: rgba(139, 0, 255, 0.1);
    margin-right: auto;
}

.message.system {
    background: rgba(0, 255, 127, 0.1);
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
}

.message-content {
    margin-bottom: 0.5rem;
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid rgba(139, 0, 255, 0.3);
    background: var(--dark-bg);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border-radius: 30px;
    border: 1px solid rgba(139, 0, 255, 0.3);
    background: var(--dark-surface);
    color: var(--text-primary);
    margin-right: 1rem;
}

/* Футер */
.footer {
    background: var(--dark-surface);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(139, 0, 255, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 0, 255, 0.3);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--dark-surface);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--primary);
    position: relative;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: var(--primary);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(139, 0, 255, 0.3);
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .chat-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chat-input input {
        margin-right: 0;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.neon-glow {
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.7);
}

.neon-glow:hover {
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.9), 0 0 35px rgba(0, 191, 255, 0.5);
}
