body {
    padding-top: 70px;
}
/* PROFILE */
.profile-avatar {
    background: var(--gradient-accent);
    border: none;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

.profile-badges .profile-badge {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--text-light);
    backdrop-filter: blur(4px);
}

.profile-stat-card {
    background: rgba(26, 44, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    background: rgba(46, 139, 87, 0.1);
}

.profile-stat-value {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-chart-container {
    background: rgba(26, 44, 56, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-chart-period {
    background: rgba(76, 175, 80, 0.15);
    color: var(--text-light);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.profile-chart-period.active {
    background: var(--gradient-accent);
    border-color: transparent;
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
}

.profile-asset-icon {
    background: var(--gradient-accent);
    color: var(--text-light);
    box-shadow: 1px 1px 4px rgba(76, 175, 80, 0.3);
}

/* Чат поддержки */
.support-chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: none;
    z-index: 1000;
}

.support-chat-container.active {
    display: block;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(26, 44, 56, 0.9);
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message.support {
    margin-right: auto;
    background: rgba(76, 175, 80, 0.15);
    padding: 10px;
    border-radius: 12px 12px 12px 0;
}

.message.user {
    margin-left: auto;
    background: var(--gradient-accent);
    padding: 10px;
    border-radius: 12px 12px 0 12px;
}

.chat-input {
    padding: 15px;
    background: rgba(26, 44, 56, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

.chat-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Быстрые действия */
.quick-actions {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--card-shadow);
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    margin: 5px 0;
    background: rgba(76, 175, 80, 0.15);
    border: none;
    border-radius: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: var(--gradient-accent);
    transform: scale(1.1);
}

/* Анимации */
@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease forwards;
}

        body {
            background: var(--bg-light);
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            min-height: 100vh;
            padding: 0;
            color: var(--text-color);
        }

        .profile-container {
            max-width: 1400px;
            margin: 0 auto;
            padding-top: 70px !important;
        }

        .profile-main-card {
            background: white;
            padding: 2rem;
            margin-bottom: 2rem;
            position: relative;
            overflow: hidden;
        }

.profile-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 3rem 2rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
        opacity: 14%;

    bottom: 0;
    z-index: 0; /* Устанавливаем слой ниже текста */
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: cover;
    background-blend-mode: overlay; /* Мягкое наложение */
}

.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--profile-bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    border: 6px solid white;
    box-shadow: var(--shadow-lg);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.profile-status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    color: var(--text-light);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--bg-light);
}

.profile-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--profile-badge-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.profile-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--profile-bg-gradient);
}

.profile-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-stat-title {
    font-size: 0.9rem;
    color: var(--secondary-text-color);
    font-weight: 500;
}

