/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    /* Основные цвета (True Black & Neon) */
    --bg-color: #000000;
    --text-main: #ffffff;
    --text-muted: #88888b;

    /* Акценты: фиолетовый и синий (NovaVisuals) */
    --accent-primary: #8b5cf6; /* Глубокий фиолетовый */
    --accent-secondary: #3b82f6; /* Неоновый синий */
    --accent-glow: rgba(139, 92, 246, 0.4);

    /* Glassmorphism (Стекло) */
    --glass-bg: rgba(15, 15, 18, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 24px;

    /* Шрифты (Apple Style) */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Анимации */
    --easing-apple: cubic-bezier(0.25, 1, 0.5, 1);


    /* --- НОВЫЕ ПЕРЕМЕННЫЕ (Исправление ошибок) --- */
    --fg: #ffffff;                 /* Основной цвет текста */
    --fg-dim: #a1a1aa;             /* Приглушенный текст */
    --muted: #71717a;              /* Сильно приглушенный текст */

    --accent-2: #c4a8ff;           /* Светло-фиолетовый акцент (для свечений и ссылок) */

    --radius-sm: 8px;              /* Маленькое скругление */
    --radius: 16px;                /* Стандартное скругление Apple */
    --radius-lg: 24px;             /* Большое скругление для карточек */

    --border: rgba(255, 255, 255, 0.08);        /* Стандартная рамка */
    --border-strong: rgba(255, 255, 255, 0.15); /* Яркая рамка для активных элементов */

    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1); /* Алиас для анимаций */

    --ok: #2ed573;                 /* Цвет успеха (зеленый) */
    --danger: #ff4b4b;             /* Цвет ошибки (красный) */
}

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

html {
    scroll-behavior: smooth;
}

body.theme-true-black {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   2. АНИМАЦИЯ КУРСОРА (АУРА)
   ========================================= */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0; /* Под всем контентом */
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* =========================================
   3. НАВИГАЦИЯ И КНОПКИ (APPLE STYLE)
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s var(--easing-apple);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 28px; height: 28px;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px; /* Округление Apple */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--easing-apple);
    border: none;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

.w-100 {
    width: 100%;
}

/* =========================================
   4. GLASSMORPHISM (СТЕКЛЯННЫЕ ПАНЕЛИ)
   ========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

/* =========================================
   5. HERO (ГЛАВНЫЙ ЭКРАН)
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 72px;
}

.hero-bg-elements {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.neon-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate;
}

.neon-orb.purple {
    width: 400px; height: 400px;
    background: var(--accent-primary);
    top: 20%; left: 10%;
}

.neon-orb.blue {
    width: 300px; height: 300px;
    background: var(--accent-secondary);
    bottom: 20%; right: 10%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* =========================================
   6. ОБЩИЕ СЕКЦИИ И ТРЕЙЛЕР
   ========================================= */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -32px;
    margin-bottom: 48px;
}

.video-container {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 64px;
    /* Заменили картинку на премиальный неоновый паттерн-градиент */
    background: linear-gradient(135deg, rgba(20, 15, 30, 0.9), rgba(10, 5, 20, 0.9)),
    repeating-linear-gradient(45deg, rgba(139, 92, 246, 0.05) 0px, rgba(139, 92, 246, 0.05) 2px, transparent 2px, transparent 8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.4s var(--ease-apple);
}

.video-container:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.play-button svg {
    width: 32px; height: 32px;
    color: white;
    margin-left: 4px; /* Визуальная компенсация треугольника */
}

.video-container:hover .play-button {
    background: var(--accent-primary);
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-glow);
}

