﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-base: #0f0f13;
    --bg-surface: #1e1e24;
    --bg-surface-hover: #2a2a32;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --ai-color: #a855f7;
    --border: #334155;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    padding: 15px 30px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.logo { font-size: 24px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.user-nav { display: flex; align-items: center; gap: 20px; font-weight: 500; }
.btn-logout { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: all 0.2s; }
.btn-logout:hover { background: var(--danger); color: white; }

/* Карточки */
.card { background: var(--bg-surface); border-radius: 12px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--border); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Drag & Drop зона */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.05);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: rgba(99, 102, 241, 0.1); }
.drop-zone i { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
.drop-zone p { margin: 5px 0; color: var(--text-muted); }
.drop-zone .file-name { color: var(--primary); font-weight: 600; margin-top: 10px; }

/* Кнопки */
.btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; font-family: 'Inter', sans-serif; }
.btn:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Чекбокс AI */
.ai-switch { display: flex; align-items: center; gap: 12px; background: rgba(168, 85, 247, 0.1); border: 1px solid var(--ai-color); padding: 15px; border-radius: 8px; margin-bottom: 20px; cursor: pointer; }
.ai-switch input { width: 20px; height: 20px; accent-color: var(--ai-color); cursor: pointer; }
.ai-switch label { color: var(--ai-color); font-weight: 600; cursor: pointer; font-size: 15px; }

