/* === CABINET.CSS ===
 * assets/css/cabinet.css
 * НАЗНАЧЕНИЕ: Стили для личного кабинета пользователя FinCheck
 * СВЯЗИ: cabinet/login.php, cabinet/index.php, cabinet/profile.php
 * РАЗМЕР: ~550 строк
 * ОБНОВЛЕНО: 2026-02-03
 */

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #0c0c12 0%, rgba(79, 143, 255, 0.15) 50%, rgba(164, 120, 246, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite;
}

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

.login-branding {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.login-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.login-brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.login-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 300px;
    line-height: 1.6;
}

.login-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
}

/* Login Alerts */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.btn-login {
    padding: 1rem;
    background: linear-gradient(135deg, #4f8fff, #a478f6);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 143, 255, 0.3);
}

/* Demo Accounts */
.demo-accounts {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(79, 143, 255, 0.05);
    border: 1px dashed rgba(79, 143, 255, 0.3);
    border-radius: 12px;
}

.demo-accounts-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4f8fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.demo-account:last-child {
    margin-bottom: 0;
}

.demo-account-role {
    font-weight: 600;
    min-width: 80px;
}

.demo-account-role.admin {
    color: #f59e0b;
}

.demo-account-role.user {
    color: #4f8fff;
}

.demo-account-creds {
    color: var(--text-secondary);
    font-family: monospace;
}

.demo-account-btn {
    padding: 0.4rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-account-btn:hover {
    background: #4f8fff;
    color: white;
    border-color: #4f8fff;
}

/* ============================================
   CABINET LAYOUT STYLES
   ============================================ */

.cabinet-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: var(--bg-primary);
}

.cabinet-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-logo-icon {
    font-size: 1.5rem;
}

/* User Card */
.user-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary, #4f8fff), var(--accent-secondary, #a478f6));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.user-plan {
    font-size: 0.8rem;
    color: var(--accent-primary, #4f8fff);
    background: rgba(79, 143, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    display: inline-block;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(79, 143, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(79, 143, 255, 0.1);
    color: var(--accent-primary, #4f8fff);
    border-left-color: var(--accent-primary, #4f8fff);
}

.nav-icon {
    font-size: 1.25rem;
    width: 28px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-primary, #4f8fff);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.nav-item--platform {
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.08), rgba(164, 120, 246, 0.08));
    font-weight: 500;
    color: var(--accent-primary, #4f8fff);
}

.nav-item--platform:hover {
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.15), rgba(164, 120, 246, 0.15));
    color: #a478f6;
}

.nav-divider {
    height: 1px;
    background: var(--border-color, rgba(255, 255, 255, 0.08));
    margin: 0.25rem 1.5rem;
}

.nav-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-badge-soon {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255,255,255,0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

.sidebar-policy-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted, #666);
    text-decoration: none;
    margin-top: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sidebar-policy-link:hover {
    opacity: 1;
    color: var(--text-secondary);
}

.btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.btn-admin:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

/* Cabinet Main Content */
.cabinet-main {
    padding: 2rem 3rem;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-value--positive {
    color: #10b981;
}

.stat-value--negative {
    color: #ef4444;
}

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

.settings-section + .settings-section {
    margin-top: 1.5rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link {
    color: var(--accent-primary, #4f8fff);
    text-decoration: none;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Watchlist Items */
.watchlist-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.watchlist-item:hover {
    background: rgba(79, 143, 255, 0.03);
}

.company-symbol {
    font-weight: 700;
    font-size: 1rem;
    width: 70px;
}

.company-name {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.company-price {
    font-weight: 600;
    text-align: right;
    min-width: 80px;
}

.company-change {
    text-align: right;
    min-width: 80px;
    font-weight: 500;
    font-size: 0.9rem;
}

.company-change.positive {
    color: #10b981;
}

.company-change.negative {
    color: #ef4444;
}

/* History Items */
.history-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.history-symbol {
    font-weight: 600;
    width: 60px;
}

.history-name {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.history-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   PROFILE PAGE STYLES
   ============================================ */

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

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary, #4f8fff), var(--accent-secondary, #a478f6));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
}

.avatar-edit-btn {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-edit-btn:hover {
    background: var(--accent-primary, #4f8fff);
    color: white;
    border-color: var(--accent-primary, #4f8fff);
}

/* Avatar image inside avatar containers */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: white;
}

.user-avatar .avatar-initials {
    font-size: 1.2rem;
}

.profile-avatar-large .avatar-initials {
    font-size: 2.8rem;
}

/* Avatar upload wrapper on profile page */
.avatar-upload-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.avatar-upload-wrapper .profile-avatar-large {
    margin-bottom: 0;
}

.avatar-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.avatar-actions .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.avatar-actions .btn-sm:hover {
    background: var(--accent-primary, #4f8fff);
    color: white;
    border-color: var(--accent-primary, #4f8fff);
}

.avatar-actions .btn-sm--danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(79, 143, 255, 0.1), rgba(164, 120, 246, 0.1));
    border: 1px solid rgba(79, 143, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--accent-primary, #4f8fff);
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary, #4f8fff);
}

.profile-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Settings Section */
.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.settings-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-body {
    padding: 1.5rem;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary, #4f8fff);
    box-shadow: 0 0 0 4px rgba(79, 143, 255, 0.1);
}

/* Buttons */
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary, #4f8fff), var(--accent-secondary, #a478f6));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 143, 255, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--bg-tertiary);
}

/* Danger Zone */
.danger-zone {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
}

.danger-zone h4 {
    color: #ef4444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-zone p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .login-left {
        display: none;
    }
}

/* ============================================
   МОБIЛЬНА НАВIГАЦIЯ — Bottom Nav Bar
   ============================================ */

@media (max-width: 768px) {
    .cabinet-layout {
        grid-template-columns: 1fr;
        padding-bottom: 64px;
    }

    .cabinet-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        z-index: 1000;
        padding: 0;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background: var(--bg-secondary);
        overflow: visible;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        justify-content: space-around;
    }

    .nav-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 8px 4px;
        border-left: none;
        font-size: 10px;
        flex: 1;
        text-align: center;
        justify-content: center;
        min-width: 0;
    }

    .nav-item.active {
        border-left: none;
        border-top: 2px solid var(--accent-primary, #4f8fff);
        background: rgba(79, 143, 255, 0.08);
    }

    .nav-item--platform {
        background: none;
    }

    .nav-icon {
        font-size: 1.1rem;
        width: auto;
    }

    .nav-item span:last-child {
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 64px;
    }

    .nav-divider {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    /* Main content */
    .cabinet-main {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

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

    .stat-card {
        padding: 1rem;
    }

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

    .form-row--flex {
        flex-direction: column;
        gap: 0;
    }

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

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

    .card-body--flex {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .cabinet-main {
        padding: 1rem 0.75rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .nav-item span:last-child {
        display: none;
    }
}

/* ============================================
   УТИЛИТАРНЫЕ КЛАССЫ (замена inline стилей)
   ============================================ */

/* Password Toggle (глазок показать/скрыть пароль) */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #666);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-primary, #fff);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Формы авторизации */
.form-group--text-right { text-align: right; margin-top: -8px; }
.form-row--flex { display: flex; gap: 12px; }
.form-group--flex1 { flex: 1; }
.login-register-link { text-align: center; margin-top: 16px; }
.login-register-link__text { color: var(--text-muted); }

/* Алерты */
.alert--word-break { word-break: break-all; }
.alert--mb { margin-bottom: 20px; }
.alert--mt { margin-top: 20px; }

/* Профиль */
.profile-registration-date { margin-top: 16px; color: var(--text-muted); font-size: 13px; }

/* Пустые состояния */
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-muted); }
.empty-state__icon { font-size: 40px; margin-bottom: 12px; }
.empty-state__hint { font-size: 13px; margin-top: 8px; }

/* Карточки */
.card--mt { margin-top: 24px; }
.card-body--flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
}

/* Подписка */
.subscription-detail__label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    display: block;
}
.subscription-detail {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.subscription-detail__value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}
.subscription-detail__value--active { color: #10b981; }
.plan-badge--current { background: var(--ai-green); }
.plan-features { list-style: none; padding: 0; margin: 12px 0; font-size: 13px; color: var(--text-muted); }
.plan-features li { margin-bottom: 4px; }

@media (max-width: 768px) {
    .cabinet-layout {
        grid-template-columns: 1fr;
    }
    .cabinet-sidebar {
        display: none;
    }
    .cabinet-main {
        padding: 1.25rem 1rem;
    }
    .page-title {
        font-size: 1.4rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .form-row--flex {
        flex-direction: column;
        gap: 0;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        border-radius: 16px;
    }
    .profile-name {
        font-size: 1.25rem;
    }
    .btn-save {
        width: 100%;
        justify-content: center;
    }
    .btn-outline {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    .danger-zone {
        padding: 1rem;
    }
    .card-body--flex {
        flex-direction: column;
        gap: 1rem;
    }
    /* Login page */
    .login-right {
        padding: 1.5rem;
    }
    .login-title {
        font-size: 1.5rem;
    }
    .demo-account {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .demo-account-btn {
        width: 100%;
        text-align: center;
    }
}

/* Маленький мобильный */
@media (max-width: 480px) {
    .cabinet-main {
        padding: 1rem 0.75rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .settings-body {
        padding: 1rem;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .login-form-container {
        max-width: 100%;
    }
    .demo-accounts {
        padding: 1rem;
    }
    .login-logo {
        font-size: 3rem;
    }
    .login-brand-name {
        font-size: 1.75rem;
    }
}