.video-placeholder-text {
    margin-top: 24px;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* =========================================
   7. КАРТОЧКИ ФУНКЦИЙ (С ИНТЕРАКТИВОМ)
   ========================================= */
.features-section .section-description {
    text-align: center;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 64px auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.interactive-card {
    padding: 32px;
    transition: transform 0.4s var(--easing-apple), border-color 0.4s;
}

.interactive-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-icon-placeholder {
    font-size: 2rem;
    margin-top: 24px;
    opacity: 0.8;
}

/* =========================================
   8. СЛАЙДЕР ДО/ПОСЛЕ (Minecraft Визуал)
   ========================================= */
.compare-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: ew-resize; /* Курсор для растягивания по горизонтали */
    user-select: none;
}

.compare-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

/* Заглушки для фото (заменишь на свои пути к картинкам) */
.compare-image.before {
    background-color: #2a2a2a; /* Тут будет мрачный майнкрафт */
}

.compare-image.after {
    background-color: #1a0b2e; /* Тут будет сочный NovaVisuals */
    width: 50%; /* Стартовая позиция */
    border-right: 2px solid rgba(255,255,255,0.8);
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
}

.compare-label {
    position: absolute;
    bottom: 24px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.label-left { right: 24px; }
.label-right { left: 24px; }

.compare-handle {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* События мыши ловит враппер */
}

.handle-line {
    position: absolute;
    width: 2px; height: 100%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.handle-circle {
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.handle-circle svg {
    width: 24px; height: 24px;
}

/* =========================================
   9. ТАРИФЫ (УМНЫЙ ВЫБОР)
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.price-card {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    background: linear-gradient(180deg, rgba(20, 15, 30, 0.8), rgba(0, 0, 0, 0.4));
    border: 1px solid var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: 0; left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.price-duration {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    flex-grow: 1;
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.old-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
}

/* V2 Pricing Styles */
.price-card-v2 {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s var(--ease-apple);
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.price-card-v2:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.price-card-v2.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.price-content-top {
    flex-grow: 1;
}

.price-title-v2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-desc-v2 {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.price-value-v2 {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 80px;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.price-value-v2 .old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
    display: block;
}

.price-value-v2 .current-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.price-button-v2 {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.price-card-v2.featured .price-button-v2 {
    background: var(--accent-primary);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.price-button-v2:hover {
    background: #fff;
    color: #000;
    transform: scale(1.02);
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 64px 0 40px 0;
    background: rgba(10, 10, 12, 0.8);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.link-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.link-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: var(--accent-primary);
}

/* =========================================
   11. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ)
   ========================================= */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .price-card.featured {
        transform: scale(1);
    }
    .price-card.featured:hover {
        transform: translateY(-8px);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .footer-inner { flex-direction: column; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
}/* =========================================
   12. СТРАНИЦЫ АВТОРИЗАЦИИ (LOGIN / REGISTER)
   ========================================= */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at center, #0f0a1f 0%, #000000 100%);
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.back-link {
    position: absolute;
    top: -60px; left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-main);
}

.back-link svg {
    width: 18px; height: 18px;
}

.auth-card {
    padding: 48px 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header .logo-icon {
    width: 48px; height: 48px;
    color: var(--accent-primary);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.auth-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 24px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all 0.3s var(--easing-apple);
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-size: 0.9rem;
}

/* Кастомный Checkbox в стиле Apple */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px; height: 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #fff;
}

.auth-submit {
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-footer a:hover {
    color: #fff;
}/* =========================================
   13. ЛИЧНЫЙ КАБИНЕТ (PROFILE DASHBOARD)
   ========================================= */
.profile-page {
    padding-top: 100px;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.05) 0%, #000000 100%);
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.username {
    font-weight: 600;
}

.logout-btn {
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.logout-btn:hover {
    color: #ff4b4b;
}

.logout-btn svg {
    width: 20px; height: 20px;
}

.dashboard-header {
    margin-bottom: 48px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 100px;
}

.dash-card {
    padding: 32px;
    margin-bottom: 24px;
}

.dash-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Статус Подписки */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background: #2ed573;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ed573;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(46, 213, 115, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

.plan-details {
    margin-bottom: 24px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.plan-expire {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Промокод */
.promo-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.promo-input-group {
    display: flex;
    gap: 12px;
}

.promo-input-group input {
    flex-grow: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.promo-input-group input:focus {
    border-color: var(--accent-primary);
}

.promo-message {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 20px;
}

.promo-message.success { color: #2ed573; }
.promo-message.error { color: #ff4b4b; }

/* Вкладки Модулей */
.modules-panel {
    padding: 0; /* Убираем стандартный паддинг для вкладок */
}

.modules-header {
    padding: 32px 32px 0 32px;
    margin-bottom: 24px;
}

.modules-header h3 { margin-bottom: 8px; }
.modules-header p { color: var(--text-muted); font-size: 0.95rem; }

.module-tabs {
    display: flex;
    gap: 8px;
    padding: 0 32px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover { color: white; }

.tab-btn.active { color: var(--accent-primary); }

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 -2px 10px var(--accent-glow);
}

.tab-content {
    display: none;
    padding: 0 32px 32px 32px;
    animation: fadeIn 0.4s var(--easing-apple);
}

.tab-content.active {
    display: block;
}

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

/* Элемент модуля */
.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.module-item:last-child {
    border-bottom: none;
}

.module-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.module-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* iOS Switch */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 50px; height: 28px;
}

.ios-switch input {
    opacity: 0; width: 0; height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s var(--easing-apple);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--accent-primary);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

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