/* accounts_acc.css - Все стили личного кабинета в одном файле (ТОЛЬКО ДЕСКТОПНЫЕ СТИЛИ) */
/* Все мобильные медиа-запросы перенесены в mobile-accounts.css */

/* ==================== ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СТИЛИ ЛК ==================== */

:root {
    /* Основные переменные ЛК */
    --lk-sidebar-width: 280px;
    --lk-sidebar-collapsed: 60px;
    --lk-mobile-nav-height: 60px;
    --lk-widget-spacing: 20px;
    --lk-transition: all 0.3s ease;
}

/* ==================== ОСНОВНАЯ СТРУКТУРА ЛК ==================== */

.lk-container {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Панель ЛК - липкая позиция */
.nav-container--panel {
    width: var(--lk-sidebar-width);
    position: sticky;
    top: 80px; /* Фиксируем под шапкой */
    height: calc(100vh - 80px); /* Высота минус шапка */
    align-self: flex-start;
    overflow-y: auto;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    transition: var(--lk-transition);
}

/* Основной контент - занимает оставшееся пространство */
.lk-main-single-page {
    flex: 1;
    padding: var(--lk-widget-spacing);
    background: var(--body-bg);
    overflow: visible;
    min-height: calc(100vh - 140px);
}

/* Для свернутой панели */
.nav-container--compact {
    width: var(--lk-sidebar-collapsed);
}

.nav-container--compact ~ .lk-main-single-page {
    margin-left: 0;
}

/* ==================== МОБИЛЬНАЯ НАВИГАЦИЯ ЛК ==================== */

.lk-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 8px;
}

.lk-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.7rem;
    transition: var(--lk-transition);
    border-radius: 6px;
    position: relative;
}

.lk-mobile-nav-item:hover,
.lk-mobile-nav-item.active {
    color: var(--sea-turquoise);
    background: var(--section-bg);
}

.lk-mobile-nav-icon {
    font-size: 1.2rem;
}

.lk-mobile-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--red);
    color: white;
    border-radius: 8px;
    padding: 1px 4px;
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}

/* ==================== ОСНОВНЫЕ КОМПОНЕНТЫ ЛК ==================== */

.lk-page-header {
    margin-bottom: var(--lk-widget-spacing);
}

.lk-page-header h1 {
    font-family: Montserrat, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    color: var(--text);
}

.lk-page-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.lk-widget {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: var(--lk-widget-spacing);
    overflow: hidden;
}

.lk-widget-wide {
    grid-column: 1 / -1;
}

.lk-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--section-bg);
}

.lk-widget-title {
    font-family: Montserrat, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text);
}

.lk-widget-badge {
    background: var(--sea-turquoise);
    color: var(--dark-blue);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lk-widget-link {
    color: var(--sea-turquoise);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.lk-widget-link:hover {
    text-decoration: underline;
}

.lk-widget-content {
    padding: 20px;
}

/* ==================== СЕТКИ И МАКЕТЫ ==================== */

.lk-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--lk-widget-spacing);
}

.lk-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--lk-widget-spacing);
}

.lk-comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--lk-widget-spacing);
}

.lk-watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--lk-widget-spacing);
}

/* ==================== КАРТОЧКИ ЛК ==================== */

.lk-comparison-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--lk-transition);
}

.lk-comparison-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lk-comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.lk-comparison-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text);
}

.lk-comparison-actions {
    display: flex;
    gap: 4px;
}

.lk-action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--lk-transition);
    color: var(--muted);
}

.lk-action-btn:hover {
    background: var(--section-bg);
    color: var(--text);
}

.lk-action-delete:hover {
    background: var(--red);
    color: white;
}

.lk-comparison-content {
    padding: 16px;
}

.lk-comparison-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--section-bg);
}

/* ==================== ПУСТЫЕ СОСТОЯНИЯ ==================== */

.lk-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.lk-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.lk-empty-title {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: var(--text);
}

