* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --text: #2d3436;
    --accent: #6c5ce7;
    --accent-dark: #5d40cc;
    --accent-light: #a29bfe;
    --border: #ddd;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --info: #0984e3;
    --gray: #dfe6e9;
    --dark-text: #2d3436;
    --light-text: #636e72;
    --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body[data-theme="dark"] {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --text: #e6e6e6;
    --border: #444;
    --shadow: 0 8px 30px rgba(0,0,0,0.3);
    --dark-text: #e6e6e6;
    --light-text: #b2bec3;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding: 0;
    margin: 0;
    transition: background 0.3s ease;
}

/* Новый хедер */
.main-header {
    background: var(--bg-card);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.logo i {
    font-size: 1.8rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 5px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Прогресс-бар */
.progress-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.progress-bar {
    height: 6px;
    background: rgba(108, 92, 231, 0.2);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 30px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.progress-steps .step {
    position: relative;
    z-index: 2;
    background: var(--bg);
    padding: 0 15px;
    font-size: 0.9rem;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.progress-steps .step.active {
    color: var(--accent);
    font-weight: 600;
}

/* Карточки */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.animated-card {
    animation: cardAppear 0.6s ease;
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 3rem;
    color: var(--accent);
    background: rgba(108, 92, 231, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.priority-card {
    border-left: 4px solid var(--success);
    background: rgba(0, 184, 148, 0.05);
}

/* Кнопки */
.button-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 25px 0;
}

.btn {
    padding: 16px 24px;
    font-size: 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.primary {
    background: var(--accent);
    color: white;
}

.btn.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.btn.success {
    background: var(--success);
    color: white;
}

.btn.warning {
    background: var(--warning);
    color: var(--dark-text);
}

.btn.outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn.outline:hover {
    background: var(--accent);
    color: white;
}

.btn.small {
    padding: 10px 16px;
    font-size: 14px;
}

/* Кнопки отраслей */
.industry-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.industry-btn:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.industry-btn i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.industry-btn span {
    font-weight: 600;
    text-align: center;
}

.pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning);
    color: var(--dark-text);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

/* Решения */
.solution-card {
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(108, 92, 231, 0.05);
    transition: all 0.3s ease;
}

.solution-card:hover {
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-3px);
}

.solution-card h4 {
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Баннер апгрейда */
.upgrade-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
}

.upgrade-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.upgrade-content h3 {
    margin-bottom: 10px;
}

.upgrade-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Прогресс симуляции */
.simulation-progress {
    margin: 30px 0;
}

.progress-bar-small {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-small {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Рейтинг */
.rating {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.rating span {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating span:hover,
.rating span.active {
    color: #ffc107;
    transform: scale(1.2);
}

/* Ценовые карточки */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--accent);
}

.price {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.price small {
    font-size: 1rem;
    color: var(--light-text);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.pricing-card li:before {
    content: '✓';
    color: var(--success);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
}

/* Футер */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 0;
    }
    
    .progress-steps::before {
        display: none;
    }
}

/* Улучшенные модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease;
    position: relative;
}

.modal-content.wide {
    max-width: 900px;
}

.modal-content.text-center {
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.close:hover {
    opacity: 1;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.form-agreement input[type="checkbox"] {
    width: auto;
}

/* Эксперт информация */
.expert-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: var(--radius);
}

.expert-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.expert-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.expert-stats span {
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Успешная отправка */
.success-icon {
    font-size: 64px;
    color: var(--success);
    margin: 20px 0;
}

.success-details {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg);
    border-radius: var(--radius);
}

/* Таблица сравнения */
.comparison-table {
    overflow-x: auto;
    margin: 20px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--accent-light);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: var(--bg);
}

/* Рейтинг */
.rating-input .stars {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.rating-input .stars span {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-input .stars span:hover,
.rating-input .stars span.active {
    color: #ffc107;
    transform: scale(1.2);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
}

.progress-stats {
    margin: 20px 0;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.progress-item .progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-item .progress {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
}

/* Отзывы */
.testimonial {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
    color: var(--dark-text);
}

.testimonial cite {
    display: block;
    margin-top: 10px;
    text-align: right;
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Действия модального окна */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .expert-info {
        flex-direction: column;
        text-align: center;
    }
    
    .expert-stats {
        justify-content: center;
    }
}

.btn.info {
    background: var(--info);
    color: white;
}

.btn.secondary {
    background: var(--secondary);
    color: white;
}

.progress-container {
    width: 100%;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Шапка и навигация */
.app-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    padding: 1rem 0;
    color: white;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Кнопки навигации */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.navigation-buttons .btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .breadcrumbs {
        justify-content: center;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
}

/* Дополнительные стили для кнопок */
.btn.info {
    background: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);
    border: none;
    color: white;
}

.btn.info:hover {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    transform: translateY(-2px);
}

/* Стили для вопросов */
.question-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.question-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Стили для radio кнопок */
.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.radio-option:hover {
    border-color: #6c5ce7;
    background: #f0edff;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-checkmark {
    border-color: #6c5ce7;
    background: #6c5ce7;
}

.radio-option input[type="radio"]:checked + .radio-checkmark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-size: 14px;
    color: #333;
}

/* Стили для checkbox */
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.checkbox-option:hover {
    border-color: #6c5ce7;
    background: #f0edff;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-checkmark {
    border-color: #6c5ce7;
    background: #6c5ce7;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 14px;
    color: #333;
}

/* Кнопка продолжения */
.continue-btn {
    margin-top: 25px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* PRO стили */
.pro-feature {
    position: relative;
    opacity: 0.7;
}

.pro-feature::after {
    content: 'PRO';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--warning);
    color: var(--dark-text);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    text-align: center;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    margin: 20px 0;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-card li:before {
    content: '✓';
    color: var(--success);
    margin-right: 10px;
    font-weight: bold;
}

.pro-comparison {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--accent-light);
    color: white;
}

.comparison-table tr:hover {
    background: var(--bg);
}

/* Аналитика решений - компактный вид */
/* Полностью переработанная секция аналитики */
.analytics-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.analytics-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 15px;
}

.analytics-title i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.analytics-filters {
    display: flex;
    gap: 10px;
    background: var(--bg);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--light-text);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* Улучшенная сетка метрик */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg);
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-light);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent);
    opacity: 0.9;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark-text);
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 12px;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend-up {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success);
}