/* Текстовое поле */
textarea { width: 100%; height: 200px; background: var(--bg-base); color: #a6e3a1; border: 1px solid var(--border); padding: 15px; font-family: 'JetBrains Mono', monospace; border-radius: 8px; resize: vertical; box-sizing: border-box; font-size: 14px; }
textarea:focus { outline: none; border-color: var(--primary); }

/* Карточка находки */
.finding { background: var(--bg-surface); border-radius: 8px; padding: 20px; margin-bottom: 15px; border-left: 4px solid var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.finding-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.finding-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.badge.CRITICAL { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 1px solid var(--danger); }
.badge.HIGH { background: rgba(245, 158, 11, 0.2); color: var(--warning); border: 1px solid var(--warning); }
.badge.MEDIUM { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border: 1px solid #fbbf24; }
.badge.AI_LOGIC_FLAW { background: rgba(168, 85, 247, 0.2); color: var(--ai-color); border: 1px solid var(--ai-color); }
.code-block { background: #000; padding: 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #a6e3a1; overflow-x: auto; margin-top: 10px; border: 1px solid #222; }
.finding-actions { margin-top: 15px; display: flex; gap: 10px; }
.btn-feedback { padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: 0.2s; }
.btn-tp { background: var(--success); color: white; }
.btn-fp { background: var(--danger); color: white; }
.btn-tp:hover { opacity: 0.8; } .btn-fp:hover { opacity: 0.8; }

/* Лоадер (Спиннер) */
.spinner { display: none; width: 40px; height: 40px; border: 4px solid rgba(99, 102, 241, 0.3); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Страницы логина */
.auth-wrapper { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: var(--bg-base); }
.auth-box { background: var(--bg-surface); padding: 40px; border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); border: 1px solid var(--border); text-align: center; }
.auth-box h2 { margin-top: 0; color: var(--primary); }
.auth-box input { width: 100%; padding: 12px; margin: 10px 0; background: var(--bg-base); border: 1px solid var(--border); color: white; border-radius: 8px; box-sizing: border-box; font-family: 'Inter', sans-serif; }
.auth-box input:focus { outline: none; border-color: var(--primary); }
.auth-box button { width: 100%; margin-top: 20px; }
.auth-link { color: var(--primary); text-decoration: none; display: block; margin-top: 20px; font-size: 14px; }
.auth-link:hover { text-decoration: underline; }
.error-msg { background: rgba(239, 68, 68, 0.2); color: var(--danger); padding: 10px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; font-size: 14px; border: 1px solid var(--danger); }
/* --- Dashboard Profile --- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; margin-top: 20px; }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }

.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--ai-color)); display: flex; justify-content: center; align-items: center; font-size: 32px; color: white; box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4); }
.profile-info h2 { margin: 0; font-size: 24px; }
.profile-info p { margin: 5px 0 0 0; color: var(--text-muted); font-size: 14px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.stat-box { background: var(--bg-base); padding: 20px; border-radius: 8px; border: 1px solid var(--border); text-align: center; }
.stat-box h4 { margin: 0; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box .value { font-size: 28px; font-weight: 700; color: var(--primary); margin-top: 10px; }
.stat-box.danger .value { color: var(--danger); }

.usage-bar-wrapper { background: var(--bg-base); border-radius: 8px; padding: 15px; border: 1px solid var(--border); }
.usage-text { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--text-muted); }
.progress-bg { width: 100%; height: 8px; background: var(--bg-surface-hover); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.5s ease; }
.progress-fill.warning { background: var(--danger); }

.history-table { width: 100%; border-collapse: collapse; }
.history-table th { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 500; font-size: 13px; text-transform: uppercase; }
.history-table td { padding: 15px; border-bottom: 1px solid var(--border); font-size: 14px; }
.history-table tr:hover { background: rgba(255, 255, 255, 0.02); }
/* Security Score */
.score-container { display: flex; align-items: center; gap: 20px; background: var(--bg-surface); padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 20px; }
.score-circle { width: 80px; height: 80px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; font-weight: 800; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.score-A { background: rgba(16, 185, 129, 0.2); color: var(--success); border: 3px solid var(--success); }
.score-B { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 3px solid #3b82f6; }
.score-C { background: rgba(245, 158, 11, 0.2); color: var(--warning); border: 3px solid var(--warning); }
.score-D { background: rgba(249, 115, 22, 0.2); color: #f97316; border: 3px solid #f97316; }
.score-F { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 3px solid var(--danger); }

.btn-fix { background: transparent; border: 1px solid var(--ai-color); color: var(--ai-color); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: 0.2s; }
.btn-fix:hover { background: var(--ai-color); color: white; }
.fix-container { margin-top: 15px; display: none; }
.fix-header { font-size: 13px; color: var(--ai-color); font-weight: 600; margin-bottom: 5px; }
.code-block-fixed { background: #000; padding: 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #a6e3a1; overflow-x: auto; border: 1px solid var(--ai-color); box-shadow: 0 0 10px rgba(168, 85, 247, 0.2); }
/* Custom Rules */
.rules-list { margin-top: 20px; }
.rule-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-base); padding: 12px; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 8px; }
.rule-info { display: flex; flex-direction: column; gap: 4px; }
.rule-title { font-weight: 600; color: var(--text-main); font-size: 14px; }
.rule-pattern { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--primary); }
.btn-delete { background: transparent; border: none; color: var(--danger); cursor: pointer; font-size: 16px; transition: 0.2s; }
.btn-delete:hover { transform: scale(1.2); }
.rule-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.rule-form input, .rule-form select { width: 100%; padding: 10px; background: var(--bg-base); border: 1px solid var(--border); color: white; border-radius: 6px; font-family: 'Inter', sans-serif; }
/* =========================================
   Landing Page Styles
   ========================================= */
.landing-body { background: radial-gradient(circle at top right, #1e1e2e, #0f0f13); overflow-x: hidden; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { padding: 10px 20px; border-radius: 8px; border: 1px solid var(--border); }
.btn-nav.primary { background: var(--primary); color: white; border: none; }
.btn-nav.primary:hover { background: var(--primary-hover); }

.hero { display: flex; align-items: center; justify-content: space-between; padding: 100px 50px; max-width: 1300px; margin: 0 auto; gap: 50px; }
.hero-content { flex: 1; }
.badge-pill { display: inline-block; background: rgba(99, 102, 241, 0.1); color: var(--primary); padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(99, 102, 241, 0.3); }
.hero h1 { font-size: 56px; line-height: 1.1; margin: 0 0 20px 0; letter-spacing: -1px; }
.gradient-text { background: linear-gradient(90deg, var(--primary), var(--ai-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; max-width: 500px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 40px; }
.btn-primary-large { background: var(--primary); color: white; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.btn-primary-large:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4); }
.btn-secondary-large { background: transparent; color: var(--text-main); padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid var(--border); transition: 0.3s; }
.btn-secondary-large:hover { background: var(--bg-surface); border-color: var(--text-muted); }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid var(--border); padding-top: 30px; }
.stat-item { font-size: 14px; color: var(--text-muted); }
.stat-item span { display: block; font-size: 28px; font-weight: 700; color: var(--text-main); }

/* Hero Mockup Visual */
.hero-visual { flex: 1; perspective: 1000px; }
.mockup-window { background: var(--bg-surface); border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,0.5); overflow: hidden; transform: rotateY(-10deg) rotateX(5deg); transition: 0.5s; }
.mockup-window:hover { transform: rotateY(0) rotateX(0); }
.mockup-header { background: #11111b; padding: 12px; display: flex; gap: 8px; }
.mockup-header span { width: 12px; height: 12px; border-radius: 50%; background: #45475a; }
.mockup-header span:nth-child(1) { background: #f38ba8; }
.mockup-header span:nth-child(2) { background: #f9e2af; }
.mockup-header span:nth-child(3) { background: #a6e3a1; }
.mockup-body { padding: 30px; font-family: 'JetBrains Mono', monospace; font-size: 16px; line-height: 2; }
.mockup-line { color: var(--text-main); }
.mockup-line.indent { padding-left: 30px; }
.mockup-line .k { color: #cba6f7; }
.mockup-line .f { color: #89b4fa; }
.mockup-line .err { color: var(--danger); font-size: 12px; background: rgba(239, 68, 68, 0.1); padding: 2px 8px; border-radius: 4px; margin-left: 10px; font-family: 'Inter', sans-serif; }
.mockup-line .ai { color: var(--ai-color); font-size: 14px; font-family: 'Inter', sans-serif; display: block; margin-top: 5px; }

/* Features */
.features-section { padding: 80px 50px; max-width: 1300px; margin: 0 auto; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: var(--bg-surface); padding: 30px; border-radius: 12px; border: 1px solid var(--border); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.feature-card h3 { margin: 20px 0 10px 0; font-size: 20px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.icon-box { width: 50px; height: 50px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 24px; }
.icon-box.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.icon-box.purple { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.icon-box.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.icon-box.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.landing-footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 14px; margin-top: 50px; }

@media (max-width: 900px) {
    .hero { flex-direction: column; padding: 50px 20px; text-align: center; }
    .hero h1 { font-size: 40px; }
    .hero p { margin: 0 auto 30px auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .landing-nav { padding: 20px; }
    .nav-links a { display: none; }
    .nav-links .btn-nav { display: inline-block; }
}
/* =========================================
   Pricing & Animations
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-section { padding: 80px 50px; max-width: 1000px; margin: 0 auto; }
/* Обновлено для 4 колонок */
@media (max-width: 768px) { /* Обновлено для 4 колонок */ }

.pricing-card { background: var(--bg-surface); padding: 40px; border-radius: 16px; border: 1px solid var(--border); position: relative; text-align: center; }
.pricing-card.popular { border: 2px solid var(--primary); box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2); transform: scale(1.05); }
@media (max-width: 768px) { .pricing-card.popular { transform: scale(1); } }

.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.pricing-card h3 { font-size: 24px; margin: 0 0 10px 0; }
.price { font-size: 48px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.price span { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.pricing-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; line-height: 1.5; min-height: 40px; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 30px 0; text-align: left; }
.pricing-features li { padding: 10px 0; color: var(--text-main); font-size: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 14px; }
.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }
.pricing-features li.disabled i { color: var(--danger); }

.btn-pricing { display: block; width: 100%; padding: 15px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 16px; transition: 0.3s; box-sizing: border-box; }
.btn-pricing.outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-pricing.outline:hover { border-color: var(--text-main); }
.btn-pricing.primary { background: var(--primary); color: white; border: none; }
.btn-pricing.primary:hover { background: var(--primary-hover); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4); }
/* =========================================
   Pricing Grid 4 Columns
   ========================================= */
.pricing-section { padding: 80px 20px; max-width: 1400px; margin: 0 auto; }
.pricing-grid-4, .pricing-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .pricing-grid-4, .pricing-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
    align-items: stretch;
}
}
@media (max-width: 768px) {
    .pricing-grid-4, .pricing-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
    align-items: stretch;
}
}

.pricing-card { 
    background: var(--bg-surface); 
    padding: 30px 20px; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
    position: relative; 
    text-align: center;
    display: flex;
    flex-direction: column;
}
.pricing-card.popular { 
    border: 2px solid var(--primary); 
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15); 
    transform: scale(1.02); 
}
@media (max-width: 1200px) { .pricing-card.popular { transform: scale(1); } }

.popular-badge { 
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%); 
    background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; 
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; 
    white-space: nowrap;
}
.pricing-card h3 { font-size: 22px; margin: 0 0 10px 0; }
.price { font-size: 36px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.price span { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; line-height: 1.5; flex-grow: 1; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 25px 0; text-align: left; }
.pricing-features li { padding: 8px 0; color: var(--text-main); font-size: 13px; display: flex; align-items: flex-start; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 12px; margin-top: 4px; }
.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }
.pricing-features li.disabled i { color: var(--danger); }

.btn-pricing { 
    display: block; width: 100%; padding: 12px; border-radius: 8px; text-decoration: none; 
    font-weight: 600; font-size: 14px; transition: 0.3s; box-sizing: border-box; margin-top: auto;
}
.btn-pricing.outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-pricing.outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }
.btn-pricing.primary { background: var(--primary); color: white; border: none; }
.btn-pricing.primary:hover { background: var(--primary-hover); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4); }
/* =========================================
   FAQ Section
   ========================================= */
.faq-section { padding: 80px 20px; max-width: 900px; margin: 0 auto; }
.faq-grid { margin-top: 40px; display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}
.faq-item summary {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
    font-weight: 400;
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}
/* =========================================
   Sidebar Dashboard Layout
   ========================================= */
.dashboard-layout {
    display: flex;
    min-height: 75vh;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sidebar {
    width: 260px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .avatar {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 20px;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-btn.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

@media (max-width: 768px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 10px; }
    .nav-btn { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; border-radius: 0; }
    .nav-btn.active { border-left: none; border-bottom: 3px solid var(--primary); }
    .main-content { padding: 20px; }
}
/* Переключатель Месяц/Год */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-surface-hover); transition: .4s; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
/* =========================================
   Light Theme Variables
   ========================================= */
[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #4f46e5;
    --danger: #dc2626;
    --warning: #d97706;
    --success: #059669;
    --ai-color: #9333ea;
}
[data-theme="light"] .code-block, 
[data-theme="light"] .code-block-fixed {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}
[data-theme="light"] .mockup-window {
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    background: #ffffff;
}
[data-theme="light"] .mockup-header span { background: #cbd5e1; }
[data-theme="light"] .mockup-header span:nth-child(1) { background: #fca5a5; }
[data-theme="light"] .mockup-header span:nth-child(2) { background: #fcd34d; }
[data-theme="light"] .mockup-header span:nth-child(3) { background: #6ee7b7; }

/* =========================================
   Global Light Theme Fixes
   ========================================= */
select.lang-select {
    background: var(--bg-surface) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

[data-theme="light"] .landing-body {
    background: radial-gradient(circle at top right, #ffffff, #e2e8f0) !important;
}

[data-theme="light"] .sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--border) !important;
}

[data-theme="light"] .nav-btn {
    color: var(--text-muted) !important;
}

[data-theme="light"] .nav-btn:hover {
    background: var(--bg-surface-hover) !important;
    color: var(--text-main) !important;
}

[data-theme="light"] .nav-btn.active {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary) !important;
    border-left: 3px solid var(--primary) !important;
}

[data-theme="light"] .hero h1 {
    color: var(--text-main) !important;
}

[data-theme="light"] .btn-secondary-large {
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

[data-theme="light"] .btn-secondary-large:hover {
    background: var(--bg-surface-hover) !important;
}

[data-theme="light"] .mockup-window {
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .mockup-body {
    background: #ffffff !important;
}

[data-theme="light"] .mockup-line {
    color: var(--text-main) !important;
}

[data-theme="light"] .pricing-card, [data-theme="light"] .feature-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .btn-pricing.outline {
    color: var(--text-main) !important;
}
[data-theme="light"] .btn-pricing.outline:hover {
    background: var(--bg-surface-hover) !important;
}