.profile-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--profile-badge-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.profile-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.profile-stat-change {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-stat-change.positive {
    color: var(--success);
}

.profile-stat-change.negative {
    color: var(--error);
}

.profile-chart-section {
    background: linear-gradient(145deg, #121212, #1a1a1a);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 
                0 1px 1px rgba(255, 255, 255, 0.05) inset;
    padding: 24px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
                var(--primary-color, #2E8B57), 
                var(--secondary-color, #3CB371),
                var(--accent-color, #4CAF50),
                var(--primary-color, #2E8B57));
    background-size: 200% 100%;
    animation: gradientFlow 4s ease infinite;
}


.profile-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
}

.profile-chart-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 16px;
}

.profile-chart-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 24px;
    background: var(--primary-color, #2E8B57);
    border-radius: 3px;
}

.profile-chart-controls {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 5px;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 
                0 1px 1px rgba(255, 255, 255, 0.05) inset;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.profile-chart-period {
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 50px;
    position: relative;
    z-index: 1;
    user-select: none;
}

.profile-chart-period:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.profile-chart-period::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background-color: var(--primary-color, #2E8B57);
    transition: transform 0.3s ease;
    border-radius: 2px;
    opacity: 0;
}

.profile-chart-period:hover::after {
    transform: translateX(-50%) scaleX(0.7);
    opacity: 0.6;
}


.profile-chart-period.active {
    color: #ffffff;
    background: var(--primary-color, #2E8B57);
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.3);
    transform: translateY(-1px);
}

.profile-chart-period.active::after {
    transform: translateX(-50%) scaleX(0);
    opacity: 0;
}

.profile-chart-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) inset;
    border: 1px solid rgba(255, 255, 255, 0.03);
    height: 350px;
    transition: height 0.3s ease;
}

.profile-chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, 
                rgba(17, 17, 17, 0.3) 0%, 
                rgba(17, 17, 17, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.profile-chart-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to top, 
                rgba(17, 17, 17, 0.3) 0%, 
                rgba(17, 17, 17, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

#portfolioChart {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.chart-tooltip {
    background: rgba(20, 20, 20, 0.9) !important;
    border: 1px solid var(--primary-color, #2E8B57) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 10 !important;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .profile-chart-section {
        padding: 20px;
    }
    
    .profile-chart-container {
        height: 320px;
    }
}

@media (max-width: 992px) {
    .profile-chart-section {
        padding: 18px;
    }
    
    .profile-chart-container {
        height: 300px;
    }
    
    .profile-chart-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .profile-chart-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .profile-chart-container {
        height: 250px;
    }
    
    .profile-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .profile-chart-title {
        font-size: 1.2rem;
    }
    
    .profile-chart-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .profile-chart-period {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .profile-chart-section {
        padding: 14px;
        border-radius: 12px;
    }
    
    .profile-chart-container {
        height: 220px;
        border-radius: 10px;
    }
    
    .profile-chart-title {
        font-size: 1.1rem;
    }
    
    .profile-chart-period {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Улучшенная поддержка тёмного режима */
@media (prefers-color-scheme: light) {
    .profile-chart-section {
        background: linear-gradient(145deg, #f8f8f8, #efefef);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 
                   0 1px 1px rgba(0, 0, 0, 0.05) inset;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .profile-chart-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }
    
    .profile-chart-title {
        color: #333;
        text-shadow: none;
    }
    
    .profile-chart-controls {
        background: rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 
                   0 1px 1px rgba(0, 0, 0, 0.03) inset;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .profile-chart-period {
        color: rgba(0, 0, 0, 0.7);
    }
    
    .profile-chart-period:hover {
        color: rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.05);
    }
    
    .profile-chart-period.active {
        color: #ffffff;
    }
    
    .profile-chart-container {
        background-color: #ffffff !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) inset;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }
    
    .profile-chart-container::before {
        background: linear-gradient(to bottom, 
                    rgba(255, 255, 255, 0.3) 0%, 
                    rgba(255, 255, 255, 0) 100%);
    }
    
    .profile-chart-container::after {
        background: linear-gradient(to top, 
                    rgba(255, 255, 255, 0.3) 0%, 
                    rgba(255, 255, 255, 0) 100%);
    }
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.profile-portfolio {
    margin-top: 3rem;
}

.profile-portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-portfolio-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.profile-asset-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-asset-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.profile-asset-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-asset-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--profile-badge-bg);
    color: var(--primary-color);
}

.profile-asset-info {
    flex-grow: 1;
}

.profile-asset-name {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.profile-asset-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-asset-detail {
    font-size: 0.9rem;
}

.profile-asset-detail-label {
    color: var(--secondary-text-color);
    margin-bottom: 0.25rem;
}

.profile-asset-detail-value {
    font-weight: 500;
}

/* Модальные окна */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--profile-modal-overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.profile-modal.active {
    display: flex;
}

.profile-modal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalShow 0.3s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.profile-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.profile-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    cursor: pointer;
}

.profile-form-group {
    margin-bottom: 1.5rem;
}

.profile-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.profile-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.profile-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--profile-input-focus);
}

.profile-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
}

.profile-form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--profile-bg-gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--profile-bg-gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-form-submit:active {
    transform: translateY(0);
}

.profile-support-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--profile-bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 100;
}

.profile-support-chat:hover {
    transform: scale(1.1);
}

.profile-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}
.profile-notification.active {
    display: flex;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }
    .profile-badges .profile-badge {
        font-size: 0.7rem;
    }

    .profile-stat-card {
        margin-bottom: 1rem;
    }

    .profile-chart-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .profile-assets-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .profile-chart-title {
        font-size: 1.2rem;
    }
    .profile-chart-period {
        font-size: 1rem;
        padding: 5px 16px;
    }
    .profile-chart-container {
        height: 200px;
        padding: 0.5rem;
    }
    .profile-header {
        padding: 2rem;
    }
}
@media (max-width: 460px) {
    .edit-profile {
        top: 10px !important;
        right: 10px !important;
    }
    .edit-profile span {
        display: none;
    }
    .profile-header {
        flex-direction: row;
        align-items: flex-start;
        text-align: end;
    }
    .profile-avatar {
        font-size: 3rem;
        width: 85px;
        height: 85px;
        padding: 0.3rem;
        border-width: 2px;
    }
    .profile-avatar::after {
        content: none;
    }
    .profile-name {
        font-size: 1.5rem;
    }
    .profile-badges {
        flex-direction: column;
        align-items: end;
    }
    .profile-badge {
        font-size: 0.7rem;
        text-align: center;
        border: 1px solid rgba(76, 175, 80, 1) !important;
        width: 100%;
    }
    .profile-chart-title {
        font-size: 1rem;
    }
    .profile-chart-controls {
        /* flex-direction: column; */
        flex-wrap: nowrap;
    }
    .profile-actions {
        grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    }
    .profile-actions button {
        font-size: 12px;
    }
    .profile-support-chat {
        width: 40px;
        height: 40px;
    }
    .profile-portfolio-title {
        font-size: 1rem;
    }
    .profile-chart-controls {
        gap: 8px;
    }
    .profile-chart-period {
        font-size: 12px;
        padding: 3px 8px;
    }
    .load-more-button {
        font-size: 12px !important;
    }
}
@media (max-width: 400px) {
    .edit-profile {
        top: auto !important;
        right: auto !important;
        bottom: 15px;
        left: 20px;
    }
    .profile-header {
        padding: 1rem;
    }
    .profile-avatar {
        font-size: 2.3rem;
        width: 68px;
        height: 68px;
    }
    .profile-name {
        font-size: 1.2rem;
    }
    .profile-id {
        font-size: 0.7rem;
    }
    .profile-badges .profile-badge {
        font-size: 0.6rem;
    }
    .profile-stats-grid {
        gap: 1rem;
    }
    .profile-stat-card {
        margin-bottom: 0;
        padding: 0.5rem 1rem;
    }
    .profile-stat-header {
        margin-bottom: 0;
    }
    .profile-stat-value {
        font-size: 1.4rem;
    }
}

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

/* Animation classes */

.profile-action-btn {
    padding: 1rem;
    border-radius: 1rem;
    color: var(--secondary-text-color);
    border: 1px solid var(--primary-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 1px 1px 10px rgba(76, 175, 80, 0.15);
}

.profile-action-btn:first-child {
    background: var(--profile-bg-gradient);
    color: white;
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-container {
    text-align: center;
    align-self: flex-end;
}

.load-more-button {
    /* display: inline-block; */
    color: var(--primary-green);
    padding: 2px 0px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: underline;
}
.load-more-button i {
    text-decoration: underline; /* Убираем подчеркивание */
}

.load-more-button:hover {
    color: var(--secondary-color);
}

/*ПОПОЛНЕНИЕ(это пиздец какое название сложное на английском, я ебал его раот)*/

.addm-top-up-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(46, 139, 87, 0.08);
    padding: 30px;
    margin-top: 40px;
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.addm-card-input {
    border-radius: 8px;
    border-color: rgba(46, 139, 87, 0.2);
    transition: all 0.2s ease;
    padding: 10px;
}

.addm-tooltip-container {
    background-color: var(--tooltip-bg);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
}

.addm-tooltip-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.addm-tooltip-list {
    list-style-type: none;
    padding: 0;
}

.addm-tooltip-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #2c3e50;
}

.addm-tooltip-list li::before {
    content: '•';
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.5em;
}

.addm-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.addm-submit-btn:hover {
    background: var(--secondary-color);
}

@media (max-width: 991px) {
    .addm-tooltip-container {
        margin-top: 20px;
    }
}

.edit-profile {
    position: absolute;
    right: 20px;
    top: 20px;
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--border-color);
    background: var(--bs-border-color-translucent);
    transition: 0.2s;
    font-size: 12px;
    text-decoration: none;
}

.edit-profile:hover {
    color: #fff;
}

.highlite {
    color: var(--bs-form-valid-border-color);
    font-weight: 600;
}
.error_head {
    font-weight: 700;
    color: #121212;
}

.error_href {
    color: var(--primary-color);
}

.error_button {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--accent-color);
    background-color: var(--border-color);
    border-radius: 6px;
    padding: 6px;
    margin-top: 12px;
    border: 1px solid var(--bs-border-color-translucent);
    text-decoration: none;
    transition: 0.2s;
}

.error_button:hover {
    background-color: var(--bs-border-color-translucent) !important;
}






#errorPopup2 .card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    width: 350px;
    display: none;
}
#errorPopup2 .card.active {
    display: block;
}

#errorPopup2 .balance {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
}

#errorPopup2 .form-group {
    margin-bottom: 1rem;
}

#errorPopup2 label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--secondary-text-color);
}

#errorPopup2 input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
}

#errorPopup2 button {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#errorPopup2 button:hover {
    background: var(--button-hover);
}

#errorPopup2 #message {
    text-align: center;
}

#errorPopup2 #backBtn {
    margin-top: 16px;
}

#errorPopup2 .message-field {
    display: none;
    color: red;
    background-color: #ff00003c;
    border-left: 3px solid #ff00003c;
    border-radius: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    margin: 20px 0;
}
#errorPopup2 .message-field.active {
    display: block;
}

#errorPopup2 #backBtn2 {
    background-color: var(--message-support-bg);
    margin-top: 6px;
    color: var(--button-hover);
    border: 1px solid var(--footer-bg);
}

#errorPopup2 #backBtn2:hover {
    background-color: var(--border-color);
}