.trend-down {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger);
}

/* Детальная статистика */
.analytics-details {
    background: var(--bg);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.detail-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.detail-card h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-card h4 i {
    font-size: 1.2rem;
}

.progress-item {
    margin: 15px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.progress-label {
    color: var(--dark-text);
    font-weight: 500;
}

.progress-value {
    color: var(--accent);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* График-заглушка */
.chart-container {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 25px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
}

.chart-placeholder {
    height: 200px;
    background: linear-gradient(45deg, var(--bg) 25%, transparent 25%, transparent 75%, var(--bg) 75%),
                linear-gradient(45deg, var(--bg) 25%, transparent 25%, transparent 75%, var(--bg) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    border: 2px dashed var(--border);
}

.chart-placeholder i {
    font-size: 3rem;
    margin-right: 15px;
    opacity: 0.5;
}

/* Цветовые варианты для метрик */
.metric-card.primary .metric-icon { color: var(--accent); }
.metric-card.success .metric-icon { color: var(--success); }
.metric-card.warning .metric-icon { color: var(--warning); }
.metric-card.info .metric-icon { color: var(--info); }

.metric-card.primary::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.metric-card.success::before { background: linear-gradient(90deg, var(--success), #55efc4); }
.metric-card.warning::before { background: linear-gradient(90deg, var(--warning), #ffeaa7); }
.metric-card.info::before { background: linear-gradient(90deg, var(--info), #74b9ff); }

/* Адаптивность */
@media (max-width: 1024px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .analytics-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .analytics-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .metric-card {
        padding: 20px 15px;
    }
    
    .metric-value {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .analytics-section {
        padding: 15px;
    }
    
    .analytics-title {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-icon {
        font-size: 2rem;
    }
}

/* Дополнительные информационные блоки */
.analytics-info {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(162, 155, 254, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    margin: 25px 0;
}

.analytics-info h4 {
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-info p {
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}


.manual-data textarea {
    font-family: monospace;
    resize: vertical;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.manual-data textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Добавьте в style.css */
.cabinet-header {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: #6c5ce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.cabinet-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #6c5ce7;
}

.cabinet-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    padding: 0 20px;
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom-color: #6c5ce7;
    color: #6c5ce7;
}

.action-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.action-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.status-pending { background: #ffeaa7; color: #d35400; }
.status-in-progress { background: #74b9ff; color: #0984e3; }
.status-completed { background: #55efc4; color: #00b894; }


/* Новые стили для авторизации */
.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.telegram-btn {
    background: #0088cc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    margin: 15px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 15px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #6c5ce7;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.checkbox input[type="checkbox"] {
    margin: 0;
}


.questions-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.question-container {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-text {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    background: #f0f0f0;
    border-color: #6c5ce7;
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin: 0;
}

.deadline-info {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 6px;
}

.countdown-timer {
    font-size: 12px;
    font-weight: 600;
    color: #d32f2f;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.payment-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid #dee2e6;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.payment-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.payment-details code {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    margin: 8px 0;
    border: 2px solid #007bff;
    color: #0056b3;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.payment-details input {
    font-family: 'Courier New', monospace;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin: 12px 0;
    padding: 10px 15px;
    border: 2px solid #28a745;
    border-radius: 6px;
    background: #f8fff9;
    color: #155724;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.payment-details input:focus {
    outline: none;
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.payment-details small {
    color: #6c757d;
    font-size: 12px;
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

.payment-details strong {
    color: #495057;
    font-weight: 600;
}

/* Дополнительные стили для улучшения внешнего вида */
.payment-info-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.amount-display {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin: 10px 0;
    padding: 8px 16px;
    background: #f8fff9;
    border-radius: 8px;
    display: inline-block;
    border: 2px dashed #28a745;
}

.payment-notification {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    position: relative;
}

.payment-notification i {
    color: #856404;
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.payment-notification p {
    color: #856404;
    font-weight: 600;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.payment-notification::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffc107;
    font-size: 16px;
}