.profile-page {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 32px 5% 48px;
    background: var(--bg-color);
    color: var(--text-color);
}

.profile-card {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--card-color);
    color: var(--text-color);
    margin-right: 40px;
    margin-top: 10px;
    overflow-y: auto;
}

.profile-card-header {
    margin-bottom: 24px;
}

.profile-eyebrow {
    color: #a78bfa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.profile-card h1 {
    margin: 8px 0;
    color: var(--text-color);
    font-size: 26px;
}

.profile-card-header p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
}

.profile-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border: 3px solid #8b5cf6;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-color);
    font-size: 23px;
    font-weight: 800;
}

.profile-info {
    min-width: 0;
}

.profile-info h2 {
    margin: 0 0 6px;
    color: var(--text-color);
    font-size: 20px;
    overflow-wrap: anywhere;
}

.profile-info p {
    margin: 0;
    color: var(--muted-color);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

@media (max-width: 768px) {
    .profile-page {
        width: 80%;
        
        padding: 24px 16px 40px;
    }

    .profile-card {
        width: 100%;
        padding: 22px 18px;
        overflow-y: auto;
    }

    .profile-card h1 {
        font-size: 23px;
    }

    .profile-user {
        align-items: flex-start;
    }

    .profile-avatar {
        width: 62px;
        height: 62px;
        font-size: 20px;
    }

    .profile-info h2 {
        font-size: 18px;
    }

    .profile-actions {
        justify-content: stretch;
    }

    .profile-actions button {
        width: 70px;
    }
}

@media (min-width: 769px) {
    .profile-card {
        margin-top: -400px;
        overflow-y: auto;
    }
}