.lk-empty-description {
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lk-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== WATCHLIST СТИЛИ ==================== */

.lk-watchlist-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.lk-search-filter {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.lk-search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
}

.lk-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.lk-filter-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lk-filter-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    min-width: 150px;
}

/* ==================== ИНСТРУКЦИЯ ДЛЯ ПОЛЬЗОВАТЕЛЕЙ ЛК ==================== */

.lk-instructions {
    background-color: #e6fffa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid var(--sea-turquoise);
    font-size: 14px;
    color: #234e52;
}

.lk-instructions h3 {
    margin-top: 0;
    color: #285e61;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.lk-instructions ul {
    padding-left: 20px;
    margin: 0;
}

.lk-instructions li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.lk-watchlist-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 20px;
    transition: var(--lk-transition);
}

.lk-watchlist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lk-watchlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.lk-watchlist-company {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.lk-watchlist-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--sea-turquoise);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.lk-watchlist-info {
    flex: 1;
}

.lk-watchlist-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.lk-watchlist-name a {
    color: var(--text);
    text-decoration: none;
}

.lk-watchlist-name a:hover {
    color: var(--sea-turquoise);
}

.lk-watchlist-ticker {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2px;
}

.lk-watchlist-sector {
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--section-bg);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.lk-watchlist-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.lk-watchlist-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.lk-watchlist-metric {
    text-align: center;
}

.lk-metric-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.lk-metric-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.lk-metric-value.positive {
    color: var(--green);
}

.lk-metric-value.neutral {
    color: var(--orange);
}

.lk-metric-value.negative {
    color: var(--red);
}

.lk-watchlist-key-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--section-bg);
    border-radius: 8px;
}

.lk-key-metric {
    text-align: center;
}

.lk-key-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.lk-key-value {
    font-weight: 600;
    font-size: 1rem;
}

.lk-key-value.positive {
    color: var(--green);
}

.lk-key-value.negative {
    color: var(--red);
}

.lk-watchlist-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.lk-watchlist-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.lk-action-buttons {
    display: flex;
    gap: 8px;
}

.lk-btn-notes,
.lk-btn-remove {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--lk-transition);
}

.lk-btn-notes:hover {
    background: var(--section-bg);
    border-color: var(--sea-turquoise);
}

.lk-btn-remove:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.lk-notes-container {
    margin-top: 16px;
    padding: 16px;
    background: var(--section-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.lk-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lk-notes-header h4 {
    margin: 0;
    font-size: 1rem;
}

.lk-notes-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--muted);
}

.lk-notes-content {
    line-height: 1.5;
    margin-bottom: 12px;
}

.lk-notes-actions {
    text-align: right;
}

.lk-watchlist-stats {
    margin-top: 20px;
    padding: 20px;
    background: var(--section-bg);
    border-radius: 12px;
}

.lk-stats-summary {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.lk-stat-item {
    text-align: center;
}

.lk-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sea-turquoise);
    margin-bottom: 4px;
}

