/* ============================================
   DevMarket — Aurora Design 2026 (ФИНАЛЬНАЯ)
   ============================================ */

:root {
    --bg-base: #05050d;
    --bg-elevated: #0c0c1a;
    --bg-glass: rgba(20, 20, 40, 0.5);

    --aurora-1: #00d9ff;
    --aurora-2: #7c3aed;
    --aurora-3: #ec4899;
    --aurora-4: #10b981;

    --text-primary: #ffffff;
    --text-secondary: #b4b4d0;
    --text-muted: #6b6b8f;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);

    --success: #10b981;
    --danger: #ef4444;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s, color 0.3s;
}

body::before {
    content: '';
    position: fixed;
    inset: -20%;
    background:
        radial-gradient(ellipse 60% 40% at 15% 20%, rgba(0, 217, 255, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 15%, rgba(124, 58, 237, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 90%, rgba(236, 72, 153, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 90% 70%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    animation: auroraMove 25s ease-in-out infinite alternate;
    z-index: -2;
    pointer-events: none;
    filter: blur(40px);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes auroraMove {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(-3%, 2%) rotate(3deg) scale(1.05); }
    100% { transform: translate(2%, -2%) rotate(-2deg) scale(1); }
}

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

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(120%); }
    to { opacity: 1; transform: translateX(0); }
}

.cursor-glow,
.preloader { display: none !important; }

/* ===== Навигация ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(5, 5, 13, 0.6);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.burger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.nav-links > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links > a:hover { color: var(--text-primary); }

.nav-links > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--aurora-1), var(--aurora-3));
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-links > a:hover::after { width: 100%; }

/* ===== Контролы в шапке ===== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    display: flex;
    gap: 0.3rem;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.2rem;
}

.lang-switch a {
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    color: #b4b4d0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.lang-switch a.active {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
}

.lang-switch a::after { display: none !important; }

.theme-switch {
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.4rem;
    border-radius: 50%;
    transition: transform 0.2s;
    color: #ffffff;
}

.theme-switch:hover { transform: scale(1.15); }
.theme-switch::after { display: none !important; }

.cart-btn {
    position: relative;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border-radius: 50px;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    color: #ffffff;
}

.cart-btn:hover {
    border-color: #00d9ff;
    transform: translateY(-2px);
}

.cart-btn::after { display: none !important; }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ec4899, #7c3aed);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 50px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

/* ===== Меню пользователя ===== */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.4rem 0.9rem 0.4rem 0.4rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(20, 20, 40, 0.85);
}

.user-menu-btn.active {
    border-color: #00d9ff;
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.15);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
    flex-shrink: 0;
}

.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-arrow {
    font-size: 0.7rem;
    color: #b4b4d0;
    transition: transform 0.2s;
}

.user-menu-btn.active .user-arrow { transform: rotate(180deg); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #b4b4d0;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(0, 217, 255, 0.08);
    color: #00d9ff;
}

.user-dropdown-item span:first-child { font-size: 1.1rem; }

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.4rem 0;
}

.user-dropdown-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.nav-login-btn {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.nav-login-btn::after { display: none !important; }

/* ===== Контейнер ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--aurora-1);
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aurora-1);
    box-shadow: 0 0 10px var(--aurora-1);
    animation: pulseDot 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 40%, #f0abfc 70%, #67e8f9 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 8s ease infinite;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.advantages {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.advantage-icon { font-size: 1.2rem; }

/* ===== Товары ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.5);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-card:hover .product-image { transform: scale(1.08); }

.product-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-elevated), #1a1a35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--aurora-2);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 3;
    color: white;
}

.badge-hit { background: rgba(236, 72, 153, 0.9); box-shadow: 0 0 20px rgba(236, 72, 153, 0.6); }
.badge-new { background: rgba(16, 185, 129, 0.9); box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
.badge-top { background: rgba(0, 217, 255, 0.9); color: #05050d; box-shadow: 0 0 20px rgba(0, 217, 255, 0.6); }
.badge-pro { background: linear-gradient(135deg, var(--aurora-2), var(--aurora-3)); box-shadow: 0 0 20px rgba(124, 58, 237, 0.6); }

.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--aurora-1);
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
    align-self: flex-start;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    line-height: 1.35;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.55;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aurora-2), var(--aurora-3));
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    color: white;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--aurora-4), #0891b2);
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
    color: white;
    font-size: 1.05rem;
    padding: 1rem 2.25rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--aurora-1);
    background: rgba(0, 217, 255, 0.05);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* ===== Формы ===== */
input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
    background-color: #0f0f1e !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    padding: 0.9rem 1.1rem !important;
    outline: none !important;
    width: 100%;
    transition: all 0.3s;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
    color: #6b6b8f !important;
    opacity: 1 !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #00d9ff !important;
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.15) !important;
    background-color: #14142a !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #0f0f1e inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