.lk-stat-label {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ==================== PROFILE СТИЛИ ==================== */

.lk-profile-content {
    padding: 0;
}

.lk-profile-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.lk-section-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.lk-section-title {
    font-family: Montserrat, Inter, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

.lk-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lk-subscription-card,
.lk-settings-card,
.lk-stats-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.lk-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lk-subscription-title {
    font-size: 1.2rem;
    margin: 0;
}

.lk-subscription-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lk-subscription-badge.active {
    background: var(--green);
    color: white;
}

.lk-subscription-badge.inactive {
    background: var(--red);
    color: white;
}

.lk-subscription-info {
    margin-bottom: 20px;
}

.lk-subscription-type,
.lk-subscription-expiry {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.lk-info-label {
    color: var(--muted);
}

.lk-info-value {
    font-weight: 600;
}

.lk-subscription-features h4 {
    margin: 16px 0 12px 0;
    font-size: 1rem;
}

.lk-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lk-feature-item {
    padding: 6px 0;
    font-size: 0.9rem;
}

.lk-feature-item.disabled {
    color: var(--muted);
    text-decoration: line-through;
}

.lk-settings-title,
.lk-stats-title {
    font-size: 1.2rem;
    margin: 0 0 16px 0;
}

.lk-settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lk-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lk-setting-info {
    flex: 1;
}

.lk-setting-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.lk-setting-description {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Стили для переключателей */
.lk-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: 12px;
}

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

.lk-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .4s;
    border-radius: 24px;
}

.lk-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .lk-slider {
    background-color: var(--sea-turquoise);
}

input:checked + .lk-slider:before {
    transform: translateX(20px);
}

/* Стили для статистики профиля */
.lk-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lk-stat-item {
    text-align: center;
    padding: 12px;
    background: var(--section-bg);
    border-radius: 8px;
}

.lk-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sea-turquoise);
    margin-bottom: 4px;
}

.lk-stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.lk-account-actions {
    margin-top: 20px;
}

/* Стили для модальных окон подписки */
.upgrade-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.upgrade-option {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.upgrade-option.recommended {
    border-color: var(--sea-turquoise);
    transform: scale(1.02);
}

.upgrade-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sea-turquoise);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 16px;
}

.upgrade-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.upgrade-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sea-turquoise);
}

.price-period {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: normal;
}

.upgrade-savings {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 600;
    margin-top: 4px;
}

.upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.upgrade-features li {
    padding: 6px 0;
    font-size: 0.9rem;
}

.upgrade-security {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.security-info {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Стили управления подпиской */
.subscription-management {
    text-align: center;
}

.current-subscription {
    margin-bottom: 20px;
}

.current-subscription h4 {
    margin: 0 0 8px 0;
    color: var(--text);
}

.management-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.management-info {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ==================== COMPARISONS СТИЛИ ==================== */

.lk-comparisons-actions {
    margin-bottom: 20px;
}

.lk-comparison-emitters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lk-emitter-badge {
    background: var(--section-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lk-emitter-ticker {
    font-weight: 600;
    color: var(--sea-turquoise);
}

.lk-emitter-name {
    color: var(--muted);
}

.lk-emitter-more {
    background: var(--section-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.lk-comparison-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.lk-meta-item {
    display: flex;
    gap: 4px;
    font-size: 0.9rem;
}

.lk-meta-label {
    color: var(--muted);
}

.lk-meta-value {
    font-weight: 600;
}

.lk-comparison-description {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ==================== DASHBOARD СТИЛИ ==================== */

.lk-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lk-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--lk-transition);
    cursor: pointer;
}

.lk-activity-item:hover {
    background: var(--section-bg);
}

.lk-activity-item.unread {
    background: rgba(95, 170, 184, 0.05);
    border-color: var(--sea-turquoise);
}

.lk-activity-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.lk-activity-content {
    flex: 1;
}

.lk-activity-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.lk-activity-message {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 4px;
    line-height: 1.4;
}

.lk-activity-time {
    font-size: 0.8rem;
    color: var(--muted);
}

.lk-activity-action {
    display: flex;
    align-items: center;
}

.lk-btn-link {
    color: var(--sea-turquoise);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.lk-btn-link:hover {
    text-decoration: underline;
}

.lk-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.lk-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    background: var(--section-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: var(--lk-transition);
    border: 1px solid transparent;
}

.lk-tool-card:hover {
    background: var(--card-bg);
    border-color: var(--sea-turquoise);
    transform: translateY(-2px);
}

.lk-tool-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.lk-tool-text {
    font-weight: 600;
    margin-bottom: 4px;
}

.lk-tool-description {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.3;
}

.lk-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lk-stat-item {
    text-align: center;
    padding: 16px;
    background: var(--section-bg);
    border-radius: 8px;
}

.lk-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sea-turquoise);
    margin-bottom: 4px;
}

.lk-stat-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.lk-learning-progress {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lk-course-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--section-bg);
    border-radius: 8px;
    align-items: center;
}

.lk-course-icon {
    font-size: 2rem;
    width: 40px;
    text-align: center;
}

.lk-course-info {
    flex: 1;
}

.lk-course-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.lk-course-description {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.lk-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.lk-progress-fill {
    height: 100%;
    background: var(--sea-turquoise);
    transition: width 0.3s ease;
}

.lk-progress-text {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ==================== УВЕДОМЛЕНИЯ ==================== */

.lk-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: var(--sea-turquoise);
    color: white;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: var(--shadow);
}

.lk-notification.success {
    background: var(--green);
}

.lk-notification.error {
    background: var(--red);
}

.lk-notification.warning {
    background: var(--orange);
}

/* ==================== ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ КНОПКИ ПЕРЕКЛЮЧЕНИЯ ПАНЕЛИ ==================== */

/* Кнопка "Свернуть" - НОВОЕ РАСПОЛОЖЕНИЕ в нижней части панели */
.lk-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: var(--lk-transition);
    white-space: nowrap;
    margin-top: 8px; /* Отступ от меню */
    margin-bottom: 4px; /* Отступ до кнопки Выйти */
}

.lk-sidebar-toggle:hover {
    background: rgba(95, 170, 184, 0.1);
    color: var(--sea-turquoise);
}

.toggle-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: var(--lk-transition);
}

.toggle-text {
    flex: 1;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--lk-transition);
    white-space: nowrap;
    overflow: hidden;
}

/* ==================== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ КОМПАКТНОГО РЕЖИМА ==================== */

.nav-container--compact .lk-sidebar-toggle {
    padding: 12px;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 4px;
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.nav-container--compact .toggle-icon {
    transform: rotate(180deg);
}

.nav-container--compact .toggle-text {
    opacity: 0;
    font-size: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Обновить отступ для кнопки Выйти в компактном режиме */
.nav-container--compact .nav-logout {
    padding: 12px;
    justify-content: center;
    margin-top: 0;
}

/* ==================== ИСПРАВЛЕНИЕ РАЗМЕРА КНОПКИ ЛК ==================== */

.user-menu-toggle.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(95, 171, 184, 0.2);
    border: none;
    color: var(--sea-turquoise);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.user-menu-toggle.profile-btn:hover {
    background: var(--sea-turquoise);
    color: var(--dark-blue);
    transform: scale(1.05);
}

/* Скрываем имя пользователя в шапке на десктопе */
.user-name {
    display: none;
}

/* ==================== СТИЛИ ДЛЯ ВЫБОРА КОМПАНИЙ В МОДАЛЬНЫХ ОКНАХ ==================== */

.companies-selection {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--card-bg);
}

.selection-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

/* ==================== ИСПРАВЛЕНИЕ ВЫПАДАЮЩЕГО МЕНЮ ПОЛЬЗОВАТЕЛЯ ==================== */

.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.user-dropdown-item:hover {
    background: var(--section-bg);
}

.user-dropdown-item.active {
    background: rgba(95, 170, 184, 0.1);
    color: var(--sea-turquoise);
    font-weight: 600;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-badge {
    background: var(--red);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    margin-left: auto;
}

/* ==================== ОДНОСТРАНИЧНЫЙ СКРОЛЛ ЛК ==================== */

.lk-container {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
    overflow: visible;
}

.lk-main-single-page {
    flex: 1;
    padding: var(--lk-widget-spacing);
    background: var(--body-bg);
    overflow: visible;
    min-height: auto;
}

/* Убираем максимальную высоту у виджетов */
.lk-widget-content {
    max-height: none;
    overflow: visible;
}

/* ==================== ИСПРАВЛЕНИЕ ПАНЕЛИ ЛК - ЛИПКАЯ ПАНЕЛЬ ==================== */

/* Основной контейнер ЛК */
.lk-container {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Панель ЛК - липкая позиция */
.nav-container--panel {
    width: var(--lk-sidebar-width);
    position: sticky;
    top: 80px; /* Фиксируем под шапкой */
    height: calc(100vh - 80px); /* Высота минус шапка */
    align-self: flex-start;
    overflow-y: auto;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    transition: var(--lk-transition);
}

/* Основной контент - занимает оставшееся пространство */
.lk-main-single-page {
    flex: 1;
    padding: var(--lk-widget-spacing);
    background: var(--body-bg);
    overflow: visible;
    min-height: calc(100vh - 140px);
}

/* Для свернутой панели */
.nav-container--compact {
    width: var(--lk-sidebar-collapsed);
}

.nav-container--compact ~ .lk-main-single-page {
    margin-left: 0;
}

/* Убираем фиксированное позиционирование */
.nav-container--panel {
    position: sticky !important;
    top: 80px !important;
    left: auto !important;
    transform: none !important;
}

/* Гарантируем, что панель прокручивается правильно */
.nav-container--panel .nav-menu {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Футер панели всегда внизу */
.nav-container--panel .nav-footer {
    margin-top: auto;
}

/* ==================== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ DASHBOARD ==================== */

/* Новая структура dashboard */
.lk-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--lk-widget-spacing);
}

/* Главный виджет Листа наблюдения */
.lk-widget-main {
    grid-column: 1;
    grid-row: 1;
    min-height: 400px;
}

/* Боковая панель со Статистикой и Инструментами */
.lk-sidebar-widgets {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: var(--lk-widget-spacing);
}

/* Виджеты Активности и Обучения */
.lk-dashboard-grid > .lk-widget:nth-last-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.lk-dashboard-grid > .lk-widget:last-child {
    grid-column: 2;
    grid-row: 2;
}

/* Адаптивность для мобильных (перенесется в mobile-accounts.css) */
@media (max-width: 768px) {
    .lk-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-widget-main,
    .lk-sidebar-widgets,
    .lk-dashboard-grid > .lk-widget:nth-last-child(2),
    .lk-dashboard-grid > .lk-widget:last-child {
        grid-column: 1;
        grid-row: auto;
    }
}


/* ==================== ОБНОВЛЕННАЯ СТРУКТУРА DASHBOARD ==================== */

/* Основная сетка с двумя колонками */
.lk-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--lk-widget-spacing);
}

/* Широкие виджеты (занимают 2 колонки) */
.lk-widget-wide {
    grid-column: 1 / 2;
}

/* Узкие виджеты (правая колонка) */
.lk-widget-narrow {
    grid-column: 2 / 3;
    grid-row: 1;
}

/* Правая колонка для нижнего ряда */
.lk-sidebar-column {
    grid-column: 2 / 3;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: var(--lk-widget-spacing);
}

/* Лист наблюдения в нижнем ряду */
.lk-dashboard-grid > .lk-widget-wide:last-of-type {
    grid-column: 1 / 2;
    grid-row: 2;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lk-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .lk-widget-wide,
    .lk-widget-narrow,
    .lk-sidebar-column,
    .lk-dashboard-grid > .lk-widget-wide:last-of-type {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ==================== СТИЛИ ДЛЯ БЛОКА ОБУЧЕНИЯ ==================== */

.lk-course-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--section-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.lk-course-card:last-child {
    margin-bottom: 0;
}

.lk-course-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.lk-course-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(95, 170, 184, 0.1);
    border-radius: 8px;
    color: var(--sea-turquoise);
}

.lk-course-info {
    flex: 1;
    min-width: 0;
}

.lk-course-title {
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    font-size: 1rem;
}

.lk-course-description {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}

.lk-course-progress {
    margin-top: 4px;
    width: 100%;
}

.lk-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
}

.lk-progress-fill {
    height: 100%;
    background: var(--sea-turquoise);
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Стили для кнопки под текстом */
.lk-progress-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lk-progress-text {
    font-size: 0.85rem;
    color: var(--muted);
    display: block;
    width: 100%;
}

.lk-progress-action {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* Кнопки для блока обучения */
.lk-course-card .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
    background: var(--sea-turquoise);
    color: var(--dark-blue);
    border: none;
}

.lk-course-card .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 170, 184, 0.2);
    background: #4a9ca8;
}

/* ==================== НОВЫЕ СТИЛИ ИЗ PROFILE_ACC.HTML ==================== */
/* Добавлено 21.02.2026 для выноса inline-css */

/* Табы профиля */
.lk-profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.lk-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.lk-tab-btn.active {
    border-bottom-color: var(--sea-turquoise);
    color: var(--sea-turquoise);
    font-weight: 600;
}

/* Стили для disabled полей формы */
.form-input.disabled-field {
    background-color: var(--section-bg);
    color: var(--muted);
    opacity: 0.8;
    cursor: not-allowed;
    border-color: var(--border-light);
}

/* Стили для ошибок формы */
.form-group.has-error .form-input {
    border-color: #f56565;
    background-color: rgba(245, 101, 101, 0.05);
}

.form-error {
    color: #f56565;
    font-size: 13px;
    margin-top: 4px;
    padding-left: 4px;
}

.form-non-field-errors {
    margin: 16px 0;
}

.alert.alert-error {
    background: rgba(245, 101, 101, 0.1);
    border-left: 4px solid #f56565;
    padding: 12px 16px;
    border-radius: 8px;
    color: #f56565;
    font-size: 14px;
}

/* Стили для бейджа партнера (дополнение к существующим) */
.lk-subscription-badge.partner {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #78350F;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lk-subscription-badge.partner .crown-emoji {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 1.2));
    font-size: 1.2rem;
    display: inline-block;
}

/* Стили для заголовка настроек */
.lk-settings-header {
    margin-bottom: 24px;
}

.lk-settings-header .lk-settings-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.lk-settings-header .lk-settings-description {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Категории настроек */
.lk-settings-category {
    margin-bottom: 32px;
}

.lk-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--sea-turquoise);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Статус сохранения настроек */
.lk-settings-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-settings-status.success {
    background: rgba(72, 187, 120, 0.1);
    color: #2F855A;
    border: 1px solid #48BB78;
}

.lk-settings-status.error {
    background: rgba(245, 101, 101, 0.1);
    color: #C53030;
    border: 1px solid #F56565;
}

/* ==================== КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ДЛЯ ПРОФИЛЯ ==================== */
/* Добавлено 21.02.2026 для исправления отображения вкладок и прогресса */

/* Сброс стилей кнопок для вкладок */
.lk-tab-btn {
    all: unset;
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    font-size: 15px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    box-sizing: border-box;
}

.lk-tab-btn:hover {
    color: var(--sea-turquoise);
    background: rgba(95, 170, 184, 0.05);
}

.lk-tab-btn.active {
    color: var(--sea-turquoise);
    border-bottom-color: var(--sea-turquoise);
}

/* Контейнер вкладок */
.lk-profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    gap: 4px;
}

/* Исправление прогресса */
.lk-progress-fill {
    background: var(--sea-turquoise);
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease;
    width: 0%;
}

.lk-progress-bar {
    background: var(--section-bg);
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
    margin: 10px 0 5px;
    width: 100%;
}

/* ==================== КОММЕНТАРИЙ ДЛЯ РАЗРАБОТЧИКА ==================== */
/* ВНИМАНИЕ: Все медиа-запросы с max-width перенесены в mobile-accounts.css */
/* В этом файле остаются ТОЛЬКО десктопные стили личного кабинета */
/* Критическое исправление: В оригинальном файле были строки 524-528: */
/* @media (max-width: 768px) { .nav-container--panel { display: none !important; } } */
/* Этот код теперь находится в mobile-accounts.css с исправленной логикой */