option {
    background: #0f0f1e !important;
    color: #ffffff !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #b4b4d0;
    font-weight: 500;
}

.form-group small {
    color: #6b6b8f;
    font-size: 0.78rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* ===== Поиск ===== */
.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.search-count { color: #b4b4d0; font-size: 0.95rem; }

.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.search-box input { flex: 1; }

/* ===== Auth ===== */
.auth-page {
    max-width: 440px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    animation: cardFadeIn 0.5s ease;
}

.auth-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: #b4b4d0;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-switch {
    text-align: center;
    color: #b4b4d0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.auth-switch a {
    color: #00d9ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

/* ===== Товар ===== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 1rem;
    align-items: start;
}

.product-page-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(124, 58, 237, 0.2);
}

.product-page-info h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    margin: 0.75rem 0 1rem;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.product-page-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.product-page-price {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.75rem;
    letter-spacing: -2px;
    animation: gradientMove 6s ease infinite;
}

.features-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.features-box h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.features-box ul { list-style: none; padding: 0; }

.features-box li {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.features-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aurora-4);
    box-shadow: 0 0 10px var(--aurora-4);
}

.fav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #b4b4d0;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 1.25rem;
}

.fav-btn:hover {
    border-color: #00d9ff;
    color: #00d9ff;
}

.fav-btn.active {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.4);
    color: #f0abfc;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-text {
    color: #b4b4d0;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.buy-form { margin-bottom: 2rem; }

/* ===== Отзывы ===== */
.reviews-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reviews-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.review-form {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.reviews-login-hint {
    color: #b4b4d0;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.reviews-login-hint a {
    color: #00d9ff;
    text-decoration: none;
    font-weight: 600;
}

.reviews-list { display: flex; flex-direction: column; gap: 1rem; }

.review-item {
    background: rgba(20, 20, 40, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.review-item:hover { border-color: rgba(0, 217, 255, 0.3); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author { font-weight: 700; color: #ffffff; font-size: 1rem; }
.review-date { color: #6b6b8f; font-size: 0.85rem; }
.review-rating { font-size: 1.1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-text { color: #b4b4d0; line-height: 1.7; font-size: 0.95rem; margin: 0; }
.reviews-empty { color: #6b6b8f; text-align: center; padding: 2rem; font-style: italic; }

.similar-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.similar-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ===== Страницы ===== */
.page-content {
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 40%, #f0abfc 70%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--text-primary); }
.page-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: var(--text-primary); }
.page-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.page-content ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.page-content ul li { color: var(--text-secondary); padding: 0.5rem 0; font-size: 1rem; }
.page-content a { color: var(--aurora-1); text-decoration: none; }
.page-content a:hover { text-decoration: underline; }

.contact-block {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-info {
    padding: 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-info h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.1rem; }
.contact-info p { color: var(--text-secondary); margin-bottom: 0.75rem; font-size: 0.95rem; }
.contact-info a { color: var(--aurora-1); text-decoration: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.faq-item {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s;
}

.faq-item[open] { border-color: rgba(0, 217, 255, 0.3); }

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    list-style: none;
    position: relative;
    padding-right: 2rem;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #00d9ff;
    transition: transform 0.3s;
}

.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: #00d9ff; }

.faq-item p {
    color: #b4b4d0;
    margin-top: 1rem;
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Профиль ===== */
.page-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.profile-card p { color: #b4b4d0; margin-bottom: 0.5rem; font-size: 0.95rem; }
.profile-card strong { color: #ffffff; }

.orders-list { display: flex; flex-direction: column; gap: 1rem; }

.order-item {
    background: rgba(10, 10, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.25rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-weight: 600;
}

.order-status.paid { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
.order-status.pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.order-meta { color: #6b6b8f; font-size: 0.85rem; margin: 0; }

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 1rem;
}

.favorite-item:last-child { border-bottom: none; }
.favorite-item a { color: #00d9ff; text-decoration: none; font-weight: 500; }
.favorite-item a:hover { text-decoration: underline; }
.favorite-item span { color: #ffffff; font-weight: 700; }

/* ===== Корзина ===== */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 25, 0.5);
    font-size: 2rem;
}

.cart-item-info { flex: 1; }

.cart-item-title {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.cart-item-title:hover { color: #00d9ff; }
.cart-item-category { color: #6b6b8f; font-size: 0.85rem; margin: 0.25rem 0; }
.cart-item-price { color: #00d9ff; font-weight: 700; font-size: 1rem; }

.cart-summary {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    color: #b4b4d0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.cart-total {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d9ff, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* ===== Блог ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.blog-card {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.blog-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.blog-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #0c0c1a, #1a1a35);
}

.blog-body { padding: 1.5rem; }

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.blog-excerpt { color: #b4b4d0; font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.75rem; }
.blog-date { color: #6b6b8f; font-size: 0.8rem; }

.blog-post { max-width: 780px; margin: 0 auto; }

.blog-post h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-date { color: #6b6b8f; font-size: 0.9rem; margin-bottom: 2rem; }
.blog-post-image { width: 100%; border-radius: 20px; margin-bottom: 2rem; }

.blog-post-content {
    color: #b4b4d0;
    line-height: 1.85;
    font-size: 1.05rem;
    white-space: pre-wrap;
}

/* ===== Premium ===== */
.premium-hero { text-align: center; padding: 2rem 0 3rem; }

.premium-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 40px rgba(0, 217, 255, 0.6));
}

.premium-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d9ff, #7c3aed, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 6s ease infinite;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.premium-subtitle { color: #b4b4d0; font-size: 1.1rem; }

.premium-card, .premium-active-card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
}

.premium-card h2, .premium-active-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.premium-active-card { text-align: center; }
.premium-active-card p { color: #b4b4d0; }

.premium-price {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #00d9ff, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.premium-price span {
    font-size: 1rem;
    color: #6b6b8f;
    -webkit-text-fill-color: #6b6b8f;
}

.premium-features { list-style: none; padding: 0; margin: 1.5rem 0; }

.premium-features li {
    color: #b4b4d0;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Админка ===== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-card {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card h3 { margin-bottom: 1.5rem; font-size: 1.25rem; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.admin-table th {
    color: #b4b4d0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.admin-table tr:hover { background: rgba(255, 255, 255, 0.03); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(20, 20, 40, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d9ff, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    letter-spacing: -1px;
}

.stat-card .stat-label {
    color: #b4b4d0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    backdrop-filter: blur(24px);
    border: 1px solid;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s, transform 0.4s;
}

.toast-hide { opacity: 0; transform: translateX(120%); }
.toast-success { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.4); }
.toast-error { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-text { flex: 1; line-height: 1.4; }

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover { background: rgba(255, 255, 255, 0.1); color: white; }

/* ===== Успех ===== */
.success-page {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 640px;
    margin: 0 auto;
}

.success-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    animation: pulseIcon 2s infinite;
    filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.6));
    display: inline-block;
}

.success-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--success);
    font-weight: 800;
    letter-spacing: -1px;
}

.error-page .success-icon { filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.6)); }
.error-page h1 { color: var(--danger); }
.success-page p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1rem; }

/* ===== Пустая витрина ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon { font-size: 5rem; margin-bottom: 1.5rem; opacity: 0.4; }
.empty-state h2 { color: var(--text-primary); margin-bottom: 0.75rem; font-size: 1.5rem; }

/* ============================================
   КРАСИВЫЙ ФУТЕР (4 КОЛОНКИ)
   ============================================ */

.footer {
    background: rgba(5, 5, 13, 0.6);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding: 3rem 0 1.5rem;
    backdrop-filter: blur(10px);
    text-align: left;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d9ff, #7c3aed, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 6s ease infinite;
    margin-bottom: 0.5rem;
    text-align: left;
}

.footer-description {
    color: #b4b4d0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 280px;
    text-align: left;
}

.footer-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: left;
}

.footer-col a {
    color: #b4b4d0;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s;
    padding: 0.25rem 0;
    text-align: left;
    display: block;
}

.footer-col a:hover {
    color: #00d9ff;
    transform: translateX(4px);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(20, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
    transition: all 0.25s;
    padding: 0;
    text-decoration: none;
}

.footer-socials a:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
    text-align: left;
}

.footer-bottom p {
    color: #6b6b8f;
    font-size: 0.85rem;
    margin: 0;
    text-align: left;
}

.footer-made { color: #6b6b8f; }

/* ============================================
   FAVICON + OG + PROGRESS + COOKIE + SCROLL TOP
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d9ff, #7c3aed, #ec4899);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.8);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    max-width: 600px;
    width: calc(100% - 40px);
    background: rgba(15, 15, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 58, 237, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
}

.cookie-icon { font-size: 1.5rem; flex-shrink: 0; }

.cookie-content p {
    flex: 1;
    color: #b4b4d0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    min-width: 200px;
}

.cookie-accept {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 9997;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.7);
}

.product-card, .blog-card, .profile-card, .admin-card, .stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.animate-in,
.blog-card.animate-in,
.profile-card.animate-in,
.admin-card.animate-in,
.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   СВЕТЛАЯ ТЕМА
   ============================================ */

body.theme-light {
    --bg-base: #f5f5fa;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aa0;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
}

body.theme-light::before { opacity: 0.3; }

body.theme-light::after {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

body.theme-light .navbar { background: rgba(255, 255, 255, 0.85); }

body.theme-light .logo,
body.theme-light .nav-links > a,
body.theme-light .product-title,
body.theme-light .blog-title,
body.theme-light h1,
body.theme-light h2,
body.theme-light h3 {
    color: #1a1a2e;
}

body.theme-light p,
body.theme-light li,
body.theme-light .product-description,
body.theme-light .blog-excerpt {
    color: #4a4a6a;
}

body.theme-light .product-card,
body.theme-light .profile-card,
body.theme-light .admin-card,
body.theme-light .blog-card,
body.theme-light .cart-item,
body.theme-light .cart-summary,
body.theme-light .premium-card,
body.theme-light .premium-active-card,
body.theme-light .review-item,
body.theme-light .faq-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .user-menu-btn {
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .user-name { color: #1a1a2e; }

body.theme-light .user-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .user-dropdown-item { color: #4a4a6a; }
body.theme-light .user-dropdown-divider { background: rgba(0, 0, 0, 0.08); }
body.theme-light .footer { background: rgba(255, 255, 255, 0.7); }

body.theme-light .cart-btn {
    background: rgba(255, 255, 255, 0.7);
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .theme-switch { color: #1a1a2e; }

body.theme-light .lang-switch {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .lang-switch a { color: #4a4a6a; }

body.theme-light input,
body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light input[type="password"],
body.theme-light input[type="number"],
body.theme-light input[type="url"],
body.theme-light textarea,
body.theme-light select {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color-scheme: light;
}

body.theme-light input::placeholder,
body.theme-light textarea::placeholder { color: #8a8aa0 !important; }

body.theme-light option {
    background: #ffffff !important;
    color: #1a1a2e !important;
}

body.theme-light .footer-title,
body.theme-light .footer-logo { color: #1a1a2e; }

body.theme-light .footer-col a,
body.theme-light .footer-description,
body.theme-light .footer-bottom p { color: #4a4a6a; }

body.theme-light .footer-socials a {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .cookie-content p { color: #4a4a6a; }

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */

@media (max-width: 768px) {
    .container { padding: 1.5rem 1rem; }
    .nav-container { padding: 0 1rem; }

    .logo { font-size: 1.3rem; }

    .burger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: rgba(10, 10, 25, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 24px 24px;
        gap: 0;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 150;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav-links.active { right: 0; }

    .nav-links > a {
        width: 100%;
        padding: 14px 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        text-align: left;
    }

    .nav-links > a:last-of-type { border-bottom: none; }
    .nav-links > a::after { display: none; }

    .nav-controls {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
        margin-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-login-btn {
        display: block;
        text-align: center;
        margin-top: 12px;
        border-radius: 12px !important;
        padding: 14px 16px !important;
    }

    .user-menu {
        width: 100%;
        margin-top: 12px;
    }

    .user-menu-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        background: rgba(0, 217, 255, 0.08);
        border: 1px solid rgba(0, 217, 255, 0.2);
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .user-name { max-width: none; }

    .user-dropdown {
        position: static;
        min-width: 100%;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        transition: max-height 0.3s, padding 0.3s;
    }

    .user-dropdown.active {
        max-height: 300px;
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(15, 15, 30, 0.98);
        border-radius: 12px;
    }

    .hero { padding: 2rem 0 2.5rem; }
    .hero h1 { font-size: 2.2rem; letter-spacing: -1px; line-height: 1.15; margin-bottom: 1rem; }
    .hero p { font-size: 1rem; line-height: 1.6; margin-bottom: 1.75rem; }
    .hero-badge { font-size: 0.78rem; padding: 0.35rem 0.9rem; margin-bottom: 1.25rem; }

    .advantages {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
        margin-top: 1.75rem;
    }
    .advantage-item { font-size: 0.95rem; width: 100%; }

    .products-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .product-card { border-radius: 20px; }
    .product-image-wrap { height: 200px; }
    .product-body { padding: 1.25rem; }
    .product-title { font-size: 1.1rem; line-height: 1.35; margin-bottom: 0.5rem; }
    .product-description { font-size: 0.92rem; line-height: 1.55; margin-bottom: 1rem; }
    .product-price { font-size: 1.35rem; }

    .btn { padding: 0.85rem 1.4rem; font-size: 0.95rem; min-height: 44px; }
    .btn-sm { padding: 0.6rem 1rem; font-size: 0.85rem; min-height: 38px; }
    .btn-success { font-size: 1rem; padding: 1rem 1.75rem; width: 100%; }

    .product-page { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-page-info h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 0.75rem; }
    .product-page-description { font-size: 1rem; line-height: 1.65; }
    .product-page-price { font-size: 2.2rem; margin-bottom: 1.25rem; }
    .features-box { padding: 1.25rem; margin-top: 1.5rem; }

    .page-content h1 { font-size: 1.75rem; margin-bottom: 1rem; }
    .page-content h2 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
    .page-content p, .page-content li { font-size: 1rem; line-height: 1.7; }

    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr !important; }

    .search-header h1 { font-size: 1.75rem; }
    .search-box { flex-direction: column; }
    .search-box input, .search-box .btn { width: 100%; }

    .auth-page { margin: 1rem auto; padding: 1.75rem 1.25rem; }
    .auth-page h1 { font-size: 1.6rem; }

    .profile-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.5rem; }
    .profile-card { padding: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 1.25rem 1rem; }
    .stat-card .stat-value { font-size: 1.5rem; }

    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { flex-wrap: wrap; gap: 0.75rem; }
    .cart-item-image { width: 60px; height: 60px; }

    .blog-grid { grid-template-columns: 1fr; }
    .blog-post h1 { font-size: 1.75rem; }

    .premium-hero h1 { font-size: 2rem; }
    .premium-card, .premium-active-card { padding: 1.75rem; }
    .premium-icon { font-size: 4rem; }

    .reviews-section, .similar-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    .reviews-section h2, .similar-section h2 {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }
    .review-item, .review-form { padding: 1.25rem; }

    /* Футер на мобильном */
    .footer { padding: 2rem 0 1rem; margin-top: 3rem; }
    .footer-container { padding: 0 1rem; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    .footer-col:first-child { grid-column: 1 / -1; }
    .footer-description { max-width: none; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p { text-align: center; }

    .cookie-banner { bottom: 15px; width: calc(100% - 30px); }
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        text-align: center;
    }
    .cookie-icon { font-size: 2rem; text-align: center; }
    .cookie-accept { width: 100%; }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .toast-container { top: 70px; right: 10px; left: 10px; max-width: none; }
    .toast { font-size: 0.9rem; padding: 0.85rem 1rem; }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.9rem; }
    .product-page-price { font-size: 1.9rem; }
    .logo { font-size: 1.15rem; }
    .premium-hero h1 { font-size: 1.75rem; }
}


/* ============================================
   Hero-счётчики + Секции + Почему мы + CTA
   ============================================ */

/* Hero-счётчики */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d9ff, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #b4b4d0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero-кнопки */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 14px;
}

/* Hero-промокод */
.hero-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(236, 72, 153, 0.1);
    border: 1px dashed rgba(236, 72, 153, 0.4);
    border-radius: 50px;
    font-size: 0.95rem;
    color: #f0abfc;
    margin-bottom: 2rem;
    animation: pulseDot 3s infinite;
}

.hero-promo .promo-icon {
    font-size: 1.2rem;
}

.hero-promo strong {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Секции товаров */
.products-section {
    margin-top: 5rem;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section-link {
    color: #00d9ff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
}

.section-link:hover {
    color: #ec4899;
    transform: translateX(4px);
}

/* Почему мы */
.why-section {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: rgba(20, 20, 40, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: #b4b4d0;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* CTA-блок */
.cta-section {
    margin-top: 6rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 32px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.cta-section p {
    color: #b4b4d0;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Светлая тема */
body.theme-light .why-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .why-card h3 { color: #1a1a2e; }
body.theme-light .why-card p { color: #4a4a6a; }
body.theme-light .section-title { color: #1a1a2e; }

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .hero-stat-divider {
        height: 30px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
    }

    .hero-promo {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .products-section {
        margin-top: 3rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .why-section,
    .cta-section {
        margin-top: 4rem;
        padding-top: 3rem;
    }

    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}